summaryrefslogtreecommitdiff
path: root/parzival.lisp
diff options
context:
space:
mode:
authorColin Okay <cbeok@protonmail.com>2020-04-25 17:55:14 -0500
committerColin Okay <cbeok@protonmail.com>2020-04-25 17:55:14 -0500
commit0f65012f1b8221dbced9cba013d373810b067aae (patch)
tree73d637d4b3aaea46cec8ecd4692074cb4964f881 /parzival.lisp
parent5eb31650ccfc3ca87f89615d7caf1aa2ac828dea (diff)
added tutorial, added <<map-to
Diffstat (limited to 'parzival.lisp')
-rw-r--r--parzival.lisp8
1 files changed, 8 insertions, 0 deletions
diff --git a/parzival.lisp b/parzival.lisp
index 334fedd..bedc86f 100644
--- a/parzival.lisp
+++ b/parzival.lisp
@@ -393,6 +393,11 @@ the character C."
(append XS YS)"
(<<map (lambda (ys) (append xs ys)) parser))
+
+(defun <<map-to (value parser)
+ (<<map (lambda (ignore) (declare (ignore ignore)) value)
+ parser))
+
;;; PARSING SEQUENCES
(defun <<cons (head-parser tail-parser)
@@ -561,3 +566,6 @@ the character C."
(defun ignorable-symbol-p (symb)
"Returns true if a symbol name starts with _"
(eql #\_ (elt (symbol-name symb) 0)))
+
+
+