Add C backend to nxc-frontend: - Implement CEmitter with HIR-to-C translation - Add emit_c() function for code generation - Support function prototypes, statements, expressions, and control flow - Generate C11-compatible code with proper type mapping - Add main() wrapper generation for entry points Extend driver crate with build pipeline: - Add emit_c_from_frontend() to generate C source from HIR - Add write_c_file() to write generated
22 lines
353 B
TOML
22 lines
353 B
TOML
[package]
|
|
name = "nxc-cli"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "nxc"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "nexacore"
|
|
path = "src/bin/nexacore.rs"
|
|
|
|
[dependencies]
|
|
nxc-driver = { path = "../nxc-driver" }
|
|
nxc-frontend = { path = "../nxc-frontend" }
|