add runtime doc info

This commit is contained in:
Scott Richmond 2024-06-04 13:04:53 -04:00
parent 1842923fa3
commit 478bc8649e

View File

@ -358,8 +358,8 @@
# Depends on: good string representation of patterns
# For now, this should be enough to tall the thing
(defn- fnn [ast ctx]
(def {:name name :data clauses} ast)
(def the-fn @{:name name :^type :fn :body clauses :ctx ctx})
(def {:name name :data clauses :doc doc} ast)
(def the-fn @{:name name :^type :fn :body clauses :ctx ctx :doc doc})
(set (ctx name) the-fn))
(defn- is_placeholder [x] (= x :_))