3 ms·
> Keyword = "else" / "elseif" Are there any languages in which this rule makes sense? I can't imagine wanting to write ifFOOelseifBARelseBAZ And ending yo
by aidenn0 2y ago
> Keyword = "else" / "elseif"
Are there any languages in which this rule makes sense? I can't imagine wanting to write
ifFOOelseifBARelseBAZ
And ending your token rules with WS|EOF removes any issues, so
if FOO elseif BAR else BAZ
works just fine.