funql
FUNctional Query Language
Funql refers to two things:
- A minimalist query language that happens to be a superset of JSON.
- This module which can be used to parse funql syntax and compile that syntax into various other things.
For the remainder of this document, "funql" will refer to this module, and "funql syntax" will refer to the query language.
Installation
npm
npm install funql
component
component install jdeal/funql
Usage
Parse funql syntax into an AST
var funql = ; var ast = funql;
Make an if function compile to a JavaScript if statement
var funql = ; var jsCompile = funql; var jsCode = ; // jsCode: if (x) {y} else {z}