[antlr-interest] Latest intermediate build (ANTLR 3.1b1) produces broken Java code

Terence Parr parrt at cs.usfca.edu
Wed Apr 30 08:18:57 PDT 2008


Try -dfa option to look at DFAs. Verrrrry nice.  Better, use AW to  
ask for the DFA.
Ter
On Apr 29, 2008, at 10:56 PM, shmuel siegel wrote:

> Terence Parr wrote:
>> hi. apparently 3.1 is forcing a DFA not simple LL(k)  
>> lookahead...you got "lucky" before...i recommend you avoid locals  
>> that can lead to them being hoisted outside...sorry. not sure how  
>> to improve this.
>> Ter
> Is there a way to turn off the DFA for testing? One of the great  
> things about Antlr is that I could figure out why my grammar was  
> failing by reading the code. Unfortunately, I can't do that with  
> the DFA predictor.
>
> Shmuel
>



More information about the antlr-interest mailing list