summaryrefslogtreecommitdiff
path: root/examples/Tutorial.org
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Tutorial.org')
-rw-r--r--examples/Tutorial.org9
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/Tutorial.org b/examples/Tutorial.org
index fcb2e4e..6a9fe9f 100644
--- a/examples/Tutorial.org
+++ b/examples/Tutorial.org
@@ -828,13 +828,8 @@ cbeo.
(in-package :parzival-json)
-(<<def <ws< ; define parsers with <<def
- (<<* ; zero or more, the Kleene star, reminiscent of regex
- (<<or ; any of the the following
- (<<char #\Space) ; parse exactly one character
- (<<char #\Linefeed)
- (<<char #\Return)
- (<<char #\Tab))))
+(<<def <ws<
+ (<<* (<<any-char (concatenate 'string '(#\Space #\Linefeed #\Return #\Tab)))))
(<<def <true< (<<map-to t (<<string "true")))
(<<def <false< (<<map-to nil (<<string "false")))