Commits

Moritz Heidkamp committed a588769

Add end-of-input convenience parser (thanks to florz for the idea)

  • Participants
  • Parent commits 7517a54

Comments (0)

Files changed (1)

  preceded-by
  followed-by
  enclosed-by
+ end-of-input
  as-string
  recursive-parser
  memoize
 (define (maybe parser #!optional default)
   (any-of parser (result default)))
 
+(define end-of-input
+  (none-of item))
+
 (define (as-string parser)
   (sequence* ((parts parser))
     (result