MCPcopy Create free account
hub / github.com/Voxon-Development/zeta-lang / parse

Method parse

scribe-parser/src/parser/descent_parser.rs:27–40  ·  view source on GitHub ↗
(
        string_pool: Arc<StringPool>,
        bump: &'bump GrowableBump<'bump>,
        tokens: &'a Tokens<'a>,
    )

Source from the content-addressed store, hash-verified

25{
26 pub fn parse(
27 string_pool: Arc<StringPool>,
28 bump: &'bump GrowableBump<'bump>,
29 tokens: &'bump Tokens<'a, 'bump>,
30 ) -> Result<Vec<Stmt<'a, 'bump>>, DiagnosticError<'a>> {
31 let mut parser = DescentParser {
32 cursor: Cursor::new(tokens, 0),
33 string_pool,
34 bump,
35 diag: ParserDiagnosticsContext::new(true),
36 pending_close_angle: 0,
37 };
38
39 parser.parse_toplevel()
40 }
41
42 fn parse_toplevel(&mut self) -> Result<Vec<Stmt<'a, 'bump>>, DiagnosticError<'a>> {
43 let mut stmts = Vec::new();

Callers

nothing calls this directly

Calls 1

parse_toplevelMethod · 0.80

Tested by

no test coverage detected