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 > Compiler Tools JavaCC > Re: Unary minus
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 8 Topic 477 of 555
Post > Topic >>

Re: Unary minus

by AC <user@[EMAIL PROTECTED] > Sep 20, 2007 at 08:10 AM

There's token ambiguity between the UNARY_MINUS token and the
ADD_ARITHETIC_OP token.

Treat '-' as a token that may appear in either negation or subtraction 
productions, not two separate tokens.

For an example, see "AdditiveExpression" and "UnaryExpression"
in example/JavaGrammars/

Hope this helps!
 




 8 Posts in Topic:
Unary minus
Cesare Zecca <Cesare.Z  2007-09-20 11:05:37 
Re: Unary minus
AC <user@[EMAIL PROTEC  2007-09-20 08:10:38 
Re: Unary minus
Cesare Zecca <Cesare.Z  2007-09-20 13:49:39 
Re: Unary minus
Cesare Zecca <Cesare.Z  2007-09-21 17:29:53 
Re: Unary minus
AC <user@[EMAIL PROTEC  2007-09-22 07:02:15 
Re: Unary minus
Cesare Zecca <Cesare.Z  2007-09-21 17:37:14 
Re: Unary minus
AC <user@[EMAIL PROTEC  2007-09-22 07:03:32 
Re: Unary minus
Cesare Zecca <Cesare.Z  2007-09-24 07:32:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Sep 7 7:39:24 CDT 2008.