Re-exports§
pub use cfg_classify as classify;pub use cfg_generate as generate;pub use cfg_history as history;pub use cfg_predict_distance as predict_distance;pub use cfg_predict_sets as predict_sets;pub use cfg_sequence as sequence;pub use cfg_symbol_bit_matrix as symbol_bit_matrix;
Modules§
- cfg
- Definitions of the context-free grammar type and its rules.
- intern
- Interns symbols and implements symbol mappings.
- precedenced_
rule - Precedenced rules are built with the builder pattern.
- rule_
builder - Plain grammar rules can be built with the builder pattern.
- symbol_
bit_ set - Informs whether symbols are terminal or nonterminal.
Macros§
- named_
cfg_ rule - Creates a new Cfg rule, which holds names for debugging purposes.
- syms
- Shorthand for
SymbolSource::generate_fresh.
Structs§
- Cfg
- Context-free grammar type.
- CfgRule
- Standard grammar rule representation.
- DotInfo
- Exists only for
fn column. - Named
CfgRule - Standard grammar rule representation, including a name. Used for debugging in tests.
- Symbol
- Our common grammar symbol type.
- Symbol
BitSet - A set of symbols in the form of a bit vector.
- Symbol
Name - Wrapper for a string holding a symbol’s name. Meant to be cheap to clone.
- Symbol
Source - A source of numeric symbols.
- Wrapped
Root - We have a method for adding “wrapped” roots in the form:
root ::= start_of_input ~ inner_root ~ end_of_input. Seefn wrap_input.
Enums§
- RhsProperty
Mode - Used only for
fn rhs_closure.