#starlark #skylark #bazel #language #interpreter

bin+lib starlark-repl

A REPL for the implementation in Rust of the Starlark language

3 unstable releases

0.3.1 Oct 7, 2020
0.3.0 Jan 29, 2020
0.2.0 Dec 28, 2018

#1756 in Development tools

38 downloads per month


201 lines

Starlark in Rust - REPL

A REPL for the Starlark language in Rust

Disclaimer: This is not an officially supported Google product. This project is supported on a best-effort basis and welcome contributions.

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.

This REPL uses starlark crates.


A command line interpreter is provided by this project, it can interpret files passed at the command line and also start a REPL (Read-Eval-Print Loop). The usage of this program is:

Starlark in Rust interpreter

    starlark-rust [FLAGS] [OPTIONS] [file]...

    -a, --ast           Parse and print AST instead of evaluating.
    -b, --build-file    Parse the build file format instead of full Starlark. See https://docs.rs/starlark/0.3.0-
    -h, --help          Prints help information
    -r, --repl          Run a REPL after files have been parsed.
    -V, --version       Prints version information

    -c <command>        Starlark command to run after files have been parsed.

    <file>...    Files to interpret


~204K SLoC