Skip to content

Commit

Permalink
rename any-char in anyToken
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Mikulicic committed Jan 4, 2010
1 parent dcfbca6 commit 4343bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clarsec.clj
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
(bind p #(result (f %))))
;;

(def any-char
(def anyToken
(make-monad 'Parser
(fn p-any-char [strn]
(fn p-anyToken [strn]
(if (= "" strn)
(failed)
(consumed (first strn)
Expand All @@ -75,7 +75,7 @@
(make-monad 'Parser (fn p-fail [strn] (failed))))

(defn satisfy [pred]
(let-bind [c any-char]
(let-bind [c anyToken]
(if (pred c) (result c) fail)
))

Expand Down

0 comments on commit 4343bd7

Please sign in to comment.