fix case for 0 arg function calls
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
e7dd0caa4a
commit
71b70fe4b8
4 changed files with 29 additions and 22 deletions
|
|
@ -18,7 +18,6 @@
|
|||
use dirs::home_dir;
|
||||
use relish::ast::{ast_to_string, eval, func_call, lex, new_ast, Ctr, FTable, VTable};
|
||||
use relish::aux::configure;
|
||||
use relish::stdlib::get_stdlib;
|
||||
use rustyline::error::ReadlineError;
|
||||
use rustyline::Editor;
|
||||
use std::cell::RefCell;
|
||||
|
|
@ -48,7 +47,7 @@ fn main() {
|
|||
|
||||
let vt = Rc::new(RefCell::new(VTable::new()));
|
||||
let conf_file;
|
||||
let mut ft;
|
||||
let ft;
|
||||
match env::var("RELISH_CFG_FILE") {
|
||||
Ok(s) => {
|
||||
conf_file = s
|
||||
|
|
@ -67,11 +66,6 @@ fn main() {
|
|||
},
|
||||
}
|
||||
|
||||
match get_stdlib(vt.clone()) {
|
||||
Ok(f) => ft = f,
|
||||
Err(s) => println!("{}", s),
|
||||
}
|
||||
|
||||
loop {
|
||||
let readline: Result<String, ReadlineError>;
|
||||
// Rust is pain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue