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:
parent
4a86a06466
commit
78355d3c0b
2 changed files with 156 additions and 95 deletions
|
|
@ -7,6 +7,8 @@ pub enum ErrorKind {
|
|||
ExpectedSemicolon,
|
||||
ExpectedVariableName,
|
||||
TypeError(String),
|
||||
UndefinedVariable(String),
|
||||
InternalError(String),
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue