Members
(static) hadError
Whether or not an error occurred during scanning or parsing.
- Source:
(static) hadRuntimeError
Whether or not an error occurred during runtime.
- Source:
Methods
(static) parseError(token, message)
Error reporting method for the Parser
.
Parameters:
Name | Type | Description |
---|---|---|
token |
Token | Token the error occurred on. |
message |
string | Error message. |
- Source:
(static) reset()
Resets the error state.
- Source:
(static) runtimeError(error)
Error reporting method for the Interpreter
.
Parameters:
Name | Type | Description |
---|---|---|
error |
RuntimeError | Error that occurred. |
- Source:
(static) scanError(line, message)
Error reporting method for the Scanner
.
Parameters:
Name | Type | Description |
---|---|---|
line |
number | Line the error occurred on. |
message |
string | Error message. |
- Source: