Add assignment 4 description

This commit is contained in:
Minseong Jang
2022-10-03 16:10:27 +09:00
parent 6d2309be8f
commit 6806ae0da5

View File

@@ -24,12 +24,12 @@ impl Context {
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> {
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.
///