drjdn / ocaml_lua_parser

Lua parser and pretty printer in OCaml
MIT License
1 stars 1 forks source link

Luajit/Lua 5.2 Parser and Pretty Printer

This repository contains a luajit/lua 5.2 parser and pretty printer implemented in OCaml. It has been reasonably well tested and any code parsed and pretty printed should execute correctly. If not please submit an issue.

Installation

As long as you have a current version of opam, installation is as simple as:

$ opam install lua_parser

You can then use it to parse and print lua code:

$ l2l -lua file1.lua

License

MIT