feat(tazjin/rlox): Parse function declarations
Change-Id: I1db4316563827976e5233dc7a626968f80b992ef Reviewed-on: https://cl.tvl.fyi/c/depot/+/2390 Reviewed-by: tazjin <mail@tazj.in> Tested-by: BuildkiteCI
This commit is contained in:
parent
8bcbb04160
commit
1ed34443d8
2 changed files with 67 additions and 4 deletions
|
|
@ -208,6 +208,7 @@ impl Interpreter {
|
|||
Statement::Block(block) => return self.interpret_block(block),
|
||||
Statement::If(if_stmt) => return self.interpret_if(if_stmt),
|
||||
Statement::While(while_stmt) => return self.interpret_while(while_stmt),
|
||||
Statement::Function(_) => unimplemented!(),
|
||||
};
|
||||
|
||||
Ok(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue