[antlr-interest] grammar question

Matt Benson gudnabrsam at yahoo.com
Fri Mar 21 14:56:32 PST 2003


If I have a rule that wants one of each of three
subrules matched, is there any shorthand to require
this without imposing order?  The following would be
the long version, I suppose:

top
  : a b c
  | b c a
  | c a b
  | c b a
  | a c b
  | b a c
  ;

-Matt

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

 

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



More information about the antlr-interest mailing list