feat(tazjin/rlox): Add global variable support in interpreter

Change-Id: I4134cf78dc3934a517ad0c848ae1d3729abaf882
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2297
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Vincent Ambo 2020-12-31 00:59:15 +03:00 committed by tazjin
parent 4a86a06466
commit 78355d3c0b
2 changed files with 156 additions and 95 deletions

View file

@ -7,6 +7,8 @@ pub enum ErrorKind {
ExpectedSemicolon,
ExpectedVariableName,
TypeError(String),
UndefinedVariable(String),
InternalError(String),
}
#[derive(Debug)]