Closed paulyoung closed 10 years ago
As discovered in the-gss/vfl-compiler#7, "required" is unreachable because "require" will always match first.
"required"
"require"
Strength = ("require" / "REQUIRE" / "Require") { return grammar.strength().require(); } / ("strong" / "STRONG" / "Strong") { return grammar.strength().strong(); } / ("medium" / "MEDIUM" / "Medium") { return grammar.strength().medium(); } / ("weak" / "WEAK" / "Weak") { return grammar.strength().weak(); } / ("required" / "REQUIRED" / "Required") { return grammar.strength().required(); }
The rule for "required" should be moved to the top.
As discovered in the-gss/vfl-compiler#7,
"required"
is unreachable because"require"
will always match first.The rule for
"required"
should be moved to the top.