43 releases

0.19.0 Nov 10, 2023
0.18.1 Mar 19, 2023
0.17.0 Jan 4, 2023
0.16.2 Sep 22, 2022
0.3.1 Jun 2, 2019

#285 in Parser implementations

Download history 830/week @ 2024-02-26 718/week @ 2024-03-04 810/week @ 2024-03-11 821/week @ 2024-03-18 695/week @ 2024-03-25 861/week @ 2024-04-01 668/week @ 2024-04-08 835/week @ 2024-04-15 969/week @ 2024-04-22 894/week @ 2024-04-29 937/week @ 2024-05-06 1425/week @ 2024-05-13 1095/week @ 2024-05-20 1353/week @ 2024-05-27 1310/week @ 2024-06-03 1511/week @ 2024-06-10

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

MPL-2.0 license

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

~4MB
~43K SLoC