Make bind marginally faster

This commit is contained in:
Greg Sexton 2014-08-17 20:35:25 +01:00
parent 80b7547ea8
commit 20d4f6e180

View File

@ -63,7 +63,8 @@
(lambda (s)
(let ((new-result (parser-run m s)))
(if (null new-result) nil
(destructuring-bind (new-value . new-state) new-result
(let ((new-value (car new-result))
(new-state (cdr new-result)))
(parser-run (funcall f new-value) new-state)))))))
(defmacro parser-do (expr &rest more)