Add support for variables in interpreter
This commit is contained in:
parent
520357d930
commit
1ed2ac97cc
4 changed files with 136 additions and 63 deletions
|
@ -3,7 +3,7 @@ use std::{
|
|||
ops::{Add, Div, Mul, Neg, Not, Rem, Sub},
|
||||
};
|
||||
|
||||
#[derive(PartialEq, PartialOrd, Debug)]
|
||||
#[derive(PartialEq, PartialOrd, Debug, Copy, Clone)]
|
||||
pub enum Value {
|
||||
Int(i64),
|
||||
Bool(bool),
|
||||
|
|
Reference in a new issue