43 releases

1.0.0-rc.5 Jul 6, 2024
0.19.0 Nov 10, 2023
0.18.1 Mar 19, 2023
0.16.2 Sep 22, 2022
0.3.1 Jun 2, 2019

#168 in Parser implementations

Download history 782/week @ 2024-04-03 741/week @ 2024-04-10 851/week @ 2024-04-17 963/week @ 2024-04-24 974/week @ 2024-05-01 941/week @ 2024-05-08 1358/week @ 2024-05-15 1365/week @ 2024-05-22 1213/week @ 2024-05-29 1296/week @ 2024-06-05 1680/week @ 2024-06-12 1339/week @ 2024-06-19 1089/week @ 2024-06-26 1763/week @ 2024-07-03 1381/week @ 2024-07-10 1026/week @ 2024-07-17

5,453 downloads per month
Used in 15 crates (12 directly)

MPL-2.0 license

420KB
10K 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

~3MB
~59K SLoC