|
SciLex
A header-only C++20 lexer built on REAL
|
A location in the source text. More...
#include <token.hpp>
Public Attributes | |
| std::size_t | offset |
| 0-based byte offset from the start of the source. | |
| std::size_t | line |
| 1-based line number. | |
| std::size_t | column |
| 1-based byte column within the line. | |
A location in the source text.
Columns are counted in bytes within the line, consistent with REAL's byte-level UTF-8 model (an ASCII column equals a character column; a multibyte codepoint spans several byte columns). Lines and columns are 1-based; offset is a 0-based byte index from the start of the source.
| std::size_t scilex::position::column |
| std::size_t scilex::position::offset |