|
SciLex
A header-only C++20 lexer built on REAL
|
One lexical token: a typed slice of the source. More...
#include <token.hpp>
Public Attributes | |
| 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.
| int scilex::token::kind |
Caller-defined token kind (e.g. an enum value).
| std::string_view scilex::token::lexeme |
The matched text, viewing into the source.
| std::size_t scilex::token::mode_id {0} |
The mode this token was lexed in (0 = the default/root mode).
| position scilex::token::start |
Position of the token's first byte.