Expand description
CST -> AST lowering over the compiled tree-sitter grammar (parse.ts).
Structs§
- Parse
Result - what parsing a source text yields: the declarations and the syntax errors
Constants§
- LANGUAGE
- the tree-sitter grammar compiled into the crate (
build.rs, fromgrammar/)
Functions§
- json_
unquote - JSON string literal -> its value (the lexer guarantees the form)
- parse_
expr_ text - parse one expression’s text: the text is wrapped in a constant declaration; None when it does not parse
- parse_
int - An integer literal’s text (§2.6: decimal,
0x,0o,0b,_separators) as an arbitrary-precision integer. - parse_
source - Parse a module’s source text: the tree-sitter CST lowered to the AST of
crate::ast, with source ranges (specification chapter 11).