Converts sax file into json
Want to see pretty graphs? Log in now!
npm install saxtojson
|10||downloads in the last month|
|Last Published By|
|Version||0.0.10 last updated 2 years ago|
Converts .sax file (yes, I made up this format) into json.
Don't have one. Just clone this repository.
Brace yourself... execute
bin/sax2json or require
Sax file is a collection of commands.
collection of arguments separated by white space. First argument must be a string. Block can only be the last argument.
comment (line starting with
#and optional trailing white spaces)
Argument is a string or block.
String is a set of chars enclosed by double quotation marks. Quotation marks can be ommited.
Block is a set equally indented commands.
click "a[name=b]" equal "title" "foo" ok 2 > 1
[[ "click", "a[name=b]", [[ "equal", "title", "foo" ], [ "ok": "2", ">", "1" ]] ]]