ANTLR4 - multiple code blocks in lexer rule -


It was possible to add multi-code blocks in a laser rule in ATLR v3, but it is not allowed in version 4.

What's the best way to change it?

  Tags: '{' (~ ('}')) * '}' {setText (getText) Substring (1, getText () .length () - 1)); } | '{! ('Option (greedy = wrong;):.) *'}!} '{SetText (getText). Substring (3, getText (). Length () - 3)); };  

This functionality should [be] available if it is not working do you want it.


Comments

Popular posts from this blog

mysql - How to enter php data into a html multiple select box -

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -