Module parser

Module parser 

Source
Expand description

This is the parser module of ruSTLa. It contains the Parser type and the state_machine submodule, that hosts the state transition functions of different states.

Copyright © 2020 Santtu Söderholm

Modules§

automata
In this submodule the patterns in crate::parser::regex_patterns are lazily compiled into finite automata using the standard Rust regex crate.
directive_parsers
A file that contains functions dedicated to parsing directives, reStructuredText extensions. All of these follow the same basic pattern:
line_cursor
A submodule that contains the line cursor type and its associated function definitions.
state_machine
This module contains the State type and the different transition functions corresponding to each state in its submodules.
types_and_aliases
A submodule that contains Parser-related type aliases.

Structs§

Parser
The parser type. Contains an optional source line vector and a document tree. These are optional to facilitate their passing to any transitions functions via std::option::Option::take without invalidating the fields.