new Runtime object
This commit is contained in:
@@ -326,7 +326,7 @@ where
|
||||
ParseTree::StringCast(x) => Ok(Value::String(format!("{}", self.exec(x, locals)?))),
|
||||
ParseTree::Print(x) => match self.exec(x, locals)? {
|
||||
x => {
|
||||
writeln!(self.stdout, "{x}").map_err(|e| RuntimeError::IO(e));
|
||||
writeln!(self.stdout, "{x}").map_err(|e| RuntimeError::IO(e))?;
|
||||
Ok(Value::Nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user