[antlr-interest] How can I work around approximate LALL limitation?

jbb at acm.org jbb at acm.org
Tue Nov 12 08:10:26 PST 2002


or maybe this (no predicate, no look ahead)...

class ExampleParser extends Parser;
table: (INTEGER (table_helper)? NEWLINE)+;
table_helper: SPACE ( INTEGER table_helper )?;

[The original desired syntax was
  table: (INTEGER (SPACE INTEGER)* (SPACE)? NEWLINE)+;]

 

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



More information about the antlr-interest mailing list