2 Directory with("addons") folders foreach(folder,
4 e := try(Lobby perform(folder name asSymbol))
5 //if(e, writeln(""), writeln(" (error)"))
9 protos
:= Protos slotValues
map(slotValues
) flatten unique
select(!=nil
) select(v
, if(v
type == "Object" and v docs ?slots
== nil
, false
, true
)) sortByKey(type asLowercase
)
12 if(p
hasLocalSlot("docs") not
, p docs
:= Object clone do(slots
:= Object clone))
14 if(p docs slots
getSlot(k
) == nil
,
15 p docs slots
setSlot(k
, Object clone do(description
:= "<font color=red>undocumented</font>"))
16 if(getSlot("v") type == Block, p docs slots
getSlot("k") args
:= v argumentNames
)
24 <title>io - core reference</title>
25 <META HTTP-EQUIV="EXPIRES" CONTENT=0>
30 text-decoration : none;
34 font-family: 'Serif', 'Helvetica Neue', 'Helvetica', 'Sans';
38 padding: 0em 0em 0em 3.1em;
53 font-family: 'Helvetica-Bold', 'Helvetica';
67 text-decoration: none;
70 vertical-align: 0.000000em;
75 font-family: 'Courier', 'Courier';
86 padding-bottom: 0.000000em;
87 padding-top: 0.000000em;
89 text-decoration: none;
92 vertical-align: 0.000000em;
97 font-family: 'Helvetica', 'Helvetica';
100 font-variant: normal;
106 margin-right: 0.00em;
107 margin-top: 0.000000em;
108 padding-bottom: 7.000000pt;
109 padding-top: 21.000000pt;
111 text-decoration: none;
113 text-transform: none;
114 vertical-align: 0.000000em;
119 font-family: 'Helvetica-Bold', 'Helvetica';
122 font-variant: normal;
133 text-decoration: none;
135 text-transform: none;
136 vertical-align: 0.000000em;
141 font-family: 'Times-Italic', 'Times';
144 font-variant: normal;
148 margin-bottom: 0.000000em;
150 margin-right: 0.00em;
151 margin-top: 0.000000em;
152 padding-bottom: 0.000000em;
153 padding-top: 0.000000em;
155 text-decoration: none;
157 text-transform: none;
158 vertical-align: 0.000000em;
167 writeln("<h1>Io Core Reference Manual</h1>")
168 writeln("<div class=Version>Version " .. System version
.. "</div>")
169 writeln("<h2>Prototypes</h2>")
173 writeln("<a href=#", v
type, " style=\"color: #555;\">", v
type, "</a><br>")
180 self asMutable
replaceSeq(">", ">") replaceSeq("<", "<")
186 write("<a name=" .. v
type .. "><font color=black>", v
type, "</font></a>")
188 writeln("<ul style=\"width:40em\">")
190 writeln("<b><font color=#000>Protos:</font></b> ", v protos
map(type) join(", "))
192 if (v
hasLocalSlot("docs"),
193 if (v docs ?description
,
194 writeln("<h3>Description</h3>")
195 //writeln("<font face=\"Times\">")
196 v docs description println
201 writeln("<h3>Slot Index</h3>")
202 writeln("<div style=\"width:40em; margin-left:2em\">")
203 v docs slots
foreachSlot(k
, s
,
204 write("<b><a href=#" .. v
type .. "-" .. k asHtml
.. " >")
206 if(s ?args
, write("()"))
207 //if(s ?args
, write("(" .. s args
join(",") .. ")"))
208 writeln("</a></b><br>")
213 writeln("<h3>Slots</h3>")
216 v docs slots
foreachSlot(k
, s
,
218 write("<a name=" .. v
type .. "-" .. k asHtml
.. "><font color=black>")
220 if(s ?args
, writeln("(</b><i>" .. s args
map(asHtml
) join(", ") .. "</i><b>)"))
221 write("</font></a></b>")
223 writeln("<div style=\"width:40em; margin-left:2em\">")
224 //writeln("<font face=\"Times\">")
225 writeln(s description
)
236 writeln("<hr align=left>")
241 5 repeat(writeln("<br>"))