2 Directory with("addons") folders foreach(folder,
4 e := try(Lobby perform(folder name asSymbol))
5 //if(e, writeln(""), writeln(" (error)"))
11 File with("libs/iovm/docs/docs.txt") contents
split("------\n") foreach(e
,
12 isSlot
:= e
beginsWithSeq("doc")
13 h
:= e
beforeSeq("\n") afterSeq(" ")
14 protoName
:= h
beforeSeq(" ")
15 slotName
:= h
afterSeq(" ")
16 description
:= e
afterSeq("\n")
17 //list(protoName
, slotName
, description
) println
18 p
:= protos
atIfAbsentPut(protoName
, Map clone atPut("slots", Map clone))
19 if(protoName
== nil
or slotName
== nil
, writeln("ERROR: ", e
))
21 p
at("slots") atPut(slotName
, description
)
23 p
atPut(slotName
, description
)
30 <title>io - core reference</title>
31 <META HTTP-EQUIV="EXPIRES" CONTENT=0>
36 text-decoration : none;
40 font-family: 'Serif', 'Helvetica Neue', 'Helvetica', 'Sans';
44 padding: 0em 0em 0em 3.1em;
59 font-family: 'Helvetica-Bold', 'Helvetica';
73 text-decoration: none;
76 vertical-align: 0.000000em;
82 font-family: 'Courier', 'Courier';
96 text-decoration: none;
99 vertical-align: 0.000000em;
104 font-family: 'Helvetica', 'Helvetica';
107 font-variant: normal;
113 margin-right: 0.00em;
114 margin-top: 0.000000em;
115 padding-bottom: 7.000000pt;
116 padding-top: 21.000000pt;
118 text-decoration: none;
120 text-transform: none;
121 vertical-align: 0.000000em;
126 font-family: 'Helvetica-Bold', 'Helvetica';
129 font-variant: normal;
140 text-decoration: none;
142 text-transform: none;
143 vertical-align: 0.000000em;
148 font-family: 'Times-Italic', 'Times';
151 font-variant: normal;
155 margin-bottom: 0.000000em;
157 margin-right: 0.00em;
158 margin-top: 0.000000em;
159 padding-bottom: 0.000000em;
160 padding-top: 0.000000em;
162 text-decoration: none;
164 text-transform: none;
165 vertical-align: 0.000000em;
174 writeln("<h1>Io Core Reference Manual</h1>")
175 writeln("<div class=Version>Version " .. System version
.. "</div>")
176 writeln("<h2>Prototypes</h2>")
179 protoNames
:= protos keys sort
182 writeln("<a href=#", k
, " style=\"color: #555;\">", k
, "</a><br>")
189 self asMutable
replaceSeq(">", ">") replaceSeq("<", "<")
193 protoNames
foreach(protoName
,
194 p
:= protos
at(protoName
)
196 write("<a name=" .. protoName
.. "><font color=black>", protoName
, "</font></a>")
198 writeln("<ul style=\"width:40em\">")
200 writeln("<b><font color=#000>Protos:</font></b> ", getSlot(protoName
) protos
map(type) join(", "))
202 if (p
at("description"),
203 writeln("<h3>Description</h3>")
204 p
at("description") println
208 slots
:= p
at("slots")
210 writeln("<h3>Slot Index</h3>")
211 writeln("<div style=\"width:40em; margin-left:2em\">")
213 slotNames := slots keys sort
214 slotNames sort
foreach(k
,
216 write("<b><a href=#" .. protoName
.. "-" .. k asHtml
.. " >")
218 if(s ?args
, write("()"))
219 writeln("</a></b><br>")
224 writeln("<h3>Slots</h3>")
230 write("<a name=" .. protoName
.. "-" .. k asHtml
.. "><font color=black>")
232 //if(s ?args
, writeln("(</b><i>" .. s args
map(asHtml
) join(", ") .. "</i><b>)"))
233 write("</font></a></b>")
235 writeln("<div style=\"width:40em; margin-left:2em\">")
236 //writeln("<font face=\"Times\">")
247 writeln("<hr align=left>")
252 5 repeat(writeln("<br>"))