haku: more cleanups: remove old unused VM
also remove some leftover TODOs
This commit is contained in:
parent
c80cd1c7fe
commit
8b464d50f4
17 changed files with 114 additions and 1167 deletions
|
@ -1,3 +1,8 @@
|
|||
/*
|
||||
|
||||
// NOTE: The test suite is currently not in service.
|
||||
// We apologise for the inconvenience.
|
||||
|
||||
use std::error::Error;
|
||||
|
||||
use haku::{
|
||||
|
@ -7,10 +12,7 @@ use haku::{
|
|||
lexer::{lex, Lexer},
|
||||
parser::{self, Parser, ParserLimits},
|
||||
source::SourceCode,
|
||||
system::System,
|
||||
token::Lexis,
|
||||
value::{Closure, Ref, RefId, Value},
|
||||
vm::{Vm, VmLimits},
|
||||
};
|
||||
|
||||
fn eval(code: &str) -> Result<Value, Box<dyn Error>> {
|
||||
|
@ -158,7 +160,7 @@ fn def_fib_recursive() {
|
|||
n
|
||||
else
|
||||
fib (n - 1) + fib (n - 2)
|
||||
|
||||
|
||||
fib 10
|
||||
"#;
|
||||
expect_number(code, 55.0, 0.0001);
|
||||
|
@ -309,3 +311,5 @@ fn system_index() {
|
|||
assert!(eval("index [1] (-1)").is_err());
|
||||
assert!(eval("index [1] 1").is_err());
|
||||
}
|
||||
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue