feat: Add support for function declarations.

This commit is contained in:
Jooris Hadeler
2026-01-16 21:17:53 +01:00
parent fbf6726a78
commit 4815f6cd3a
4 changed files with 106 additions and 5 deletions

View File

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