Expand description
LeekScript grammar built with sipha.
Phase 1: token stream (lexer). Phases 2–4: expressions, statements, top-level.
Functions§
- build_
expression_ grammar - Build a grammar that parses a single expression (Phase 2). Start rule is “start” → ws expr ws eof.
- build_
grammar - Build the
LeekScriptgrammar (Phase 1: token stream). - build_
program_ grammar - 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.
- build_
signature_ grammar - Build the signature file grammar.
Start rule:
start→sig_wssig_filesig_wseof.