Talk About Network



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 > Unexpected C Pa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2396 of 2421
Post > Topic >>

Unexpected C Parsing Conflict

by pocm@[EMAIL PROTECTED] (Paulo Jorge de O. C. de Matos) Apr 25, 2008 at 08:38 PM

Hello all,

I have found a conflict in parsing C99 which arises from the fact that
after a mult_expr a '*' (according to bison) can come up which means
that it can either reduce mult_expr or shift the '*' for yet another
multiplication.

Now, * comes up as a unary operator and in the pointer definition but
I can't find how or where they can follow a multiplication. Can
someone let me know either how to solve this shift/reduce conflict or
give me a concrete example where a * comes after a multiplication and
is not a multiplication operator?

Cheers,

--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @[EMAIL PROTECTED]
 ECS
University of Southampton, UK




 2 Posts in Topic:
Unexpected C Parsing Conflict
pocm@[EMAIL PROTECTED] (  2008-04-25 20:38:07 
Re: Unexpected C Parsing Conflict
pocm@[EMAIL PROTECTED] (  2008-04-26 12:27:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed May 14 12:59:51 CDT 2008.