[antlr-interest] heirarchical grammar

John D. Mitchell johnm-antlr at non.net
Fri Apr 9 07:10:35 PDT 2004


>>>>> "amaresh" == amaresh bikki <amaresh_bikki at yahoo.com> writes:
[...]

> The lines within PERSON can be in any order and can either be present or
> only appaear once. Let me know if anyone can give headsup on this. The
> problem I am facing is how to grammarize the non- ordering part of it.

Look in the documentation and example grammars for the optional construct
and the "or" construct. For the exactly once part you can do that checking
in a tree grammar or via side-effects with semantic predicates.

Have fun,
	John


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list