[il-antlr-interest: 26312] [antlr-interest] Semantic predicates

2009-10-16 Thread Robert Wentworth
There appears to be something fundamental that I am not "getting" about the way semantic predicates work. In the grammar below, the input "cat" is recognized using the rule "cat" but in not recognized by either the rule "expr" or the rule "pexpr". Could someone explain to me why this is so

[il-antlr-interest: 26318] Re: [antlr-interest] Semantic predicates

2009-10-16 Thread Robert Wentworth
blems. On Oct 16, 2009, at 3:35 PM, Kaleb Pederson wrote: > On Fri, Oct 16, 2009 at 10:39 AM, Robert Wentworth > wrote: >> There appears to be something fundamental that I am not "getting" >> about the way semantic predicates work. In the grammar below, the >&

[il-antlr-interest: 26430] [antlr-interest] How to overcome Lexer generation OutOfMemoryError?

2009-10-21 Thread Robert Wentworth
Trying to generate code for the grammar below generates an OutOfMemoryError related to trying to analyze a DFA for the Lexer. Can anyone suggest how I can successfully generate an ANTLR Lexer for this grammar (or an equivalent grammar)? Notes: (1) For STRINGFIELD and NUMBERFIELD, I've tried