[−][src]Module starlark::eval
Evaluation environment, provide converters from Ast* element to value.
Starlark and BUILD dialect
All evaluation function can evaluate the full Starlark language (i.e. Bazel's
.bzl files) or the BUILD file dialect (i.e. used to interpret Bazel's BUILD file).
The BUILD dialect does not allow def
statements.
Modules
call_stack | Starlark call stack. |
interactive | Defines very basic versions of the evaluation functions that are suitable for interactive use: they output diagnostic to stderr and the result value to stdout. |
module | Starlark module ( |
noload | Define simpler version of the evaluation function,
which does not support |
simple | Define simpler version of the evaluation function |
stmt | Interpreter-ready statement |
Traits
FileLoader | A trait for loading file using the load statement path. |
Functions
eval | Evaluate a string content, mutate the environment accordingly and return the evaluated value. |
eval_file | Evaluate a file, mutate the environment accordingly and return the evaluated value. |
eval_lexer | Evaluate a content provided by a custom Lexer, mutate the environment accordingly and return the evaluated value. |