[antlr-interest] Java Grammar
Alan Gutierrez
alan at blogometer.com
Wed Jul 28 13:41:14 PDT 2010
This worked.
-Xconversiontimeout 1000000
I'm on a MacBook with 4GB memory, in case anyone encounters the problem
in the future, give it all the time it needs.
Alan Gutierrez
Jim Idle wrote:
> Use -Xconversiontimeout 10000 and see if that makes a difference.
>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of Alan Gutierrez
>> Sent: Wednesday, July 28, 2010 12:10 PM
>> To: antlr-interest at antlr.org
>> Subject: [antlr-interest] Java Grammar
>>
>> I'd like to use Antlr to create a syntax highlighter. I've taken the
> Java.g
>> grammer offered up at the web site for Java 6 and ran it through
>> org.antlr.Tool.
>>
>> It produced a lot of warning messages. Is this normal? Below is the half-
>> screen of warnings.
>>
>> java -cp /Users/alan/.m2/repository/org/antlr/antlr-runtime/3.2/antlr-
>> runtime-3.2.jar:/Users/alan/.m2/repository/antlr/antlr/2.7.7/
>> antlr-2.7.7.jar:/Users/alan/.m2/repository/org/antlr/stringtemplate/
>> 3.2.1/stringtemplate-3.2.1.jar:/Users/alan/.m2/repository/org/antlr/
>> antlr/3.2/antlr-3.2.jar org.antlr.Tool Java.g
>> warning(209): Java.g:1767:1: Multiple token rules can match input such as
> "'-
>> '": SUBSUB, SUB, SUBEQ
--
Alan Gutierrez - alan at blogometer.com - http://twitter.com/bigeasy
More information about the antlr-interest
mailing list