jflex icon indicating copy to clipboard operation
jflex copied to clipboard

improve error reporting for lookahead in macros

Open lsf37 opened this issue 2 years ago • 2 comments

See #1088 -- instead of just a syntax error we should be getting an explanation.

lsf37 avatar Apr 10 '23 23:04 lsf37

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.

lsf37 avatar Apr 10 '23 23:04 lsf37

That alternative option would be great. :)

michab66 avatar Apr 12 '23 06:04 michab66