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

@@ -1,9 +1,24 @@
[workspace]
members = [
".",
"rpgrt",
]
resolver = "2"
# ─────────────────────────────────────────────────────────────────────────────
# Main compiler package
# ─────────────────────────────────────────────────────────────────────────────
[package]
name = "rust-langrpg"
name = "rust-langrpg"
version = "0.1.0"
edition = "2024"
default-run = "rust-langrpg"
# ─────────────────────────────────────────────────────────────────────────────
# Binaries
# ─────────────────────────────────────────────────────────────────────────────
[[bin]]
name = "rust-langrpg"
path = "src/main.rs"
@@ -12,6 +27,21 @@ path = "src/main.rs"
name = "demo"
path = "src/bin/demo.rs"
# ─────────────────────────────────────────────────────────────────────────────
# Library (rlib — used by the binaries and tests)
# ─────────────────────────────────────────────────────────────────────────────
[lib]
name = "rust_langrpg"
path = "src/lib.rs"
crate-type = ["rlib"]
# ─────────────────────────────────────────────────────────────────────────────
# Dependencies
# ─────────────────────────────────────────────────────────────────────────────
[dependencies]
bnf = "0.6"
clap = { version = "4", features = ["derive"] }
bnf = "0.6"
clap = { version = "4", features = ["derive"] }
either = "1"
inkwell = { version = "0.8", features = ["llvm21-1"] }