[antlr-interest] Get rule text only if rule was applied
Miguel Ping
mblp at mega.ist.utl.pt
Sat Mar 31 13:14:51 PDT 2007
Hi all,
I got this rule:
tableAlias
: (schemaName DOT)? tableName alias?
{refs.notityTableRef($tableName.text, $alias.text, this.scope);}
But as you can see, if the alias? part was not applied, $alias.text
throws me a NullPointerException (of course, because $alias does not
exist). How can I check if alias rule was applied?
Thanks,
Miguel Ping
More information about the antlr-interest
mailing list