8 releases (4 breaking)

✓ Uses Rust 2018 edition

0.5.0 Apr 22, 2020
0.4.0 Oct 20, 2019
0.4.0-rc.13 Jan 18, 2020
0.3.1 Oct 11, 2019
0.1.0 May 23, 2019
Download history 79/week @ 2020-01-21 68/week @ 2020-01-28 39/week @ 2020-02-04 37/week @ 2020-02-11 72/week @ 2020-02-18 83/week @ 2020-02-25 28/week @ 2020-03-03 60/week @ 2020-03-10 82/week @ 2020-03-17 138/week @ 2020-03-24 76/week @ 2020-03-31 158/week @ 2020-04-07 99/week @ 2020-04-14 186/week @ 2020-04-21 76/week @ 2020-04-28 74/week @ 2020-05-05

350 downloads per month
Used in 5 crates (via full_moon)

MPL-2.0 license

35KB
996 lines

Full Moon

A lossless Lua 5.1 parser written in Rust.

Lossless?

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.

Why?

Full Moon is usable in projects such as:

Inspiration

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

Dependencies

~0.6–0.9MB
~15K SLoC