From c96cd6e296b9da16767241d5a551f4ddeb2764fd Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sat, 24 Sep 2022 08:59:38 -0700 Subject: [PATCH] A couple of little comments. --- implementations/Ocaml/helloworld/bin/main.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/implementations/Ocaml/helloworld/bin/main.ml b/implementations/Ocaml/helloworld/bin/main.ml index 441c395..0d194a1 100644 --- a/implementations/Ocaml/helloworld/bin/main.ml +++ b/implementations/Ocaml/helloworld/bin/main.ml @@ -81,7 +81,9 @@ let rec expect_right_bracket tokens acc = match head with | Right_bracket -> acc, tail | Left_bracket -> + (* extract the sub-list *) let sub_list, rest = expect_right_bracket tail [] in + (* continue looking for the expected "]" *) let el, rrest = expect_right_bracket rest acc in JoyList sub_list :: el, rrest | Token tok -> -- 2.11.0