16 lines
330 B
Rust
16 lines
330 B
Rust
mod util;
|
|
mod v1;
|
|
mod v2;
|
|
|
|
fn main() {
|
|
let arg = std::env::args_os().nth(1);
|
|
if let Some(path) = arg {
|
|
let file = std::fs::read_to_string(path).expect("failed to read file");
|
|
println!("{file}");
|
|
v1::parse_file(&file);
|
|
// v2::parse_file(&file);
|
|
} else {
|
|
v1::run_stdin();
|
|
}
|
|
}
|