feat(tvix/eval): add initial value representation

Change-Id: I427a04e89994662df2750dffe21991bad48aab15
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6066
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-07 23:40:12 +03:00 committed by tazjin
parent bef8d67b6c
commit 8b7d2fd59e
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,7 @@ use std::{
mod errors;
mod eval;
mod value;
fn main() {
let mut args = env::args();

10
tvix/eval/src/value.rs Normal file
View file

@ -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),
}