Crate cfg_grammar

Crate cfg_grammar 

Source
Expand description

Library for manipulations on context-free grammars. Most transformations are abstracted over grammar representations.

Re-exports§

pub use crate::symbol_bit_set::SymbolBitSet;
pub use crate::cfg::*;

Modules§

cfg
Definitions of the context-free grammar type and its rules.
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.