Re-enable assignment semantics
This commit is contained in:
parent
6f16d2594b
commit
41316f5696
|
@ -203,7 +203,6 @@ impl ExecEnv {
|
||||||
|
|
||||||
self.decl_var(&iden.iden, init);
|
self.decl_var(&iden.iden, init);
|
||||||
}
|
}
|
||||||
StmtKind::Assign { .. } => todo!(),
|
|
||||||
StmtKind::Functio {
|
StmtKind::Functio {
|
||||||
iden: _,
|
iden: _,
|
||||||
args: _,
|
args: _,
|
||||||
|
@ -270,10 +269,9 @@ impl ExecEnv {
|
||||||
HaltStatus::Hopback(_) => continue,
|
HaltStatus::Hopback(_) => continue,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// This is missing as well. ~~Alex
|
StmtKind::Assign { iden, value } => {
|
||||||
// StmtKind::VarAssignment { iden, value } => {
|
self.get_var_mut(&iden)?.value = self.eval_expr(value)?;
|
||||||
// self.get_var_mut(&iden.0)?.value = self.eval_expr(value)?;
|
}
|
||||||
// }
|
|
||||||
StmtKind::Break => {
|
StmtKind::Break => {
|
||||||
return Ok(HaltStatus::Break(stmt.span.clone()));
|
return Ok(HaltStatus::Break(stmt.span.clone()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue