full-moon
full-moon copied to clipboard
A lossless Lua 5.1 parser
Calling `TypeDeclaration::new()` will always panic, because it tries to call `TokenReference::symbol("type ")` which is not a symbol. https://github.com/Kampfkarren/full-moon/blob/main/full-moon/src/ast/types.rs#L350 Whoops
I have genuinely no idea why I hid them, but they're exactly what I needed in selene to make an optimization that would've otherwise required cloning the entire Ast and...
What are the chances of adding support for lua 5.3? This seems fairly presumptuous on my part so fair enough if you close this.
[`Block.stmts()`](https://docs.rs/full_moon/0.14.0/full_moon/ast/struct.Block.html#method.stmts) does not include the `LastStmt` which can be gotten with [`Block.last_stmt()`](https://docs.rs/full_moon/0.14.0/full_moon/ast/struct.Block.html#method.last_stmt). This should be documented in `stmts`
Hi, I'm trying to do some analysis/searching of Lua code with `full_moon` and I find I can't easily store references to nodes in a Visitor. I was looking at the...
![image](https://user-images.githubusercontent.com/8604658/138955202-58bcbf13-090b-482d-9417-df69fd1e6f2e.png) ![image](https://user-images.githubusercontent.com/8604658/138955218-85272fda-1d63-4ef1-bcfc-55380876eb47.png)
For some inputs (eg. https://github.com/JohnnyMorganz/StyLua/issues/38, or other examples shown below), using full-moon produces a stack overflow. This is mostly noticeable in the debug version of full-moon, and is less likely...
In full_moon, the following code snippet is parsed as valid: ```lua if foo then break end function foo(bar) break end break ``` However, in all these situations, the `break` keyword...
This is extremely tired rambling, so bear with me. I think it's uncomfortable that full-moon must undergo a major version change nearly every time Luau (Roblox's Lua) changes something about...
I'm surprised that this isn't an existing issue given that there's on-going discussion about it on Discord, but here we go. In order for full-moon to be used for a...