Skip to main content

parse

Function parse 

pub fn parse<'i>(
    table: &Arc<ParseTable>,
    lexer: &'i BasicLexer,
    text: &'i str,
    start: &str,
    options: ParseOptions,
) -> Result<ParsedTree, ParseError>
Expand description

Parse text from start using the basic lexer. Thin delegate to parse_with over LexerSource::Basic so the shift/reduce loop lives in one place (the basic path stays for bootstrap/diagnostics — Lark.lex is basic — while the contextual lexer is now the real LALR default).