This PR corrects occurrences of Identifier, which was done incorrectly. As stated in the Spec, Identifier is a "IdentifierChars but not a ReservedKeyword or BooleanLiteral or NullLiteral". But it should include generally ContexualKeyword. Antlr does not have a "not"-operator for parser grammars, so the rule must be refactored as what can be included. A Keyword is a "ReservedKeyword | ContextualKeyword." This PR defines contextualKeyword and subsets, which are used in a couple of places.
This PR corrects occurrences of
Identifier
, which was done incorrectly. As stated in the Spec, Identifier is a "IdentifierChars but not a ReservedKeyword or BooleanLiteral or NullLiteral". But it should include generallyContexualKeyword
. Antlr does not have a "not"-operator for parser grammars, so the rule must be refactored as what can be included. AKeyword
is a "ReservedKeyword | ContextualKeyword." This PR definescontextualKeyword
and subsets, which are used in a couple of places.