[antlr-interest] Strip does not work

Damien Cassou damien.cassou at gmail.com
Wed Dec 15 08:53:20 PST 2010


Hi,

running org.antlr.tool.Strip on the attached grammar produces an
incorrect result and error messages :

=====================================
$ java -classpath ~/Desktop/antlr-3.3-complete.jar org.antlr.tool.Strip test.g
test.g line 15:15 mismatched input '<' expecting ')'
test.g line 15:43 extraneous input ')' expecting ';'
grammar test;

options {
	language = Java;
	output = AST;
	ASTLabelType = ASTNode;
}

tokens {
DOCUMENT;
}

spec
  : type_def*
  )
;

type_def: ID;

ID: 'A'..'Z' ('a'..'z' | 'A'..'Z' | '0'..'9' | '_')*;
=====================================


I already reported this 1 year and a half ago. I would have like to
submit a bug report on jira but can't create an account there.


-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.g
Type: application/octet-stream
Size: 250 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20101215/a61fcb2e/attachment.obj 


More information about the antlr-interest mailing list