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

The options of a line that name another line, or make it a fragment, resolved once every line is read. More...

#include <grammar.hpp>

Public Attributes

bool fragment {false}
 fragment: the line names a pattern, not a rule.
 
std::size_t fragment_column {0}
 The 1-based column of fragment.
 
std::string_view continuation {}
 The name continue= gives, or empty.
 
std::size_t continue_column {0}
 The 1-based column of continue=.
 
std::size_t options {0}
 How many options the line gives.
 

Detailed Description

The options of a line that name another line, or make it a fragment, resolved once every line is read.

Member Data Documentation

◆ continuation

std::string_view scilex::detail::line_extras::continuation {}

The name continue= gives, or empty.

◆ continue_column

std::size_t scilex::detail::line_extras::continue_column {0}

The 1-based column of continue=.

◆ fragment

bool scilex::detail::line_extras::fragment {false}

fragment: the line names a pattern, not a rule.

◆ fragment_column

std::size_t scilex::detail::line_extras::fragment_column {0}

The 1-based column of fragment.

◆ options

std::size_t scilex::detail::line_extras::options {0}

How many options the line gives.


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