You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
275 B
Rust

mod ast;
mod error;
mod lex;
use ast::parse;
fn main() {
let result = parse(String::from("test.gaybuild")).unwrap();
match result {
Ok(tree) => tree.walk(|n, d| println!("{}{}", " ".repeat(d as usize), n)),
Err(e) => println!("{:?}", e),
}
}