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

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

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -