paisley
v2.0.7
Published
A grindy javascript precompiler. Javascript the way you want it.
Downloads
10
Readme
The Paisley Compiler
A grindy javascript precompiler created to provide zero-cost abstractions and added user convenience.
Installation
Install Paisley like you would any other node module.
$ npm i paisley -g
Usage
Paisley is run with the syntax paisley [file.sly] options
.
$ paisley example.sly --debug true
Syntax
Paisley uses a clean, c-style syntax for writing javascript. Here is a simple example:
#define constant [300]
#macro add[x, y] [x + y]
console.log(add(constant, 200)); // Logs "500"
Errors
Paisley values highly readable error messages.
This allow users to catch mistakes at compile-time instead of runtime in a manner that is easier to debug.
Documentation
Paisley's documentation is included with the compiler, and can be located using paisley --docs
.
Licensing
Paisley is licensed under the GPL-3.0. A copy is included with the compiler, and can be located using paisley --license
.