[antlr-interest] Illegal option output

Ben Corne ben.corne at gmail.com
Wed Apr 6 04:34:50 PDT 2011


I just found out you cannot use ! within lexer rules. It works now.

2011/4/6 Ben Corne <ben.corne at gmail.com>

> Hello
>
> Attached is my grammar file.
> When running antlr over it (with antlridev3 eclipse plugin), it states the
> following error:
>
> ANTLR Parser Generator 3.3 Nov 30, 2010 12:50:56.
> Using project classpath: Yes.
> Grammar: /home/bcorne/ATDOC/Documenter/grammar/Documentation.g
> warning(149): Documentation__.g:0:0: rewrite syntax or operator with no
> output option; setting output=AST
> error(133): Documentation__.g:0:0: illegal option output
>
> Any thoughts besides "you're missing the options block"? (I do have the
> options block as you can verify)
> I also tested this with "java -jar antlr-3.3-complete.jar Documentation.g"
> using the latest antlr binary from antlr.org, with the same result.
>
> Regards
> Ben
>


More information about the antlr-interest mailing list