Expand description
The Slint Language Parser
This module is responsible to parse a string onto a syntax tree.
The core of it is the DefaultParser
class that holds a list of token and
generates a rowan::GreenNode
This module has different sub modules with the actual parser functions
Modules§
Structs§
- Default
Parser - Node
- The return value of
DefaultParser::start_node
. This borrows the parser and finishes the node on Drop - Node
Token - A token to proof that start_node_impl and finish_node_impl are only called from the Node implementation
- Syntax
Node - Syntax
Token - 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
Enums§
Traits§
Functions§
- identifier_
text - return the normalized identifier string of the first SyntaxKind::Identifier in this node
- lex_
next_ token - Returns a pair of the matched token type at the beginning of
text
, and its size - normalize_
identifier - parse
- parse_
file - parse_
tokens