53 releases (5 stable)

new 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

#115 in Parser implementations

Download history 2267/week @ 2024-09-24 1329/week @ 2024-10-01 2036/week @ 2024-10-08 2169/week @ 2024-10-15 2295/week @ 2024-10-22 2026/week @ 2024-10-29 2001/week @ 2024-11-05 2843/week @ 2024-11-12 3040/week @ 2024-11-19 3114/week @ 2024-11-26 2653/week @ 2024-12-03 2733/week @ 2024-12-10 2260/week @ 2024-12-17 1685/week @ 2024-12-24 3007/week @ 2024-12-31 2770/week @ 2025-01-07

10,058 downloads per month
Used in 20 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
~42K SLoC