mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-14 22:18:46 +00:00
Add assignment 4 description
This commit is contained in:
@@ -24,12 +24,12 @@ impl Context {
|
|||||||
self.anonymous_counter
|
self.anonymous_counter
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calculates the given expression.
|
/// Calculates the given expression. (We assume the absence of overflow.)
|
||||||
pub fn calc_expression(&self, expression: &Expression) -> Result<f64> {
|
pub fn calc_expression(&self, expression: &Expression) -> Result<f64> {
|
||||||
todo!("fill here")
|
todo!("fill here")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calculates the given command.
|
/// Calculates the given command. (We assume the absence of overflow.)
|
||||||
///
|
///
|
||||||
/// If there is no variable lhs in the command (i.e. `command.variable = None`), its value should be stored at `$0`, `$1`, `$2`, ... respectively.
|
/// If there is no variable lhs in the command (i.e. `command.variable = None`), its value should be stored at `$0`, `$1`, `$2`, ... respectively.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user