[antlr-interest] Source code level of ANTLRWorks

Jim Idle jimi at temporal-wave.com
Wed May 4 08:18:47 PDT 2011


That just means you are calling a compiler that has a default level less
than 1.5. So, chance the javacc command in the preferences or remove the
old compiler and install 1.6, or makes sure that 1.6 is the first on the
command line. ANTLR works does not influence the Java compiler - it only
calls the one that you tell it to.

Jim



> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Ben Corne
> Sent: Wednesday, May 04, 2011 6:56 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] Source code level of ANTLRWorks
>
> Hi
>
> Is there a way to set the source code level of antlrworks?
> I've checked the preferences pane and launchers with no avail.
>
> I need to set it to > 1.5, since I'm using Java Generics:
>
> [15:47:58] 102. ERROR in
> /home/bcorne/Downloads/at2-parser-3/grammar/output/ATGrammar3Lexer.java
> (at line 114) [15:47:58] Stack<String> paraphrase = new
> Stack<String>();
> [15:47:58]                                      ^^^^^^
> [15:47:58] Syntax error, parameterized types are only available if
> source level is 1.5
>
> Regards
> Ben Corne
>
> 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