add println

This commit is contained in:
mehbark 2025-07-02 21:08:55 -04:00
parent ddab1e71f1
commit 96334b0f4a
2 changed files with 3 additions and 1 deletions

1
result
View file

@ -1 +0,0 @@
/nix/store/ysnlms9yadny09279xks5h0k1dzx1iqa-puyo-lang-0.1.0

View file

@ -198,6 +198,9 @@ fn eval<'a>(insts: &'a [Inst<'a>], stack: &mut Stack<'a>, env: &Rc<RefCell<Env<'
"print" => {
print!("{}", stack.pop_default());
}
"println" => {
println!("{}", stack.pop_default());
}
"put" => {
#[allow(clippy::cast_sign_loss, clippy::cast_possible_truncation)]
let byte = stack.pop_num() as u8;