e720545e5b
Refactor the environment variable and argument parsing for the tvix repl to use Clap instead of doing things ad-hoc, and thread through options obtained from environment variables via explicit arguments rather than obtaining them from the environment as they're needed. This makes adding more flags more sustainable, and also makes the binary fully self-documenting, including supported env vars, via `--help`. Change-Id: Ib1f6a0cd20056e8c9196760ff755fa5729667760 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6653 Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
26 lines
492 B
Rust
26 lines
492 B
Rust
mod builtins;
|
|
mod chunk;
|
|
mod compiler;
|
|
mod errors;
|
|
mod eval;
|
|
pub mod observer;
|
|
mod opcode;
|
|
mod upvalues;
|
|
mod value;
|
|
mod vm;
|
|
mod warnings;
|
|
|
|
#[cfg(test)]
|
|
mod properties;
|
|
#[cfg(test)]
|
|
mod test_utils;
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
// Re-export the public interface used by other crates.
|
|
pub use crate::builtins::global_builtins;
|
|
pub use crate::compiler::compile;
|
|
pub use crate::errors::EvalResult;
|
|
pub use crate::eval::{interpret, Options};
|
|
pub use crate::value::Value;
|
|
pub use crate::vm::run_lambda;
|