0.9.1 • Published 10 years ago

hrmsandbox v0.9.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

hrmsandbox

A sandbox for Human Resource Machine programs. There is a similar project hrm-cpu which works under ES6, and there are projects with level data and with solutions. There is also an excellent JavaScript viewer for web based projects.

Web Demo

Try a live demo of the HRM Sandbox.

Installation

Download node at nodejs.org and install it, if you haven't already.

$ npm install hrmsandbox

Usage

$ hrmsandbox --file=min-of-3.hrm -- 3 5 -1 2 -9 -9 13 -20 0
INBOX:
[ 3, 5, -1, 2, -9, -9, 13, -20, 0 ]
VARIABLES:
{ a: -20, b: 0, c: 13, temp: 0 }
INBOX:
[]
OUTBOX:
[ 13, 0, -20, 2, -9, -9, 5, 3, -1 ]

Tests

Tests use tape and require tap:

$ npm install
$ npm test

> hrmsandbox@0.2.0 test /tmp/hrmsandbox
> tap test/*.js

test/syntax.js ........................................ 13/13
total ................................................. 13/13

  13 passing (342.102ms)

  ok

Dependencies

  • minimist

Dev Dependencies

  • peg.js

License

MIT

0.9.1

10 years ago

0.9.0

10 years ago

0.8.1

10 years ago

0.8.0

10 years ago

0.7.1

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago