Make bind marginally faster
This commit is contained in:
parent
80b7547ea8
commit
20d4f6e180
@ -63,7 +63,8 @@
|
|||||||
(lambda (s)
|
(lambda (s)
|
||||||
(let ((new-result (parser-run m s)))
|
(let ((new-result (parser-run m s)))
|
||||||
(if (null new-result) nil
|
(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)))))))
|
(parser-run (funcall f new-value) new-state)))))))
|
||||||
|
|
||||||
(defmacro parser-do (expr &rest more)
|
(defmacro parser-do (expr &rest more)
|
||||||
|
Loading…
Reference in New Issue
Block a user