racket/collects/scribblings/scribble/lp-ex.rkt
2010-04-27 16:50:15 -06:00

18 lines
294 B
Racket

#lang scribble/lp
Literate programs have chunks of code, like this one:
@chunk[<f>
(define (f x)
<fs-body>)]
and this one:
@chunk[<fs-body>
(* x x)]
that, when assembled, produce a complete program, in this case:
@schemeblock[(define (f x)
(* x x))]