Skip to content

Commit

Permalink
Fix (zero) to emit proper closure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarren committed Feb 2, 2011
1 parent 1120d31 commit ece08c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion primitives.lisp
Expand Up @@ -15,7 +15,10 @@

(defun zero ()
"Primitive parser: parsing failure"
(constantly nil))
#'(lambda (inp)
(declare (ignore inp))
#'(lambda ()
nil)))

(def-cached-parser item
"Primitive parser: consume item from input and return it."
Expand Down

0 comments on commit ece08c2

Please sign in to comment.