|
| struct | continue_site |
| | A continue= option, its name resolved once every line is read. More...
|
| |
| struct | directive_site |
| | Where a insignificant directive names a mode. More...
|
| |
| struct | fragment |
| | A fragment line: a named pattern for continue=. More...
|
| |
| struct | grammar_fields |
| | The fields of one rule line, split on tabs, with the byte column each starts at. More...
|
| |
| struct | indent_measure |
| | A line's indentation under tab_policy::python (tab stops of 8, and tabs as 1). More...
|
| |
| class | indent_meter |
| | Measures the bytes of a source between the start of the line holding an offset and it, over offsets that mostly increase: each byte is read once from the last offset measured, so a pass over a long line stays linear (measured from its line's start at every token, 40 000 entries on one line took 2.5 s). More...
|
| |
| struct | line_extras |
| | The options of a line that name another line, or make it a fragment, resolved once every line is read. More...
|
| |
| struct | predicate_site |
| | An after= or not_after= option, its names resolved once every rule is read. More...
|
| |
| struct | transition_site |
| | Where a rule's push= or set= option is written. More...
|
| |
|
| std::string | quoting (std::string_view before, std::string_view word, std::string_view after) |
| | before, then word in quotes, then after: a cause naming the offending word.
|
| |
| grammar_fields | split_grammar_line (std::string_view line, std::size_t first) |
| | Splits line on tabs, from first (0-based), keeping each field's column.
|
| |
| std::string_view | checked_mode (std::string_view name, std::string_view word, const std::string &origin, std::size_t line, std::size_t column) |
| | name, refused when it is empty or holds a comma (which separates the modes of in=).
|
| |
| void | set_transition (rule &out, mode_action::op operation, std::string_view target, const std::string &origin, std::size_t line, std::size_t column) |
| | Gives out its transition, refusing a second one.
|
| |
| std::size_t | apply_grammar_options (std::string_view options, std::size_t column, const std::string &origin, std::size_t line, rule &out, std::size_t index, std::vector< predicate_site > &predicates, line_extras &extras) |
| | Applies the space-separated options of one rule to out.
|
| |
| void | check_transition_targets (const grammar &parsed, const std::vector< transition_site > &sites, const std::string &origin) |
| | Refuses a push= or set= whose mode no rule is active in, at the option.
|
| |
| void | resolve_predicates (grammar &parsed, const std::vector< predicate_site > &sites, const std::string &origin) |
| | Gives each rule of sites the kinds its names stand for: every rule bearing the name, and scilex::end_of_input for ^.
|
| |
| void | resolve_continuations (grammar &parsed, const std::vector< fragment > &fragments, const std::vector< continue_site > &sites, const std::string &origin) |
| | Gives each rule of sites the pattern its continue= names: the fragment of that name, else the first rule of that name.
|
| |
| void | parse_directive (std::string_view line, std::size_t first, const std::string &origin, std::size_t number, std::vector< directive_site > &sites) |
| | Parses the directive line (its % at 0-based first): insignificant m1,m2.
|
| |
| void | apply_directives (grammar &parsed, const std::vector< directive_site > &sites, const std::string &origin) |
| | Records the modes of sites in parsed, refusing one no rule is active in, at its column.
|
| |
| std::vector< token > | layout_pass (std::span< const token > tokens, const std::vector< bool > &mode_significant, const layout_roles &roles, const std::string_view *source, tab_policy tabs) |
| |