[antlr-interest] Additional info for 'illegal option output' post

Johannes Luber jaluber at gmx.de
Tue Sep 9 00:50:20 PDT 2008


Mikael Petterson schrieb:
> Hi,
> 
> I set the following under File --> Preferences --> General ANTLR
> options: output=AST
> 
> Still the same problem.

That's the wrong place. ANTLR grammars have an options block, which must
  be placed after the grammar statement. Likes this:

options {
output=AST;
}

The preference setting is used only for parameters which can be given on
the command line.

Johannes
> 
> Any more ideas?
> 
> cheers,
> 
> //mike
> 
> 
> _____________________________________________
> *From:  * Mikael Petterson 
> *Sent:  * den 8 september 2008 16:26
> *To:    * antlr-interest at antlr.org
> *Subject:       * Additional info for 'illegal option output' post
> 
> 
> 
> [16:22:28] warning(149):
> /home/eraonel/opensource_projects/net.sourceforge.clearcase/src/commandline/net/sourceforge/clearcase/commandline/parser/CleartoolOutput.g:0:0:
> rewrite syntax or operator with no output option; setting output=AST
> 
> [16:22:30] warning(149): CleartoolOutput__.g:0:0: rewrite syntax or
> operator with no output option; setting output=AST
> [16:22:30] error(133): CleartoolOutput__.g:0:0: illegal option output
> 
> *Mikael Petterson
> Software Designer*
> 
> *
> Ericsson AB, Stockholm, Sweden*
> Visiting address: Isafjordsgatan 15, Kista
> Phone: +46 70 2673044
> E-mail:_ __mikael.petterson at ericsson.com___
> <mailto:mikael.petterson at ericsson.com>__
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 



More information about the antlr-interest mailing list