SciLex
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Public Attributes | List of all members
scilex::indent_state Struct Reference

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.
 

Detailed Description

The open blocks of a scan (Indentation), one per scan as its mode stack is.

Member Data Documentation

◆ key

std::ptrdiff_t scilex::indent_state::key {-1}

That line's key candidate's column, −1 for none.

◆ levels

std::vector<std::ptrdiff_t> scilex::indent_state::levels {-1}

The open blocks' columns (0-based), innermost last, above a −1.

◆ line

std::size_t scilex::indent_state::line {0}

The line of the last token that took part.

◆ open

bool scilex::indent_state::open {true}

Whether that line's next key candidate is kept.


The documentation for this struct was generated from the following file: