Awesome
miniscript
Miniscript is a compiler that translates its code to Javascript. It makes coding faster and easier by following the DRY principle. The miniscript code is smaller than the equivalent javascript and as fast as it.
Install:
$ npm install miniscript -g
Example:
fib = (num) {
if num is 0 || num is 1
return num
else
return fib(num-1) + fib(num-2)
end
}
print fib(5)
var fib;
fib = function(num) {
if (num == 0 || num == 1) {
return num;
} else {
return fib(num - 1) + fib(num - 2);
}
};
console.log(fib(5));
##Under development until v.1.0.0
v0.5.0 expected
- Correct error stack
- Produce sourcemaps
- More optimisations
- Better string interpolation
- Import improvements
v0.4.1 (7/3/2015)
- Fixed
Script.createContext()
bug to work on node v0.12 - Interactive miniscript now uses node's REPL instead of a custom implementation. REPL autocomplete feature is not supported (yet).
v0.4.0 (17/12/2014)
- More functionality
- Better syntax (almost finalized)
- Better Performance
- Bug fixes (nested loop statements and others)
v0.3.0 (2/9/2014)
- Miniscript web compiler
- No dependencies
v0.2.0 (3/7/2014)
- Grammar redesign
- Faster flex parsing
- Faster compiler
- Changes in language (syntax may change until v1.0.0)
- Less dependencies
v0.1.12 (17/5/2014)
set get on private members