new LexerError(message, text, start, end)
Exception for lexer errors
Thrown when the lexer cannot associate part of the input with a lexeme.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | A human-readable message explaining the kind of exception |
text |
string | The text of the relevant token or character as processed so far |
start |
number | The start index of the text within the input string |
end |
number | The index of the next character within the input string plus one |
- Source: