Crate mun_syntax[−][src]
Syntax Tree Library used throughout Mun.
This crate is heavily inspired by Rust Analyzers ra_syntax and ra_parser crates.
Properties: - easy and fast incremental re-parsing - graceful handling of errors - full-fidelity representation (any text can be precisely represented as a syntax tree)
Re-exports
pub use crate::ast::AstNode; |
Modules
ast | |
utils |
Macros
T | |
match_ast | Matches a |
Structs
AstPtr | Like |
Parse |
|
SmolStr | A |
SourceFile | |
SyntaxError | |
SyntaxNodePtr | A pointer to a syntax node inside a file. It can be used to remember a specific node across reparses of the same file. |
SyntaxTreeBuilder | |
TextRange | A range in text, represented as a pair of |
TextSize | A measure of text length. Also, equivalently, an index into text. |
Token | A token of Mun source |
Enums
Direction | |
Location | |
SyntaxErrorKind | |
SyntaxKind | The kind of syntax node, e.g. |
WalkEvent |
|
Functions
tokenize | Break a string up into its component tokens |
Type Definitions
SyntaxElement | |
SyntaxNode | |
SyntaxToken |