web/contents/play.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<article> <h2>Playground</h2> <p>You can use the REPL below to try out hex directly in your browser. This is the <em>actual</em> hex REPL, compiled to <a href="https://webassembly.org">WebAssembly</a>.</p> <p>For example, try entering the following code, which pushes the quotation <code>($0x1$$ $0x8$$ $0x1b$$)</code> on the stack: </p> <pre><code>($0x1$$ $0x2$$ $0x3$$) ($:dup$$ $:dup$$ $:*$$ $:*$$) $:map$$</code></pre> <section> <section></section> <aside> <span>> </span> <input type="text" autofocus /> </aside> <button id="upload">Upload Program</button> <textarea rows="8"></textarea> <button id="evaluate">Evaluate</button> <button id="hide">Hide</button> </section> </article> <script src="/assets/hex.js"></script> |