Expand description
Re-exports§
pub use crate::ast::AstNode;pub use crate::ast::AstToken;pub use crate::ast::SourceFile;
Modules§
Macros§
Structs§
- AstPtr
- Like
SyntaxNodePtr, but remembers the type of node - Parse
Parseis the result of the parsing: a syntax tree and a collection of errors.- SmolStr
- A
SmolStris a string type that has the following properties: - Syntax
Error - Syntax
Node Ptr - A pointer to a syntax node inside a file. It can be used to remember a specific node across reparses of the same file.
- Syntax
Tree Builder - Text
Range - A range in text, represented as a pair of
TextSize. - Text
Size - A measure of text length. Also, equivalently, an index into text.
- Token
- A token of Mun source
- Token
Text
Enums§
- Direction
- Location
- Syntax
Error Kind - Syntax
Kind - The kind of syntax node, e.g.
IDENT,USE_KW, orSTRUCT_DEF. - Walk
Event WalkEventdescribes tree walking process.
Functions§
- tokenize
- Break a string up into its component tokens