<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 13 March 2017 at 07:20,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2017-03-12 11:20:07 -0700 (Sun, 12 Mar 2017)<br>
515<br>
node_hsint.js commandline Javascript HamsterSpeak interpreter!<br>
<br>
This is an implementation of most of the commands in hamsterspeak.hsd<br>
and wrapper around zzo38's 'hspeakrt' HamsterSpeak interpreter.<br>
Pass it a .hs file, and it'll run the 'main' script.<br>
<br>
Also added a few more testcases to hstests.hss. And a couple other trivial changes.<br>
<br>
Note: I sent zzo38 several fixes; this won't run without them.<br>
(Even with them, hspeakrt still doesn't handle recursive subscripts correctly,<br>
but passes the rest of hstests.hss!)<br>
---<br>
U   wip/hamsterspeak.hsd<br>
A   wip/node_hsint.js<br>
U   wip/scriptcommands.bas<br>
U   wip/testgame/hstests.hss<br></blockquote><div><br></div><div>zzo38 uploaded a completely fixed version of hspeakrt, 2.0.0.<br><br></div><div>I was considering the possibility of writing a HS bytecode to JS translator for any eventual JS/wasm port of the OHR... so it's very nice that zzo38 has already done it for us!<br><br></div><div>I learnt most of what I know about javascript while writing this, and am actually really enjoying it. Expect me to start borrowing ideas from JS instead of python :)<br></div></div></div></div>