[antlr-interest] Antlrworks bug?

Steve Bennett stevagewp at gmail.com
Tue Nov 20 20:55:50 PST 2007


Or maybe I don't understand. The test rig generated by Antlrworks for
this grammar won't compile:

grammar tiny;
tiny	:	('a'..'z')+;



[15:52:10] \tmp\antlrworks\__Test__.java:9: <identifier> expected
[15:52:10]  lex = new (new
ANTLRFileStream("\\tmp\\antlrworks\\__Test___input.txt"));
[15:52:10]           ^
[15:52:10] 1 error


However this will compile:
grammar tiny;
L	:	('a'..'z');
tiny	:	L+;

Using ANTLRworks 1.1.4.

Steve


More information about the antlr-interest mailing list