How to achieve lex/flex-like start states with Antlr4 (or what are the proper semantics with Antlr4)
Distilled down to a very simple example, I have an input file with “name equals value” pairs. The name has restrictions on what characters are allowed, the value can have anything up to the new-line.