/// Convert a scope and priority into a nonterminal symbol.
Convert a scope and priority into a nonterminal symbol.
Convert a scope and priority into a nonterminal symbol .
fn nonterm_name(&mut self, scope: Ref, prio: Prio) -> Symbol {
        match self.nonterminals.get(&(scope, prio)) {
            Some(sym) => *sym,
            None => {
                let sym = self.grammar.sym();
                self.nonterminals.insert((scope, prio), sym);
                sym
            },
        }
    }
fn nonterm_name ( & mut self , scope : Ref , prio : Prio ) -> Symbol { match self . nonterminals . get ( & ( scope , prio ) ) { Some ( sym ) => * sym , None => { let sym = self . grammar . sym ( ) ; self . nonterminals . insert ( ( scope , prio ) , sym ) ; sym } , } }
Convert a scope and priority into a nonterminal symbol.
Convert a scope and priority into a nonterminal symbol .
&mut self
scope
Ref
prio
Prio