Expand description
§Full Moon
full_moon
is a lossless parser for Lua, supporting Lua 5.1, 5.2, 5.3, 5.4 and Luau
Learn more by going to the repository
Re-exports§
pub use ast::LuaVersion;
Modules§
- ast
- Utilities for ASTs (Abstract Syntax Trees). Contains all nodes used by Full Moon (such as blocks).
- node
- Contains the
Node
trait, implemented on all nodes - tokenizer
- Used for tokenizing, the process of converting the code to individual tokens. Useful for getting symbols and manually tokenizing without going using an AST.
- visitors
- Used to create visitors that recurse through
Ast
nodes.
Structs§
- Short
String - A string as used in
TokenType
.
Enums§
- Error
- An error type that consists of both
AstError
andTokenizerError
Used byparse
Functions§
- parse
- Creates an
Ast
from Lua code. Will use the most complete set of Lua versions enabled in your feature set. - parse_
fallible - Given code and a pinned Lua version, will produce an
ast::AstResult
. This AstResult always produces someAst
, regardless of errors. If a partial Ast is produced (i.e. if there are any errors), a few guarantees are lost: