feat: Add support for loop statements.

This commit is contained in:
Jooris Hadeler
2026-01-15 21:42:15 +01:00
parent 6f19d38bf0
commit b0f3937227
3 changed files with 14 additions and 1 deletions

View File

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