Fork me on GitHub
#instaparse
<
2017-06-24
>
wistb00:06:12

hi, beginner question.

wistb00:06:18

(def abc-parser (insta/parser (http://clojure.java.io/resource "grammars/abc.abnf") :input-format :abnf :trace true :output-format :enlive)) ;;:auto-whitespace whitespace))

wistb00:06:57

if I enable the whitespace option , I am getting a copile error when I run 'lein run'.

wistb00:06:17

like this :

wistb00:06:18

(def abc-parser (insta/parser (http://clojure.java.io/resource "grammars/abc.abnf") :input-format :abnf :trace true :output-format :enlive :auto-whitespace whitespace))

wistb00:06:57

same problem if I used :auto-whitespace :standard

wistb00:06:35

Caused by: java.lang.IllegalArgumentException: No matching clause: :char at instaparse.combinators_source$auto_whitespace_parser.invokeStatic(combinators_source.clj:163) at instaparse.combinators_source$auto_whitespace_parser.invoke(combinators_source.clj:162) at instaparse.combinators_source$auto_whitespace$iter__426__430$fn__431.invoke(combinators_source.clj:184)