[antlr-interest] How can I get the string contents of a Kleene Closure?
Douglas Godfrey
douglasgodfrey at gmail.com
Wed Sep 7 21:23:36 PDT 2011
rich_newick_string : semicolon_terminated_string {
stack.pushRichNewickString($semicolon_terminated_string.text); };
semicolon_terminated_string
: (.*';') ;
On 9/6/11 5:44 PM, "Dejas Ninethousand" <dejas9000 at gmail.com> wrote:
>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.
>
>List: http://www.antlr.org/mailman/listinfo/antlr-interest
>Unsubscribe:
>http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list