[antlr-interest] Problem with Strip forgetting some parenthesis

Damien Cassou damien.cassou at gmail.com
Fri Jun 19 02:09:50 PDT 2009


Hi,

running org.antlr.tool.Strip on my grammar produces an incorrect
result. For example, the following:

document
  : types+=type_def*
  -> ^(DOCUMENT<Document>[$types] type_def*)
;

is translated to:

document
  : type_def*
  )
;

there is an unexpected right parenthesis.

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

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry


More information about the antlr-interest mailing list