42 releases

0.18.1 Mar 19, 2023
0.17.0 Jan 4, 2023
0.16.2 Sep 22, 2022
0.15.1 Feb 17, 2022
0.3.1 Jun 2, 2019

#139 in Parser implementations

Download history 1728/week @ 2023-02-16 1303/week @ 2023-02-23 949/week @ 2023-03-02 1558/week @ 2023-03-09 991/week @ 2023-03-16 933/week @ 2023-03-23 1081/week @ 2023-03-30 1224/week @ 2023-04-06 836/week @ 2023-04-13 1599/week @ 2023-04-20 804/week @ 2023-04-27 954/week @ 2023-05-04 761/week @ 2023-05-11 769/week @ 2023-05-18 891/week @ 2023-05-25 931/week @ 2023-06-01

3,497 downloads per month
Used in 12 crates (10 directly)

MPL-2.0 license

355KB
9K SLoC

Full Moon

A lossless Lua 5.1 / 5.2 / 5.3 / 5.4 / Luau 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

~1.5–2.2MB
~48K SLoC