Skip to content

drjdn/ocaml_lua_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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