Crate parol_runtime
source ·Expand description
This crate provides the runtime library used by parsers that have been generated by the parol
parser generator.
In most cases you don’t need to understand the inner details of this crate because parol generates
all necessary scaffolding and plumping for the typical user automatically.
The most likely used parts are those returned to the user including the error types defined in the module errors.
If you use parsers generated in vanilla mode you should understand the types that are handed over to your semantic actions. You will find them in the modules parser::parse_tree_type and parser::parse_tree_stack_entry.
Re-exports
pub use lexer::FormatToken;pub use lexer::Location;pub use lexer::LocationBuilder;pub use lexer::Span;pub use lexer::TerminalIndex;pub use lexer::ToSpan;pub use lexer::Token;pub use lexer::TokenIter;pub use lexer::TokenStream;pub use lexer::Tokenizer;pub use parser::DFAState;pub use parser::DFATransition;pub use parser::LLKParser;pub use parser::LookaheadDFA;pub use parser::NonTerminalIndex;pub use parser::ParseStack;pub use parser::ParseTreeStackEntry;pub use parser::ParseTreeType;pub use parser::ParseType;pub use parser::Production;pub use parser::ProductionIndex;pub use parser::ScannerIndex;pub use parser::StateIndex;pub use parser::UserActionsTrait;pub use codespan_reporting;pub use function_name;pub use id_tree;pub use id_tree_layout;pub use log;pub use once_cell;
Modules
- Module with error types reported from this crate.
- Module that provides types for lexical analysis.
- Module that provides types for syntactical analysis.
Structs
Enums
Traits
- Trait for parol’s error reporting