fix case for 0 arg function calls

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-01-22 19:36:37 -08:00
parent e7dd0caa4a
commit 71b70fe4b8
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
4 changed files with 29 additions and 22 deletions

View file

@ -23,10 +23,12 @@ use crate::stl::get_stdlib;
use crate::vars::{define, VTable};
use std::cell::RefCell;
use std::fs;
use std::io::{self, Write};
use std::rc::Rc;
fn prompt_default_callback(_: Ast, _: Rc<RefCell<VTable>>, _: Rc<RefCell<FTable>>) -> Ctr {
print!("λ ");
io::stdout().flush().unwrap();
return Ctr::None;
}