Revert to using 'core' parser rather than new declarative parser, which still
has bugs.
This commit is contained in:
parent
88d707a32e
commit
a68a3c9135
|
@ -1,7 +1,7 @@
|
||||||
(ns ^{:doc "parse multiple rules from a stream, possibly a file."
|
(ns ^{:doc "parse multiple rules from a stream, possibly a file."
|
||||||
:author "Simon Brooke"}
|
:author "Simon Brooke"}
|
||||||
mw-parser.bulk
|
mw-parser.bulk
|
||||||
(:use mw-parser.declarative
|
(:use mw-parser.core
|
||||||
mw-engine.utils
|
mw-engine.utils
|
||||||
clojure.java.io
|
clojure.java.io
|
||||||
[clojure.string :only [split trim]])
|
[clojure.string :only [split trim]])
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
(is (= (count (parse-file (as-file "resources/rules.txt"))) 15)
|
(is (= (count (parse-file (as-file "resources/rules.txt"))) 15)
|
||||||
"Should parse all rules and throw no exceptions")
|
"Should parse all rules and throw no exceptions")
|
||||||
(is (empty?
|
(is (empty?
|
||||||
(remove #(= % ':RULE)
|
(remove #(= % 'fn)
|
||||||
(map first
|
(map first
|
||||||
(parse-file
|
(parse-file
|
||||||
(as-file "resources/rules.txt")))))
|
(as-file "resources/rules.txt")))))
|
||||||
|
|
Loading…
Reference in a new issue