moved to workspaces

This commit is contained in:
LunarAkai 2025-12-04 00:44:28 +01:00
commit 7c0dc98ef7
16 changed files with 91 additions and 103 deletions

View file

@ -0,0 +1,26 @@
use akailang_parser::abstract_syntax_tree::parser::parse;
/*
Simple Compiler -> 4 Stages:
- lex
- parse
- type-check
- translate to machine instructions
*/
fn main() {
let sourcecode = std::fs::read_to_string("sample.akai").unwrap();
//println!("Token Stream:");
//for (token, span) in token_iter.clone() {
// println!("{:?} at {:?}", token, span);
//}
println!("{:?}", sourcecode);
match parse(&sourcecode) {
Ok(res) => println!("{:#?}", res),
Err(e) => {
panic!("{:#?}", e)
}
};
}