Struct hime_redist::parsers::rnglr::RNGLRParser
source · pub struct RNGLRParser<'l, 'a: 'l> { /* private fields */ }
Expand description
Represents a base for all RNGLR parsers
Implementations§
source§impl<'l, 'a: 'l> RNGLRParser<'l, 'a>
impl<'l, 'a: 'l> RNGLRParser<'l, 'a>
sourcepub fn new(
lexer: &'l mut dyn Lexer<'l>,
automaton: RNGLRAutomaton,
ast: Ast<'l>,
actions: &'a mut dyn FnMut(usize, Symbol, &dyn SemanticBody)
) -> RNGLRParser<'l, 'a>
pub fn new(
lexer: &'l mut dyn Lexer<'l>,
automaton: RNGLRAutomaton,
ast: Ast<'l>,
actions: &'a mut dyn FnMut(usize, Symbol, &dyn SemanticBody)
) -> RNGLRParser<'l, 'a>
Initializes a new instance of the parser