|
SciLex
A header-only C++20 lexer built on REAL
|
The open blocks of a scan (Indentation), one per scan as its mode stack is. More...
#include <lexer.hpp>
Public Attributes | |
| std::vector< std::ptrdiff_t > | levels {-1} |
| The open blocks' columns (0-based), innermost last, above a −1. | |
| std::size_t | line {0} |
| The line of the last token that took part. | |
| std::ptrdiff_t | key {-1} |
| That line's key candidate's column, −1 for none. | |
| bool | open {true} |
| Whether that line's next key candidate is kept. | |
The open blocks of a scan (Indentation), one per scan as its mode stack is.
| std::ptrdiff_t scilex::indent_state::key {-1} |
That line's key candidate's column, −1 for none.
| std::vector<std::ptrdiff_t> scilex::indent_state::levels {-1} |
The open blocks' columns (0-based), innermost last, above a −1.
| std::size_t scilex::indent_state::line {0} |
The line of the last token that took part.
| bool scilex::indent_state::open {true} |
Whether that line's next key candidate is kept.