Struct earlgrey::GrammarBuilder
[−]
[src]
pub struct GrammarBuilder { /* fields omitted */ }
pub struct GrammarBuilder { /* fields omitted */ }
impl GrammarBuilder
[src]fn new() -> GrammarBuilder
fn add_symbol<S: Into<Symbol>>(&mut self, symbol: S, ignoredup: bool)
fn symbol<S: Into<Symbol>>(self, symbol: S) -> Self
fn add_rule<N, N2>(&mut self, name: N, spec: &[N2]) where N: Into<String>, N2: AsRef<str>
fn rule<N, N2>(self, name: N, spec: &[N2]) -> Self where N: Into<String>, N2: AsRef<str>
fn into_grammar<S: Into<String>>(self, start: S) -> Grammar
fn unique_symbol_name(&self) -> String