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
Post a Comment