0.3.3 • Published 11 years ago
luapegjs v0.3.3
luapegjs
Lua2Js WIP . It uses Peg.js to generate Mozilla parser compatible AST which is transformed to JS via escodegen

Install
Usage
usage: luapegjs OPTIONS
OPTIONS are:
-t, --ast
Print AST to stdout
-c, --compress
Minify the JS ouput using uglify-js
-o FILE, --output FILE
Print generated JS data to FILE. USE "@2" for stderr and
"@1" or "-" for stdout.To build the parser
make buildOr To build examples
make examplesWhat has been implemented
+,-,*,/,=,>=,<=,!=,>,<local--commentsif elsestatmentwhile repeat forloops{}arrayfunction{x=1}tables
