holey-bytes/hblang/src/main.rs

13 lines
341 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-24 10:26:00 -05:00
let parsed = hblang::parse_from_fs(1, &root)?;
2024-06-01 13:30:07 -05:00
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())
}