Package io.karatelabs.parser
Class SyntaxError
java.lang.Object
io.karatelabs.parser.SyntaxError
Represents a recoverable syntax error during lenient parsing.
Unlike ParserException which is thrown for fatal errors, SyntaxError
is collected during error-tolerant parsing to enable IDE features
like syntax coloring even when the source code is incomplete.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyntaxError(Token token, String message) SyntaxError(Token token, String message, NodeType expected) -
Method Summary