The rule is simple_expression:  term  (  add_like_op  term  )*
If it doesn't need to place an imaginary as its root, I can simply write
this rule like that: simple_expression:  term  (  add_like_op^  term  )*

How about if I wanna put an imaginary node on top of it ?

simple_expression:  term  (  add_like_op  term  )*  -> ^(SIMPLE_EXPRESSION[]
?????????)

I don't know how to write the ????? part.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to