Jim, thanks. To generalize then - tree grammars should 'track' the 
terminal/non-terminal structure (of interest) but exclude any 
cardinality specifiers.

On 05/03/2011 18:34, Jim Idle wrote:
> You write expressions like that in the following way:
>
> expression
>   : ^(OR expression expression)
>   | term
>   ;
>
> term
>   : X
>   | Y
>   | Z
>   ;
>
> Then do not create the UPSILON as it will just mislead you. if you feel
> you need it then add it to term, which although allowing ^(OR EPSILION
> EPSILON) won't happen because you won't produce that tree. However, don't
> generally make a token for something that isn't there.



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.

Reply via email to