diff options
author | Colin Okay <cbeok@protonmail.com> | 2020-04-26 08:08:10 -0500 |
---|---|---|
committer | Colin Okay <cbeok@protonmail.com> | 2020-04-26 08:08:10 -0500 |
commit | caebdc0a861a69b538a95f439b349146a803bff4 (patch) | |
tree | 1323eda1014ac3b7eade7ff72a0d487cd7241b4d | |
parent | 22cc4a0add322506c49063dd0b299d9c7303b28f (diff) |
short version of <ws< in tutorial
-rw-r--r-- | examples/Tutorial.org | 9 |
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"))) |