/usr/share/doc/racket/r6rs/r6rs-mod.html is in racket-doc 6.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>4 R6RS Module Language</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_0");">▼</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">R6RS:<span class="mywbr"> </span> Scheme</a></td></tr></table></div><div class="tocviewsublisttop" style="display: block;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="Using_R6RS_with_DrRacket.html" class="tocviewlink" data-pltdoc="x">Using R<span style="vertical-align: super; font-size: 80%">6</span>RS with Dr<span class="mywbr"> </span>Racket</a></td></tr><tr><td align="right">2 </td><td><a href="Running_Top-Level_Programs.html" class="tocviewlink" data-pltdoc="x">Running Top-<wbr></wbr>Level Programs</a></td></tr><tr><td align="right">3 </td><td><a href="Installing_Libraries.html" class="tocviewlink" data-pltdoc="x">Installing Libraries</a></td></tr><tr><td align="right">4 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">R<span style="vertical-align: super; font-size: 80%">6</span>RS Module Language</a></td></tr><tr><td align="right">5 </td><td><a href="libpaths.html" class="tocviewlink" data-pltdoc="x">Libraries and Collections</a></td></tr><tr><td align="right">6 </td><td><a href="Language_Interoperability.html" class="tocviewlink" data-pltdoc="x">Language Interoperability</a></td></tr><tr><td align="right">7 </td><td><a href="conformance.html" class="tocviewlink" data-pltdoc="x">R<span style="vertical-align: super; font-size: 80%">6</span>RS Conformance</a></td></tr><tr><td align="right">8 </td><td><a href="R6RS_Libraries.html" class="tocviewlink" data-pltdoc="x">R<span style="vertical-align: super; font-size: 80%">6</span>RS Libraries</a></td></tr><tr><td align="right"></td><td><a href="doc-index.html" class="tocviewlink" data-pltdoc="x">Index</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,"tocview_1");">►</a></td><td>4 </td><td><a href="" class="tocviewselflink" data-pltdoc="x">R<span style="vertical-align: super; font-size: 80%">6</span>RS Module Language</a></td></tr></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">4.1 </td><td><a href="#%28part._using-r6rs%29" class="tocviewlink" data-pltdoc="x">Using R<span style="vertical-align: super; font-size: 80%">6</span>RS</a></td></tr><tr><td align="right">4.2 </td><td><a href="#%28part._.The_.Implementation_of_.R6.R.S%29" class="tocviewlink" data-pltdoc="x">The Implementation of R<span style="vertical-align: super; font-size: 80%">6</span>RS</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">4.1<tt> </tt></span><a href="#%28part._using-r6rs%29" class="tocsubseclink" data-pltdoc="x">Using R<span style="vertical-align: super; font-size: 80%">6</span>RS</a></td></tr><tr><td><span class="tocsublinknumber">4.2<tt> </tt></span><a href="#%28part._.The_.Implementation_of_.R6.R.S%29" class="tocsubseclink" data-pltdoc="x">The Implementation of R<span style="vertical-align: super; font-size: 80%">6</span>RS</a></td></tr><tr><td><a href="#%28form._%28%28lib._r6rs%2Fmain..rkt%29._~23~25module-begin%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">#%module-<wbr></wbr>begin</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="Installing_Libraries.html" title="backward to "3 Installing Libraries"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "R6RS: Scheme"" data-pltdoc="x">up</a> <a href="libpaths.html" title="forward to "5 Libraries and Collections"" data-pltdoc="x">next →</a></span> </div><h3 x-source-module="(lib "r6rs/scribblings/r6rs.scrbl")" x-part-tag=""r6rs-mod"">4<tt> </tt><a name="(part._r6rs-mod)"></a><a name="(mod-path._r6rs)"></a>R<span style="vertical-align: super; font-size: 80%">6</span>RS Module Language</h3><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=guide&rel=Module_Syntax.html%23%2528part._hash-lang%2529&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktMod">#lang</span></a><span class="hspace"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">r6rs-lib</span></span></td></tr></table></p><p>The <a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a> language is usually used in the form
<span class="RktMeta">#!</span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a>, which is equivalent to
<a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=guide&rel=Module_Syntax.html%23%2528part._hash-lang%2529&version=6.1" class="RktModLink Sq" data-pltdoc="x"><span class="RktMod">#lang</span></a><span class="stt"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a> and is also valid
R<span style="vertical-align: super; font-size: 80%">6</span>RS syntax.</p><h4 x-source-module="(lib "r6rs/scribblings/r6rs.scrbl")" x-part-tag=""using-r6rs"">4.1<tt> </tt><a name="(part._using-r6rs)"></a>Using R<span style="vertical-align: super; font-size: 80%">6</span>RS</h4><p>See <a href="Using_R6RS_with_DrRacket.html" data-pltdoc="x">Using R<span style="vertical-align: super; font-size: 80%">6</span>RS with DrRacket</a>,
<a href="Running_Top-Level_Programs.html" data-pltdoc="x">Running Top-Level Programs</a>, and
<a href="Installing_Libraries.html" data-pltdoc="x">Installing Libraries</a> for more information on writing and
running R<span style="vertical-align: super; font-size: 80%">6</span>RS programs with Racket.</p><h4 x-source-module="(lib "r6rs/scribblings/r6rs.scrbl")" x-part-tag=""The_Implementation_of_R6RS"">4.2<tt> </tt><a name="(part._.The_.Implementation_of_.R6.R.S)"></a>The Implementation of R<span style="vertical-align: super; font-size: 80%">6</span>RS</h4><p>The R<span style="vertical-align: super; font-size: 80%">6</span>RS language is itself implemented as a module within
Racket. The details of that implementation, as provided in this
section, are not normally relevant to programmers using R<span style="vertical-align: super; font-size: 80%">6</span>RS; see
the links in <a href="#%28part._using-r6rs%29" data-pltdoc="x">Using R<span style="vertical-align: super; font-size: 80%">6</span>RS</a>, instead. The details may be
relevant to programmers who are developing new tools or deriving
variants of R<span style="vertical-align: super; font-size: 80%">6</span>RS within Racket.</p><p>As a Racket module, the <a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a> module language provides
only a <span class="RktSym"><a href="#%28form._%28%28lib._r6rs%2Fmain..rkt%29._~23~25module-begin%29%29" class="RktStxLink" data-pltdoc="x">#%module-begin</a></span> binding, which is used to process the
entire body of a Racket module (see <span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&rel=module.html%23%2528form._%2528%2528quote._%7E23%7E25kernel%2529._module%2529%2529&version=6.1" class="RktStxLink Sq" data-pltdoc="x">module</a></span>). The
<span class="RktSym"><a href="#%28form._%28%28lib._r6rs%2Fmain..rkt%29._~23~25module-begin%29%29" class="RktStxLink" data-pltdoc="x">#%module-begin</a></span> binding from <a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a> allows the
body of a module to use the syntax of either a R<span style="vertical-align: super; font-size: 80%">6</span>RS library or a
R<span style="vertical-align: super; font-size: 80%">6</span>RS top-level program.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>syntax</p></div></div><table cellspacing="0" cellpadding="0" class="RktBlk RForeground"><tr><td><span class="RktPn">(</span><a name="(form._((lib._r6rs/main..rkt)._~23~25module-begin))"></a><span title="Provided from: r6rs | Package: r6rs-lib"><span class="RktSym"><a href="#%28form._%28%28lib._r6rs%2Fmain..rkt%29._~23~25module-begin%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">#%module-begin</a></span></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">library</span><span class="hspace"> </span><span class="RktVar">library-name</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">export</span><span class="hspace"> </span><span class="RktVar">export-spec</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">import</span><span class="hspace"> </span><span class="RktVar">import-spec</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">library-body</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></td></tr><tr><td><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="#%28form._%28%28lib._r6rs%2Fmain..rkt%29._~23~25module-begin%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">#%module-begin</a></span></td></tr><tr><td><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym">import</span><span class="hspace"> </span><span class="RktVar">import-spec</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace"> </span><span class="RktVar">program-body</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></td></tr></table></td></tr></table></blockquote></div><div class="SIntrapara">An <a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a> module that contains a single <span class="RktSym">library</span>
form defines an R<span style="vertical-align: super; font-size: 80%">6</span>RS library, while a module body that starts with
an <span class="RktSym">import</span> form defined an R<span style="vertical-align: super; font-size: 80%">6</span>RS top-level program.</div></p><p>The <span class="RktSym">library</span>, <span class="RktSym">export</span>, and <span class="RktSym">import</span> identifiers
are not exported by the <a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">r6rs</span></a> library; they are
recognized through equivalence to unbound identifiers.</p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, "6.1", "../");" onfocus="this.style.color="black"; this.style.textAlign="left"; if (this.value == "...search manuals...") this.value="";" onblur="if (this.value.match(/^ *$/)) { this.style.color="#888"; this.style.textAlign="center"; this.value="...search manuals..."; }"/></form> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.1");">top</a></span><span class="navright"> <a href="Installing_Libraries.html" title="backward to "3 Installing Libraries"" data-pltdoc="x">← prev</a> <a href="index.html" title="up to "R6RS: Scheme"" data-pltdoc="x">up</a> <a href="libpaths.html" title="forward to "5 Libraries and Collections"" data-pltdoc="x">next →</a></span> </div></div></div><div id="contextindicator"> </div></body></html>
|