Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference fixes for #189 #190

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{:paths ["src"]
:deps
{org.clojure/clojure {:mvn/version "1.9.0"},
org.clojure/clojurescript {:mvn/version "1.10.312"},
org.clojure/tools.reader {:mvn/version "1.2.2"}}}
1 change: 0 additions & 1 deletion src/instaparse/abnf.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
[instaparse.combinators-source :refer
[Epsilon opt plus star rep alt ord cat string-ci string
string-ci regexp nt look neg hide hide-tag unicode-char]]
#?(:cljs [goog.string.format])
[clojure.walk :as walk])
#?(:cljs (:require-macros [instaparse.abnf :refer [precompile-cljs-grammar]])))

Expand Down
2 changes: 1 addition & 1 deletion src/instaparse/auto_flatten_seq.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
(-pr-writer (seq afs) writer opts))))

(defn auto-flatten-seq [v]
(let [v (vec v)]
(let [v (into [] v)]
(AutoFlattenSeq. v
(hash-ordered-coll-without-mix v)
(hash v) (count v)
Expand Down
2 changes: 1 addition & 1 deletion src/instaparse/cfg.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@

:cljs
(defn safe-read-string [s]
(reader/read-string* (readers/string-push-back-reader s) nil nil nil)))
(#'reader/read-string* (readers/string-push-back-reader s) nil nil nil)))

; I think re-pattern is sufficient, but here's how to do it without.
;(let [regexp-reader (clojure.lang.LispReader$RegexReader.)]
Expand Down