Skip to content

A JavaScript parser that will take a skaggr JSON spec and output an expression string

Notifications You must be signed in to change notification settings

axisgroup/skaggr-parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skaggr-parse

A JavaScript parser that will take a JSON in skaggr-spec format and output a Qlik expression string

Motivation

See the skaggr-spec README for more details on the thinking behind skaggr-spec. This parser is a tool for taking those specs, which could be produced by automated tools or GUIs, and translating them into strings that can be fed to Qlik for calculations.

Example: Sum of Sales

var mySpec = {
    type: "aggr",
    value: "sum",
    parameters: [
        {
            type: "explicit",
            value: "Sales"
        }
    ]
};

var myExpr = skaggrParse(mySpec); // -> "sum(Sales)"

About

A JavaScript parser that will take a skaggr JSON spec and output an expression string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published