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

As a result, token(s) SUB,SUBEQ were disabled for that input
warning(209): Java.g:1811:1: Multiple token rules can match input such  
as "'c'": CASE, CATCH, CHAR, CLASS, CONST, CONTINUE, IDENTIFIER

As a result, token(s) CATCH,CHAR,CLASS,CONST,CONTINUE,IDENTIFIER were  
disabled for that input
warning(209): Java.g:1791:1: Multiple token rules can match input such  
as "'%'": PERCENT, PERCENTEQ

As a result, token(s) PERCENTEQ were disabled for that input
warning(209): Java.g:1811:1: Multiple token rules can match input such  
as "'t'": THIS, THROW, THROWS, TRANSIENT, TRY, TRUE, IDENTIFIER

As a result, token(s) THROW,THROWS,TRANSIENT,TRY,TRUE,IDENTIFIER were  
disabled for that input
warning(209): Java.g:1799:1: Multiple token rules can match input such  
as "'!'": BANG, BANGEQ

--
Alan Gutierrez - [email protected] - http://twitter.com/bigeasy

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to