diff --git a/janet/myparser.janet b/janet/myparser.janet index 351dcd7..a154d75 100644 --- a/janet/myparser.janet +++ b/janet/myparser.janet @@ -219,8 +219,8 @@ The idea, however, is that Jesus: we must not have test-rule and apply-rule: com (var passing true) (def origin (stash parser)) (pprint origin) - (def failing nil) - (def passing true) + (var failing nil) + (var passing true) (loop [rule :in rules :while passing] (def pass? (apply-rule rule parser)) (when (not pass?) @@ -384,4 +384,9 @@ if (:)foo then :bar else :baz (-> (scan source) (parse if-expr) pprint) ) +(comment +Okay, so I'm trying to figure out how to manage panics in this declarative (not recursive-descent) parser. +The question is how to + +)