ANTLR determine the value of variable without creating a token -
how can determine value of variable honor without creating token?
date_honors : honor = (name|digit)+ { system.out.println("honors: " + $honor.text ); } ; input honor 9 in result $honor.text = null.
try (honor+=name|honor+=digit)+ , $honor list of tokens.
Comments
Post a Comment