add a section about running r6rs inside drracket
This commit is contained in:
parent
8e0f8dd39c
commit
7ffbe6b1f8
|
@ -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}
|
@section{Running Top-Level Programs}
|
||||||
|
|
||||||
To run a top-level program, either:
|
To run a top-level program, either:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user