[antlr-interest] How can I work around approximate LALL limitation?
Pete Forman
pete.forman at westerngeco.com
Wed Nov 13 00:27:06 PST 2002
At 2002-11-12 11:10 -0500, jbb at acm.org wrote:
>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)+;]
That works too. Thanks.
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete.forman at westerngeco.com -./\.- opinion of Schlumberger, Baker
http://petef.port5.com -./\.- Hughes or their divisions.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list