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 id="input">
<span>> </span>
<input placeholder="Input hex code and press ENTER" type="text" autofocus />
</aside>
<button id="upload">Upload Program</button>
<textarea rows="8" placeholder="Input or paste hex code here" style="display: none;"></textarea>
<button id="evaluate" style="display: none;">Evaluate</button>
<button id="hide" style="display: none;">Hide</button>
</section>
</article>
<script src="/assets/hex.js"></script>
|