/usr/share/doc/racket/algol60/index.html is in racket-doc 6.7-3.
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 23 | <!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>Algol 60</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="" class="tocviewselflink" data-pltdoc="x">Algol 60</a></td></tr></table></div><div class="tocviewsublistonly" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1 </td><td><a href="#%28part._.Implementation%29" class="tocviewlink" data-pltdoc="x">Implementation</a></td></tr><tr><td align="right">2 </td><td><a href="#%28part._.Including_.Algol_60_.Programs%29" class="tocviewlink" data-pltdoc="x">Including Algol 60 Programs</a></td></tr><tr><td align="right">3 </td><td><a href="#%28part._.Language%29" class="tocviewlink" data-pltdoc="x">Language</a></td></tr></table></div></div></div><div class="tocsub"><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._top%29" class="tocsubseclink" data-pltdoc="x">Algol 60</a></td></tr><tr><td><span class="tocsublinknumber">1<tt> </tt></span><a href="#%28part._.Implementation%29" class="tocsubseclink" data-pltdoc="x">Implementation</a></td></tr><tr><td><span class="tocsublinknumber">2<tt> </tt></span><a href="#%28part._.Including_.Algol_60_.Programs%29" class="tocsubseclink" data-pltdoc="x">Including Algol 60 Programs</a></td></tr><tr><td><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._include-algol%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">include-<wbr></wbr>algol</span></span></a></td></tr><tr><td><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._literal-algol%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktStxLink">literal-<wbr></wbr>algol</span></span></a></td></tr><tr><td><span class="tocsublinknumber">3<tt> </tt></span><a href="#%28part._.Language%29" class="tocsubseclink" data-pltdoc="x">Language</a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.7</span></div><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.7", "../");" 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.7");">top</a></span><span class="navright"> <span class="nonavigation">← prev</span> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.7");">up</a> <span class="nonavigation">next →</span></span> </div><h2 x-source-module="(lib "algol60/algol60.scrbl")" x-source-pkg="algol60" x-part-tag=""top""><a name="(part._top)"></a><a name="(part._.Algol_60)"></a>Algol 60</h2><h3 x-source-module="(lib "algol60/algol60.scrbl")" x-source-pkg="algol60" x-part-tag=""Implementation"">1<tt> </tt><a name="(part._.Implementation)"></a>Implementation</h3><p>The “Algol 60” language for DrRacket implements the language defined
by the “Revised Report on the Algorithmic Language Algol 60,” edited
by Peter Naur.</p><h3 x-source-module="(lib "algol60/algol60.scrbl")" x-source-pkg="algol60" x-part-tag=""Including_Algol_60_Programs"">2<tt> </tt><a name="(part._.Including_.Algol_60_.Programs)"></a><a name="(mod-path._algol60/algol60)"></a>Including Algol 60 Programs</h3><p>Although Algol 60 is mainly provided as a DrRacket language,
<span class="RktSym"><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._include-algol%29%29" class="RktStxLink" data-pltdoc="x">include-algol</a></span> supports limited use of Algol 60 programs in
larger programs.</p><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace"> </span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&version=6.7" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._algol60%2Falgol60%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">algol60/algol60</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller"> package:</span> <span class="stt">algol60</span></span></td></tr></table></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><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._algol60/algol60..rkt)._include-algol))"></a><span title="Provided from: algol60/algol60 | Package: algol60"><span class="RktSym"><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._include-algol%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">include-algol</a></span></span><span class="hspace"> </span><span class="RktVar">path-string</span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Includes the Algol 60 program indicated by <span class="RktVar">path-string</span> as an
expression in a Racket program. The included Algol 60 program is
closed (i.e., it doesn’t see any bindings in the included context),
and the result is always <a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=guide&rel=void_undefined.html&version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="nobreak"><span class="RktRes">#<void></span></span></a>.</div></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><p class="RForeground"><span class="RktPn">(</span><a name="(form._((lib._algol60/algol60..rkt)._literal-algol))"></a><span title="Provided from: algol60/algol60 | Package: algol60"><span class="RktSym"><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._literal-algol%29%29" class="RktStxDef RktStxLink" data-pltdoc="x">literal-algol</a></span></span><span class="hspace"> </span><span class="RktVar">string</span><span class="hspace"> </span><span class="RktMeta">...</span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Evaluates the Algol 60 program indicated by the literal <span class="RktVar">string</span>s
as an expression in a Racket program. The Algol 60 program is
closed (i.e., it doesn’t see any bindings in the included context),
and the result is always <a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=guide&rel=void_undefined.html&version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="nobreak"><span class="RktRes">#<void></span></span></a>.</div></p><p><div class="SIntrapara">This is generally useful when combined with the <a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=scribble&rel=reader-internals.html%23%2528mod-path._at-exp%2529&version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">at-exp</span></a> reader,
e.g.,
</div><div class="SIntrapara"><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=guide&rel=Module_Syntax.html%23%2528part._hash-lang%2529&version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktMod">#lang</span></a><span class="RktMeta"></span><span class="hspace"> </span><span class="RktMeta"></span><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=scribble&rel=reader-internals.html%23%2528mod-path._at-exp%2529&version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">at-exp</span></a><span class="RktMeta"></span><span class="hspace"> </span><span class="RktMeta">racket</span></td></tr><tr><td><span class="RktMeta"></span><span class="RktPn">@</span><span class="RktSym"><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._literal-algol%29%29" class="RktStxLink" data-pltdoc="x">literal-algol</a></span><span class="RktPn">{</span><span class="RktMeta"></span></td></tr><tr><td><span class="RktMeta"></span><span class="hspace"> </span><span class="RktMeta"></span><span class="RktMeta">begin</span><span class="RktMeta"></span></td></tr><tr><td><span class="RktMeta"></span><span class="hspace"> </span><span class="RktMeta"></span><span class="RktMeta">printsln</span><span class="hspace"> </span><span class="RktMeta">(`hello</span><span class="hspace"> </span><span class="RktMeta">world')</span><span class="RktMeta"></span></td></tr><tr><td><span class="RktMeta"></span><span class="hspace"> </span><span class="RktMeta"></span><span class="RktMeta">end</span><span class="RktMeta"></span></td></tr><tr><td><span class="RktMeta"></span><span class="RktPn">}</span><span class="RktMeta"></span></td></tr></table></blockquote></div></p><h3 x-source-module="(lib "algol60/algol60.scrbl")" x-source-pkg="algol60" x-part-tag=""Language"">3<tt> </tt><a name="(part._.Language)"></a>Language</h3><p>The DrRacket and <span class="RktSym"><a href="#%28form._%28%28lib._algol60%2Falgol60..rkt%29._include-algol%29%29" class="RktStxLink" data-pltdoc="x">include-algol</a></span> implementation departs from
the Algol 60 specification in the following minor ways:</p><ul><li><p>Strings are not permitted to contain nested quotes.</p></li><li><p>Identifiers cannot contain whitespace.</p></li><li><p>Argument separators are constrained to be identifiers (i.e., they
cannot be keywords, and they cannot consist of multiple
identifiers separated by whitespace.)</p></li><li><p>Numbers containing exponents (using the “10” subscript) are not
supported.</p></li></ul><p>Identifiers and keywords are case-sensitive. The boldface/underlined
keywords of the report are represented by the obvious character
sequence, as are most operators. A few operators do not fit into
ASCII, and they are mapped as follows:</p><p><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">times</span><span class="hspace"> </span><span class="stt">*</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">quotient</span><span class="hspace"> </span><span class="stt">div</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">exponential</span><span class="hspace"> </span><span class="stt">^</span><span class="hspace"> </span><span class="stt"></span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">less or equal</span><span class="hspace"> </span><span class="stt"><= </span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">greater or equal</span><span class="hspace"> </span><span class="stt">>=</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">not equal</span><span class="hspace"> </span><span class="stt">!=</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">equivalence</span><span class="hspace"> </span><span class="stt">==</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">implication</span><span class="hspace"> </span><span class="stt">=></span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">and</span><span class="hspace"> </span><span class="stt">&</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">or</span><span class="hspace"> </span><span class="stt">|</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">negation</span><span class="hspace"> </span><span class="stt">!</span></p></td></tr></table></p><p>In addition to the standard functions, the following output functions
are supported:</p><p><table cellspacing="0" cellpadding="0"><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">prints(E)</span><span class="hspace"> </span><span class="stt">prints the string E</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">printsln(E)</span><span class="hspace"> </span><span class="stt">prints the string E followed by a newline</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">printn(E)</span><span class="hspace"> </span><span class="stt">prints the number E</span></p></td></tr><tr><td><p><span class="stt"></span><span class="hspace"> </span><span class="stt">printnln(E)</span><span class="hspace"> </span><span class="stt">prints the number E followed by a newline</span></p></td></tr></table></p><p>A prompt in DrRacket’s interactions area accepts whole programs only
for the Algol 60 language.</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.7", "../");" 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.7");">top</a></span><span class="navright"> <span class="nonavigation">← prev</span> <a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot("6.7");">up</a> <span class="nonavigation">next →</span></span> </div></div></div><div id="contextindicator"> </div></body></html>
|