53 releases (5 stable)

1.2.0 Jan 10, 2025
1.1.2 Nov 17, 2024
1.1.0 Oct 13, 2024
1.0.0-rc.5 Jul 6, 2024
0.3.1 Jun 2, 2019

#131 in Parser implementations

Download history 3136/week @ 2024-11-21 2881/week @ 2024-11-28 2554/week @ 2024-12-05 2566/week @ 2024-12-12 1943/week @ 2024-12-19 1820/week @ 2024-12-26 3303/week @ 2025-01-02 4290/week @ 2025-01-09 3648/week @ 2025-01-16 3095/week @ 2025-01-23 3135/week @ 2025-01-30 3850/week @ 2025-02-06 3441/week @ 2025-02-13 2852/week @ 2025-02-20 3588/week @ 2025-02-27 2629/week @ 2025-03-06

12,952 downloads per month
Used in 22 crates (16 directly)

MPL-2.0 license

435KB
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

~1.4–2.1MB
~41K SLoC