about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/bytecode/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/value.rs')
-rw-r--r--users/tazjin/rlox/src/bytecode/value.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/users/tazjin/rlox/src/bytecode/value.rs b/users/tazjin/rlox/src/bytecode/value.rs
index 343d142ac830..88ff8a695138 100644
--- a/users/tazjin/rlox/src/bytecode/value.rs
+++ b/users/tazjin/rlox/src/bytecode/value.rs
@@ -1 +1,6 @@
-pub type Value = f64;
+#[derive(Clone, Debug, PartialEq)]
+pub enum Value {
+    Nil,
+    Bool(bool),
+    Number(f64),
+}