UniQL-JS
This generates Javascript based on UniQL ASTs.
Example
const parse = ;const uniql_to_js_compiler = ; const compiler = uniql_to_js_compiler; const ast = ;const javascript = compiler;console;
Results:
( height <= 20 ||
( favorites.color == "green" && height != 25 ) )
&& firstname.match( new RegExp( "o.+" ) )
API
.create( [ options ] )
Creates a JS compiler. You can override generators for various symbols or the post-processor for the compiled code, eg:
const compiler = uniql_to_js_compiler;