diff --git a/collects/r6rs/scribblings/r6rs.scrbl b/collects/r6rs/scribblings/r6rs.scrbl index a77d942e36..1d18fa26c3 100644 --- a/collects/r6rs/scribblings/r6rs.scrbl +++ b/collects/r6rs/scribblings/r6rs.scrbl @@ -46,6 +46,20 @@ other modules. @; ---------------------------------------- +@section{Using R6RS with DrRacket} + +To run an R6RS program with DrRacket choose "Use language declared in source" +from the language dialog box and add the following line to the top of your program. +@racketmetafont{#!r6rs}. + +Here is a small example R6RS program that will work in DrRacket. +@racketblock[ +#,(racketmetafont "#!r6rs") +(import (rnrs lists (6)) + (rnrs base (6)) + (rnrs io simple (6))) +(display (find even? '(3 1 4 1 5 9)))] + @section{Running Top-Level Programs} To run a top-level program, either: