initial commit, correctly parses simple example

This commit is contained in:
2021-10-24 20:24:24 +02:00
commit e6a6fd1535
7 changed files with 646 additions and 0 deletions

11
src/main.rs Normal file
View File

@@ -0,0 +1,11 @@
mod parser;
mod ast;
fn main() {
let input = include_str!("../test.hw");
let result = parser::parse(input);
match result {
Ok(script) => {dbg!(script);},
Err(err) => println!("error: {}", nom::error::convert_error(input, err))
}
}