Thrown when no rule matches at a position (a lexical error).
More...
#include <lexer.hpp>
Thrown when no rule matches at a position (a lexical error).
Carries the position of the offending byte so a caller can report it.
Definition at line 123 of file lexer.hpp.
◆ lex_error()
| scilex::lex_error::lex_error |
( |
const std::string & |
message, |
|
|
position |
where |
|
) |
| |
|
inline |
Builds the error.
- Parameters
-
| [in] | message | Human-readable cause. |
| [in] | where | Position of the byte that no rule could match. |
Definition at line 132 of file lexer.hpp.
◆ where()
| position scilex::lex_error::where |
( |
| ) |
const |
|
inlinenoexcept |
Returns the position of the unmatched byte.
Definition at line 141 of file lexer.hpp.
◆ where_
Where tokenization failed.
Definition at line 148 of file lexer.hpp.
The documentation for this class was generated from the following file: