about summary refs log tree commit diff
path: root/users/tazjin/rlox/src/errors.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-12-30T21·59+0300
committertazjin <mail@tazj.in>2020-12-31T11·19+0000
commit78355d3c0b91e5b952be6244f23c14a2d596d05f (patch)
tree2969bc154f787c3fdd30cff4df1c483af720ca60 /users/tazjin/rlox/src/errors.rs
parent4a86a06466f88e2e4c7f4627809eb80d2acbc68c (diff)
feat(tazjin/rlox): Add global variable support in interpreter r/2031
Change-Id: I4134cf78dc3934a517ad0c848ae1d3729abaf882
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2297
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'users/tazjin/rlox/src/errors.rs')
-rw-r--r--users/tazjin/rlox/src/errors.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/errors.rs b/users/tazjin/rlox/src/errors.rs
index 03a24312411c..2c29aa4c2f0a 100644
--- a/users/tazjin/rlox/src/errors.rs
+++ b/users/tazjin/rlox/src/errors.rs
@@ -7,6 +7,8 @@ pub enum ErrorKind {
     ExpectedSemicolon,
     ExpectedVariableName,
     TypeError(String),
+    UndefinedVariable(String),
+    InternalError(String),
 }
 
 #[derive(Debug)]