Skip to main content

build_program_grammar

Function build_program_grammar 

Source
pub fn build_program_grammar() -> BuiltGraph
Expand description

Build a grammar that parses a program (Phase 3/4: list of statements). Start rule is “start” → node(NodeRoot, ws program ws eof) so the parse tree has a single root.