Welcome to the CHICKEN Scheme pasting service

Recursive parsers with comparse added by vktec on Mon Oct 3 11:24:16 2016

(define foo
  (recursive-parser (sequence (any-of (is #\a)
                                      foo)
                              (is #\b))))

(parse foo "abb")

;; Expected output:
;; ((#\a #\b) #\b)
;; #<parser-input-end>

;; Actual output:
;; (#\a #\b)
;; #<parser-input char-seq-cursor "b" ...>

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the result of `(and #t (or 'damn 'you 'spammers))'?
Visually impaired? Let me spell it for you (wav file) download WAV