MCPcopy Create free account
hub / github.com/dada-lang/dada / opt_parse

Method opt_parse

components/dada-parser/src/expr.rs:18–23  ·  view source on GitHub ↗
(
        db: &'db dyn crate::Db,
        parser: &mut Parser<'_, 'db>,
    )

Source from the content-addressed store, hash-verified

16 type Output = Self;
17
18 fn opt_parse(
19 db: &'db dyn crate::Db,
20 parser: &mut Parser<'_, 'db>,
21 ) -> Result<Option<Self::Output>, crate::ParseFail<'db>> {
22 opt_parse_expr_with_precedence(db, parser, binary_expr_precedence::<SELECT_ALL>)
23 }
24
25 fn expected() -> crate::Expected {
26 crate::Expected::Nonterminal("expression")

Callers

nothing calls this directly

Calls 7

eat_keywordMethod · 0.80
peekMethod · 0.80
cloneMethod · 0.80
eat_next_tokenMethod · 0.80
eat_idMethod · 0.80
eat_opMethod · 0.80

Tested by

no test coverage detected