You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing a grammar with the token <<EOF>> (instead of <<eof>>) is accepted without any hints of issues by the parser generator. It results in a grammar file referencing a non-existing method called EOF (instead of eof).
I would recommend that the IDEA editor would highlight this as a "likely mistake" with a suggestion to lowercase it to the expected value. I find this particular relevant as the JFlex lexer expects <<EOF>> in all caps meaning the two related languages disagree on the casing.
Writing a grammar with the token
<<EOF>>
(instead of<<eof>>
) is accepted without any hints of issues by the parser generator. It results in a grammar file referencing a non-existing method calledEOF
(instead ofeof
).I would recommend that the IDEA editor would highlight this as a "likely mistake" with a suggestion to lowercase it to the expected value. I find this particular relevant as the JFlex lexer expects
<<EOF>>
in all caps meaning the two related languages disagree on the casing.In the concrete case, I had:
Which should have been:
The text was updated successfully, but these errors were encountered: