Module parser

Module parser 

Source
Expand description

Module that provides types for syntactical analysis.

Re-exports§

pub use parse_tree_type::ParseTreeType;
pub use lookahead_dfa::LookaheadDFA;
pub use lookahead_dfa::Trans;
pub use parse_type::ParseStack;
pub use parse_type::ParseType;
pub use parser_types::LLKParser;
pub use parser_types::ParseTree;
pub use parser_types::Production;
pub use user_access::UserActionsTrait;

Modules§

lookahead_dfa
Module with types used to predict the next productions to choose during runs of generated parsers.
parse_tree_type
Module with types used to handle the parse tree that is build during runs of the generated parsers.
parse_type
Module with types used in the parse stack.
parser_types
Module with the actual parser types and some supporting types.
user_access
Module with the UserActionsTrait type.

Constants§

INVALID_PROD
Invalid production number It usually denotes the absence of a valid production number after applying a transition

Type Aliases§

CompiledProductionIndex
Index of a production within the slice of productions of a generated parser
NonTerminalIndex
Index of a non-terminal within the slice of lookahead automatons of a generated parser. Also used to index into the slice of non-terminal names in the generated parser.
ProductionIndex
Index of a production within the slice of productions of a generated parser
ScannerIndex
The index of a scanner configuration
StateIndex
Index of a DFA state within the slice of states of a LookaheadDFA