feat: Add support for if and compound statements.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user