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

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -