[antlr-interest] Small bug in antlr code concerning generateAmbigWarnings

martinkbraid mbraid at sqlworks.com
Tue Apr 15 16:41:56 PDT 2003


Here is a fragment of code from antlr.RuleBlock.setOptions()

            }
        }
        else if (key.equals("generateAmbigWarnings")) {
            if (value.getText().equals("true")) {
                generateAmbigWarnings = true;

I believe it should be key.getText().equals(" .... Without getText(), 
this is always false.

This probably explain why I cannot set generateAmbigWarnings=false;

Martin Braid


 

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




More information about the antlr-interest mailing list