holey-bytes/hblang/src/main.rs

13 lines
337 B
Rust
Raw Normal View History

2024-06-01 13:30:07 -05:00
fn main() -> std::io::Result<()> {
let root = std::env::args()
.nth(1)
.unwrap_or_else(|| "main.hb".to_string());
2024-05-12 17:02:32 -05:00
2024-06-01 13:30:07 -05:00
let parsed = hblang::parse_all(1, &root)?;
let mut codegen = hblang::codegen::Codegen::default();
codegen.files = parsed;
2024-05-12 17:02:32 -05:00
2024-06-01 13:30:07 -05:00
codegen.generate();
2024-05-12 17:02:32 -05:00
codegen.dump(&mut std::io::stdout())
}