diff options
Diffstat (limited to 'tvix/eval/src')
-rw-r--r-- | tvix/eval/src/main.rs | 1 | ||||
-rw-r--r-- | tvix/eval/src/value.rs | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tvix/eval/src/main.rs b/tvix/eval/src/main.rs index 8192965a8b61..7cc5a380e525 100644 --- a/tvix/eval/src/main.rs +++ b/tvix/eval/src/main.rs @@ -6,6 +6,7 @@ use std::{ mod errors; mod eval; +mod value; fn main() { let mut args = env::args(); diff --git a/tvix/eval/src/value.rs b/tvix/eval/src/value.rs new file mode 100644 index 000000000000..037284b144b2 --- /dev/null +++ b/tvix/eval/src/value.rs @@ -0,0 +1,10 @@ +//! This module implements the backing representation of runtime +//! values in the Nix language. + +#[derive(Clone, Copy, Debug, PartialEq)] +pub enum Value { + Null, + Bool(bool), + Integer(i64), + Float(f64), +} |