One lexical token: a typed slice of the source.
More...
#include <token.hpp>
|
| int | kind |
| | Caller-defined token kind (e.g. an enum value).
|
| |
| std::string_view | lexeme |
| | The matched text, viewing into the source.
|
| |
| position | start |
| | Position of the token's first byte.
|
| |
| std::size_t | mode_id {0} |
| | The mode this token was lexed in (0 = the default/root mode).
|
| |
One lexical token: a typed slice of the source.
Definition at line 57 of file token.hpp.
◆ kind
Caller-defined token kind (e.g. an enum value).
Definition at line 59 of file token.hpp.
◆ lexeme
| std::string_view scilex::token::lexeme |
The matched text, viewing into the source.
Definition at line 60 of file token.hpp.
◆ mode_id
| std::size_t scilex::token::mode_id {0} |
The mode this token was lexed in (0 = the default/root mode).
Definition at line 62 of file token.hpp.
◆ start
Position of the token's first byte.
Definition at line 61 of file token.hpp.
The documentation for this struct was generated from the following file: