feat: Add support for if and compound statements.

This commit is contained in:
Jooris Hadeler
2026-01-15 21:38:07 +01:00
parent 10fd3b6abf
commit 6f19d38bf0
4 changed files with 50 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ pub mod parser;
pub mod token;
fn main() {
let mut parser = Parser::new("let index = 12 + 3;");
let mut parser = Parser::new("if a < 12 { let b = 10; } else { let c = 20; }");
println!("{:#?}", parser.parse_statement());
}