wescheme javascript compiler
This package has not been published to npm yet, so you have to install it from the github repository:
npm install --save bootstrapworld/wescheme-js
This can be used with requireJS syntax, or ECMAScript 6 imports
var wescheme = require('wescheme-js')
// or, if using ecmascript 6:
// import compile from 'wescheme-js'
var bytecode = wescheme.compile('(triangle 200 "solid" "turquoise")')
console.log("I got some bytecode!", bytecode)
You can check out some example code that shows off how this works by running:
npm start
and browsing to
http://localhost:8080/webpack-dev-server
To run the extensive test suite, do the following:
npm run start-test
then browse to
http://localhost:8085/webpack-dev-server
and click around on that page as you wish.