Class ValidLiteralValueOrError
java.lang.Object
org.ek9lang.compiler.phase1.ValidLiteralValueOrError
Validates literal values at compile time to catch semantically invalid literals
that the ANTLR lexer accepts structurally but that can never represent valid values.
For example,
2024-13-45 matches the DateLiteral lexer rule but month 13
and day 45 are invalid. At runtime, invalid literals silently become "unset" (by design
for user input), but for source code literals this is always a bug.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ValidLiteralValueOrError
ValidLiteralValueOrError(ErrorListener errorListener)
-
-
Method Details
-
isValid
-