clean up little bugs

This commit is contained in:
Scott Richmond 2024-06-04 13:02:15 -04:00
parent df274799be
commit 1842923fa3
3 changed files with 3 additions and 5 deletions

View File

@ -78,7 +78,7 @@
:typed (string (show-patt (get-in x [:data 1])) " as " (show-patt (get-in x [:data 0])))
:interpolated (get-in x [:token :lexeme])
:string (get-in x [:token :lexeme])
(error "cannot show pattern of unknown type " (x :type))))
(error (string "cannot show pattern of unknown type " (x :type)))))
(defn- docstring [fnn] :todo)

View File

@ -566,7 +566,6 @@ fn foo {
() -> :foo
(_) -> :bar
}
foo ()
`)
(def result (run))
# (b/show result)

View File

@ -1132,15 +1132,14 @@
)
(do
# (comment
# (do
(comment
(def source `(foo as :bar, 12, :foo, _thing)
`)
(def scanned (s/scan source))
(print "\n***NEW PARSE***\n")
(def a-parser (new-parser scanned))
(def parsed (pattern a-parser))
(print (show-patt parsed))
)