[antlr-interest] Source code level of ANTLRWorks

Jim Idle jimi at temporal-wave.com
Thu May 5 06:20:03 PDT 2011


Have you tried adding it in with the PATH? Also you can use -source 1.6
-target jsr14 and use 1.6 input and 1.4 output.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Ben Corne
> Sent: Thursday, May 05, 2011 4:58 AM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Source code level of ANTLRWorks
>
> Here's a screenshot of my antlrworks preferences page + javac info
> http://igor.rave.org/antlrjavac.png
>
> I don't see the option where to adjust the commandline call.
> And from what I think to understand from the helppage of my javac, it
> says
> 1.4 is the default, but I don't find a way to change this default,
> except by writing a wrapper shell script that attaches -source 1.5
> (which is what I will do now, until more clues are given)
>
> Ben
>
> 2011/5/4 Jim Idle <jimi at temporal-wave.com>
>
> > 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.j
> > > ava (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
> >
> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
> > Unsubscribe:
> > http://www.antlr.org/mailman/options/antlr-interest/your-email-
> address
> >
>
> 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