add println
This commit is contained in:
parent
ddab1e71f1
commit
96334b0f4a
2 changed files with 3 additions and 1 deletions
1
result
1
result
|
|
@ -1 +0,0 @@
|
||||||
/nix/store/ysnlms9yadny09279xks5h0k1dzx1iqa-puyo-lang-0.1.0
|
|
||||||
|
|
@ -198,6 +198,9 @@ fn eval<'a>(insts: &'a [Inst<'a>], stack: &mut Stack<'a>, env: &Rc<RefCell<Env<'
|
||||||
"print" => {
|
"print" => {
|
||||||
print!("{}", stack.pop_default());
|
print!("{}", stack.pop_default());
|
||||||
}
|
}
|
||||||
|
"println" => {
|
||||||
|
println!("{}", stack.pop_default());
|
||||||
|
}
|
||||||
"put" => {
|
"put" => {
|
||||||
#[allow(clippy::cast_sign_loss, clippy::cast_possible_truncation)]
|
#[allow(clippy::cast_sign_loss, clippy::cast_possible_truncation)]
|
||||||
let byte = stack.pop_num() as u8;
|
let byte = stack.pop_num() as u8;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue