-
I'm writing a parser for my language, here's what I got: (def ifl
[:schema
{:registry
{::defn ;:int
[:catn [:_ [:= 'defn]] [:name :symbol] [:bindings [:vector :symbol]] [:exp :any]]
::defns
[:sequential [:ref ::defn]]}}
::defns]) note on line 5 I was forced to use a label I realize that under some circumstances, it will make it impossible to unparse, so probably that is impossible to achieve? |
Beta Was this translation helpful? Give feedback.
Answered by
ikitommi
Jan 28, 2023
Replies: 1 comment
-
There is no built-in way to drop the unwanted keys. You could |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
glyh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no built-in way to drop the unwanted keys. You could
clojure.walk/prewalk
them away, but as you said, you can't unparse it if you drop them. I just would not drop them.