#derive #lua #parser #ast #convert #lossless

macro full_moon_derive

Internally used for the full_moon project. Do not use.

5 unstable releases

✓ Uses Rust 2018 edition

new 0.3.1 Oct 11, 2019
0.3.0 Oct 4, 2019
0.2.0 Sep 9, 2019
0.1.1 Jun 2, 2019
0.1.0 May 23, 2019

50 downloads per month
Used in 1 crate

MPL-2.0 license

493 lines

Full Moon

A lossless Lua 5.1 parser written in Rust.


Full Moon preserves comments, whitespace, style choices, etc. With Full Moon, you're able to convert your Lua code into an AST and a syntax tree and convert it back to the original code exactly.

Using Full Moon, you'll be able to modify the AST directly and re-export it back to Lua, all while preserving the style in which you write.


Full Moon is usable in projects such as:


Full Moon is heavily inspired by LPGhatguy's mab and by the possibilities brought on by benjamn's recast.


~26K SLoC