[antlr-interest] Current antlr bugs [b7]

Terence Parr parrt at cs.usfca.edu
Sun Apr 29 14:48:01 PDT 2007


Hi Ilia,

  yes, I believe that the order is significant, unfortunately.  Put  
the options first I think.
Ter
On Apr 26, 2007, at 2:50 PM, Ilia Kantor wrote:
> Hello,
>
> Tokens location is fixed, that's fine..
> But all other locations cause strange errors.
>
>
> $ ./antlr.sh BugToken.g
> no such locale file org/antlr/tool/templates/messages/languages/ 
> ru.stg retrying with English locale
> ANTLR Parser Generator  Version 3.0b7 (April 12, 2007)  1989-2007
> error(100): BugToken.g:12:1: syntax error: antlr: BugToken.g:12:1:  
> unexpected token: options {
> error(10):  internal error: BugToken.g :  
> java.lang.NullPointerException
> org.antlr.tool.Grammar.setGrammarContent(Grammar.java:516)
> org.antlr.tool.Grammar.<init>(Grammar.java:448)
> org.antlr.Tool.getGrammar(Tool.java:331)
> org.antlr.Tool.process(Tool.java:267)
> org.antlr.Tool.main(Tool.java:70)
>
> grammar BugToken;
>
>
> tokens {
>         IF;
>         THEN;
>         ELSE;
>         EVAL;
>         TEXT;
> }
>
> options {
>         superClass=CommandParentParser;
>         output=AST;
> }
>
>



More information about the antlr-interest mailing list