Crate starlark_repl

source ·
Expand description

a Read-Eval-Print Loop (REPL) for Starlark.

Starlark, formerly codenamed Skylark, is a non-Turing complete language based on Python that was made for the Bazel build system to define compilation plugin.

See the starlark crate documentation for more information about Starlark.

Usage

One can call the repl method to run the repl inside a program or simply run the [starlark-repl] binary:

$ starlark-repl --help
[Starlark in Rust interpretor]

Usage: starlark-repl [options] [file1..filen]


Options:
   -b, --build_file    Parse the build file format instead of full Starlark.
   -h, --help          Show the usage of this program.
   -r, --repl          Run a REPL after files have been parsed.

Functions

A REPL (Read-Eval-Print Loop) for Starlark.