Skip to content

Commit

Permalink
Allow discarding results in gather-if-not*.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramarren committed Sep 1, 2010
1 parent 53855de commit e5375cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greedy.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
(multiple-value-bind (result new-input) (gather-if-not*-using-context inp predicate accept-end accept-empty)
(when new-input
(make-instance 'parser-possibility
:tree (coerce result result-type)
:tree (when result-type (coerce result result-type))
:suffix new-input)))))

(defun gather-before-token* (token &key (result-type 'list) (test #'eql) (accept-end nil) (accept-empty nil))
Expand Down

0 comments on commit e5375cf

Please sign in to comment.