web/contents/play.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<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>
</section>
</article>
<script src="/assets/hex.js"></script>
|