-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Description
According to the JFlex manual, the grammar for a Rule is
Rule ::= [StateList] ['^'] RegExp [LookAhead] Action
| [StateList] '<<EOF>>' Action
| StateGroup
Action ::= '{' JavaCode '}' | '|'
However, if the action for an <<EOF>> rule is a pipe, then the generator fails. Below is a snippet which should reproduce the behavior.
Error
Unexpected character
<<EOF>> |
^
1 error, 0 warnings.
Reproduction
<<EOF>> |
... |
... { }
Workaround
... |
... |
<<EOF>> { }
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugNot working as intendedNot working as intended