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_patternsare lazily compiled into finite automata using the standard Rustregexcrate. - 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
Statetype 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::takewithout invalidating the fields.