all repos — hex @ caf4e4fb70841308b872d851ecbb8512743a86da

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

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>&gt;&nbsp;</span>
      <input placeholder="Input hex code and press ENTER" type="text" autofocus />
    </aside>
    <button id="upload">Upload Program</button>
    <textarea rows="8" 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>