You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(i/parser
{:foo (cat (string"foo") "." (string"bar"))}
:start:foo)
;; =>;; IllegalArgumentException No matching clause: instaparse.cfg/seq-nt (cfg.clj:236);; followed by unhelpful stack
You can easily spot an error in this tiny grammar: we forgot to wrap "." in (string "."). Imagine however trying to find a problem in 100+ lines grammar when all you get is No matching clause: and the last frame that points to some internal library function. I'm not sure if there's a general way to identify and report cases like this, but it might save someone else plenty of time and head-scratching.
The text was updated successfully, but these errors were encountered:
You can easily spot an error in this tiny grammar: we forgot to wrap
"."
in(string ".")
. Imagine however trying to find a problem in 100+ lines grammar when all you get isNo matching clause:
and the last frame that points to some internal library function. I'm not sure if there's a general way to identify and report cases like this, but it might save someone else plenty of time and head-scratching.The text was updated successfully, but these errors were encountered: