Clone the repo and cd in, then use
make to install dependencies and generate the parser.
make deps make
You can then use the
That will generate a
calc.js in your pwd which you can execute with Node.JS. For convenience I've added a
test target in the Makefile.
This will regenerate the parser, compile
I've still got a number of issue to tackle beyond syntax and learning Jison grammar, like:
- What's the best way inject runtime code to fix features that don't exist in the target languages (i.e. PHP doesn't have a
console.logso calc.php and calc.js have different outputs).
- How will you integrate with libraries in target languages (i.e. jQuery, Backbone, etc).
- How will you debug code?