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
The reason for this restriction is that an identifier can be the start of the next macro definition, but non-identifiers can't be. You'd have to look ahead several tokens to figure out what it is (x happens to be only one token here, but if it was abcd, these would be 4 tokens for a regexp, but only 1 token if it was the left-hand side of a macro definition, i.e. the lexer has to make this decision, it's too late in the parser).
With the more flexible lookahead expressions JFlex has now (this was all written long before that), it might be possible to do that these days, but it would at least require a deeper investigation.
A newline is only allowed after the equals sign in a macro definition if the next token is not an identifier. I find this unintuitive.
The text was updated successfully, but these errors were encountered: