chickadee » prcc » lazy

(lazy PARSER)syntax

Defer the binding of parser. This is useful for mutually recursive parsers, as PARSER can be defined after the use of the lazy parser.

Example:

;; Without "lazy" around bar, this would give an error that
;; bar is not yet defined.
(define foo (sel (char #\x) (lazy bar)))
(define bar (char #\y))