Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers > Re: Bison confl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 2414 of 2472
Post > Topic >>

Re: Bison conflict ?

by Yunzhong <gaoyunzhong@[EMAIL PROTECTED] > May 9, 2008 at 02:24 PM

Richard,
Consider changing these rules:
exp_list => expression;
expression => '(' query_specification ')';
query_list => '(' query_list ')';
query_list => query_specification;

Whether the query_spec in your statement #3 should reduce to exp_list
or query_list will depend on the particular SQL dialect you are
working with, especially the treatment of redundant parentheses. You
may also consider creating an extra nonterminal such as
exp_or_query_list.

Hope it helps.
Y.
 




 2 Posts in Topic:
Bison conflict ?
judicator3@[EMAIL PROTECT  2008-05-08 09:29:07 
Re: Bison conflict ?
Yunzhong <gaoyunzhong@  2008-05-09 14:24:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:16:55 CDT 2008.