0.3.3 • Published 11 years ago

luapegjs v0.3.3

Weekly downloads
4
License
MIT
Repository
github
Last release
11 years ago

luapegjs

Lua2Js WIP . It uses Peg.js to generate Mozilla parser compatible AST which is transformed to JS via escodegen Build Status

Install

NPM

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 build

Or To build examples

make examples

What has been implemented

  • +, -, *, /, =, >=, <=, !=, >, <
  • local
  • -- comments
  • if else statment
  • while repeat for loops
  • {} array
  • function
  • {x=1} tables
0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago

0.0.1

11 years ago