(export 'list)
(defparse list ((&rest keys) parser &optional (sep nil sepp))
- "Like MANY, but simply returns a list of the parser results."
+ "Like `many', but simply returns a list of the parser results."
(with-gensyms (acc)
`(parse (many (,acc nil (cons it ,acc) :final (nreverse ,acc) ,@keys)
,parser ,@(and sepp (list sep))))))
(export 'skip-many)
(defparse skip-many ((&rest keys) parser &optional (sep nil sepp))
- "Like MANY, but ignores the results."
+ "Like `many', but ignores the results."
`(parse (many (nil nil nil ,@keys)
,parser ,@(and sepp (list sep)))))