jflex
jflex copied to clipboard
improve error reporting for lookahead in macros
See #1088 -- instead of just a syntax error we should be getting an explanation.
Alternatively: allow lookahead in macros and at any nesting level syntactically, but add a check in the semantic checking phase that rules out expressions where lookahead is not used at the top level.
That alternative option would be great. :)