From 2bc32c35f255388a1b41b42b5ca3fb9f2805d867 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Sat, 6 Apr 2024 19:12:44 -0400 Subject: [PATCH] get the thing to run, anyway --- janet/myparser.janet | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 + +)