Crate cfg

Crate cfg 

Source

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.
NamedCfgRule
Standard grammar rule representation, including a name. Used for debugging in tests.
Symbol
Our common grammar symbol type.
SymbolBitSet
A set of symbols in the form of a bit vector.
SymbolName
Wrapper for a string holding a symbol’s name. Meant to be cheap to clone.
SymbolSource
A source of numeric symbols.
WrappedRoot
We have a method for adding “wrapped” roots in the form: root ::= start_of_input ~ inner_root ~ end_of_input. See fn wrap_input.

Enums§

RhsPropertyMode
Used only for fn rhs_closure.

Traits§

SymbolPrimitive