Expand description
Starlark AST.
Re-exports§
pub use crate::error::Error;
pub use crate::error::ErrorKind;
pub use crate::error::StarlarkResultExt;
Modules§
- call_
stack - Starlark call stack.
- codemap
- A data structure for tracking source positions in language implementations
The
CodeMap
tracks all source files and maps positions within them to linear indexes as if all source files were concatenated. This allows a source position to be represented by a small 32-bitPos
indexing into theCodeMap
, under the assumption that the total amount of parsed source code will not exceed 4GiB. TheCodeMap
can look up the source file, line, and column of aPos
orSpan
, as well as provide source code snippets for error reporting. - convert_
indices - diagnostic
- dialect
- dot_
format_ parser - error
- eval_
exception - fast_
string - Our string operations (indexing) are O(n) because of our current representation. There are plans afoot to change that, but in the meantime let’s use fast algorithms to make up some of the difference.
- frame
- golden_
test_ template - lexer
- slice_
vec_ ext - span_
display - syntax
- The AST of Starlark as
AstModule
, along with aparse
function.
Macros§
- function_
error - internal_
error - Internal error of starlark.
- other_
error - value_
error