Hi guys, The rules below arith_expr: term ((PLUS|MINUS)^ term)* ; PLUS : '+' ; MINUS : '-' ;
creates a node with type PLUS or MINUS (with value '+' or '-' and puts the terms into subnodes). There are similar rules with other opererators and all these operators are handle the same in my application. How can I change this rule to a node of type 'operator' (which does not exist yet), and keep the value and subnodes? Thanks, Joep List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- 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.
