add: compiler

This commit is contained in:
2026-03-12 21:41:30 -07:00
parent 90de2206db
commit 3498b018e5
10 changed files with 6190 additions and 78 deletions

View File

@@ -2,6 +2,13 @@
//!
//! Loads the BNF grammar embedded at compile time, builds a [`bnf::GrammarParser`],
//! and exposes helpers used by both the compiler binary and the demo binary.
//!
//! Also provides the typed AST ([`ast`]), BNF-to-AST lowering pass ([`lower`]),
//! and LLVM code-generator ([`codegen`]) used by the compiler pipeline.
pub mod ast;
pub mod lower;
pub mod codegen;
use bnf::{Grammar, Term};