feat: Add parsing support for primitive types.

This commit is contained in:
Jooris Hadeler
2026-01-16 21:02:14 +01:00
parent 4edcd1a7b7
commit fbf6726a78
4 changed files with 67 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ pub mod parser;
pub mod token;
fn main() {
let mut parser = Parser::new("break;");
let mut parser = Parser::new("{ let return_code: i32 = 12; return return_code; }");
println!("{:#?}", parser.parse_statement());
}