]> gitweb.factorcode.org Git - factor.git/blob - apps/furnace-fjsc/repl.fhtml
ac4ca9c316d71d7a53e753ec964e897d1bfeb83b
[factor.git] / apps / furnace-fjsc / repl.fhtml
1 <table border="0">
2 <tr><td valign="top">
3 <p><b>Enter Factor Code Here</b></p>
4 <form id="toeval" onsubmit="factor.server_eval($('#code').get(0).value);return false;" method="post">
5   <textarea name="code" id="code" cols="64" rows="5">
6   </textarea>
7   <input type="submit" value="Compile"/>
8 </form>
9 <h3>Compiled Code</h3>
10 <textarea id="compiled" cols="64" rows="3">
11 </textarea>
12 <p><b>Stack</b></p>
13 <div id="stack">
14 </div>
15 <p><b>Playground</b></p>
16 <div id="playground">
17 </div>
18 </td>
19 <td valign="top">
20 <p>More information on the Factor to Javascript compiler can be found at these blog posts:
21 <ul>
22 <li><a href="http://www.bluishcoder.co.nz/2006/12/compiling-factor-to-javascript.html">Factor to Javascript Compiler</a></li>
23 <li><a href="http://www.bluishcoder.co.nz/2006/12/factor-to-javascript-compiler-updates.html">Factor to Javascript Compiler Updates</a></li>
24 <li><a href="http://www.bluishcoder.co.nz/2006/12/continuations-added-to-fjsc.html">Continuations added to fjsc</a></li>
25 <li><a href="http://www.bluishcoder.co.nz/2006/12/cross-domain-json-with-fjsc.html">Cross Domain JSON with fjsc</a></li>
26 </ul>
27 </p>
28 <p>Some useful words:
29 <dl>
30 <dt>vocabs ( -- seq )</dt>
31 <dd>Return a sequence of available vocabularies</dd>
32 <dt>words ( string -- seq )</dt>
33 <dd>Return a sequence of words in the given vocabulary</dd>
34 <dt>all-words ( -- seq )</dt>
35 <dd>Return a sequence of all words</dd>
36 </dl>
37 </p>
38 <p>The contents of <a href="/responder/fjsc-resources/bootstrap.factor">bootstrap.factor</a> have been loaded on startup.</p>
39 </td>
40 </tr>
41 </table>