#moon #lua #full #parser #lossless #full-moon

macro full_moon_derive

Internally used for the full_moon project. Do not use.

14 releases (breaking)

0.11.0 Sep 21, 2022
0.10.0 Jan 30, 2022
0.9.0 Nov 5, 2021
0.8.0 Jun 27, 2021
0.1.1 Jun 2, 2019

#16 in #moon

Download history 552/week @ 2023-12-15 538/week @ 2023-12-22 662/week @ 2023-12-29 650/week @ 2024-01-05 564/week @ 2024-01-12 881/week @ 2024-01-19 600/week @ 2024-01-26 1088/week @ 2024-02-02 586/week @ 2024-02-09 813/week @ 2024-02-16 756/week @ 2024-02-23 814/week @ 2024-03-01 716/week @ 2024-03-08 804/week @ 2024-03-15 901/week @ 2024-03-22 620/week @ 2024-03-29

3,148 downloads per month
Used in 15 crates (via full_moon)

MPL-2.0 license

28KB
787 lines

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

~2.5MB
~50K SLoC