Hi, I’m working on a grammar where I have a lot of keywords.
and, for something like this,
Alpha Beta Gamma Delta;
Alpha, Beta, Gamma and, Delta are individual keywords and should be recognised as such.
The way I’m currently doing it is
Expr {
Alpha Beta Gamma Delta Semicolon
}
@external specialize {Identifier} specializeIdentifier from "./tokens" {
Alpha,
Beta,
Gamma,
Delta
}
Am I doing it wrong? Is there a better approach for this? (and to lose the unused rule warnings?)