You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sigonasr2
0785506fad
|
4 years ago | |
---|---|---|
.. | ||
lib | 4 years ago | |
.npmignore | 4 years ago | |
.travis.yml | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
compiler.js | 4 years ago | |
package.json | 4 years ago |
README.md
cwise-compiler
Just the compiler from cwise. You can call this directly if you know what you are doing and want to skip calling cwise-parser and including esprima. This is only recommended in extreme cases though. Otherwise you should stick to the default interface in cwise and not mess around with this craziness.
Install
Install using npm:
npm install cwise-compiler
API
require("cwise-compiler")(procedure)
Compiles a cwise procedure for the given procedure. The object procedure must have the following fields:
args
An array of argument types (as in cwise)pre
A parsed pre functionbody
A parsed body functionpost
A parsed post functionfuncName
Name of the functionblockSize
Block size to generatedebug
Debug mode flag
License
(c) 2013 Mikola Lysenko. MIT License