[antlr-interest] How can I get the string contents of a Kleene Closure?

Dejas Ninethousand dejas9000 at gmail.com
Tue Sep 6 14:44:54 PDT 2011


I have the following production in my ANTLR grammar:

rich_newick_string
: str=(.*';') { stack.pushRichNewickString($str.text); };

I expected some string match to be passed to my pushRichNewickString method,
but instead I'm getting null. What am I doing wrong?

Thanks.


More information about the antlr-interest mailing list