Revert to using 'core' parser rather than new declarative parser, which still

has bugs.
This commit is contained in:
simon 2016-12-27 15:53:29 +00:00
parent 88d707a32e
commit a68a3c9135
2 changed files with 2 additions and 2 deletions
src/mw_parser
test/mw_parser

View file

@ -1,7 +1,7 @@
(ns ^{:doc "parse multiple rules from a stream, possibly a file."
:author "Simon Brooke"}
mw-parser.bulk
(:use mw-parser.declarative
(:use mw-parser.core
mw-engine.utils
clojure.java.io
[clojure.string :only [split trim]])

View file

@ -8,7 +8,7 @@
(is (= (count (parse-file (as-file "resources/rules.txt"))) 15)
"Should parse all rules and throw no exceptions")
(is (empty?
(remove #(= % ':RULE)
(remove #(= % 'fn)
(map first
(parse-file
(as-file "resources/rules.txt")))))