[antlr-interest] Java 1.5 Grammar

Serafettin Senturk serafettin_sentuerk at intergral.com
Wed Apr 20 06:50:54 PDT 2005


 Hello,

 When i get some part of Java 1.5 grammar and compile it, i retrieve my
lexer and parser java source files. But there are the following problems in
my source files when i try to run them.

java.lang.Error: Unresolved compilation problems:

	Syntax error on token "internal", delete this token
	Char cannot be resolved
	Char cannot be resolved
	assertEnabled cannot be resolved
	LITERAL_assert cannot be resolved
	enumEnabled cannot be resolved
	LITERAL_enum cannot be resolved
	TRIPLE_DOT cannot be resolved

	at recognition.CfscriptLexer.<init>(CfscriptLexer.java:3)
	at recognition.CFScriptMain.main(CFScriptMain.java:31)
Exception in thread "main"


  Maybe, it is because of that built-in assertEnabled or enumEnabled
functions and things like that. What can i do to avoid this problems? how
can i make the system resolve this stuff?

  Regards,
 Serafettin






More information about the antlr-interest mailing list