[antlr-interest] WG: Question to the tree grammer
    Richard Andrysek 
    Richard.Andrysek at rg-mechatronics.com
       
    Mon Jan 17 03:13:22 PST 2011
    
    
  
 
I want to switch from yacc. So I've looked on Videos from Scott
Stanchfield <http://vimeo.com/user566590> , especially on Part9 about a
tree grammar.
I've found a problem with an unary operator. The Interpreter in Eclipse
works fine, but the grammar tree not.
It simply can't accept things like this:
 
-5 - - + - 4
 
I've attached also my files. Is there a way, how can I ask somebody
else, than me? I assume, it is something with left/right association, is
it?
 
Thank you for hints
 
Richard
 
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sample4.g
Type: application/octet-stream
Size: 1203 bytes
Desc: Sample4.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20110117/366097f2/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EvaluatorWalker.g
Type: application/octet-stream
Size: 846 bytes
Desc: EvaluatorWalker.g
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20110117/366097f2/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test4.java
Type: application/octet-stream
Size: 1228 bytes
Desc: Test4.java
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20110117/366097f2/attachment-0002.obj 
    
    
More information about the antlr-interest
mailing list