summaryrefslogtreecommitdiff
path: root/parzival.lisp
diff options
context:
space:
mode:
authorBoutade <thegoofist@protonmail.com>2020-03-06 11:21:04 -0600
committerBoutade <thegoofist@protonmail.com>2020-03-06 11:21:04 -0600
commit1dcd98391c66840c1dd377eb598d9a1f808b99d8 (patch)
tree67a2f59e0a54e725715eb49009f0ee46ed48dcd4 /parzival.lisp
parentc3b8d7d3ac67a8b71e1eed8645eedfa055cfb87a (diff)
tiny tweak to allow mutually recursive parsers
Diffstat (limited to 'parzival.lisp')
-rw-r--r--parzival.lisp4
1 files changed, 2 insertions, 2 deletions
diff --git a/parzival.lisp b/parzival.lisp
index 9884068..85a6632 100644
--- a/parzival.lisp
+++ b/parzival.lisp
@@ -43,8 +43,8 @@
(defmacro <<def (name parser &optional docstring)
`(progn
- (defvar ,name ,parser)
- (defun ,name (stream) ,docstring (funcall ,name stream))))
+ (defvar ,name ',name)
+ (defun ,name (stream) ,docstring (funcall ,parser stream))))
;;; The CORE PARSERS out of which all other parsers are built! A most solemn