[antlr-interest] Bounded Closures?

Johannes Luber jaluber at gmx.de
Tue Jun 26 13:31:38 PDT 2007


Wincent Colaiuta wrote:
> Doesn't the += notation you've used there only work in parser rules? I
> don't think it works in lexer rules.

I haven't tested that particular code snippet with appropriate input,
but the compiler doesn't complain, so I guess that it works. Besides
Terence himself acknowledged my code snippet and I don't believe that he
has overlooked "fragment" at the beginning.

Best regards,
Johannes Luber


More information about the antlr-interest mailing list