mirror of
https://github.com/MorizzG/MLox.git
synced 2025-12-06 04:22:41 +00:00
added closures
This commit is contained in:
parent
34c279ec2e
commit
b425a59db5
5 changed files with 59 additions and 28 deletions
|
|
@ -419,7 +419,6 @@ and fun_declaration (state : state) : stmt_result =
|
|||
let* () = consume state RightParen in
|
||||
let* body = with_is_in_fun block state in
|
||||
make_fun_decl pos name arg_names body |> Result.ok
|
||||
(* make_nil pos |> make_expr_stmt pos |> Result.ok *)
|
||||
|
||||
and declaration (state : state) : stmt_result =
|
||||
match peek_tt state with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue