update
This commit is contained in:
parent
d71964787b
commit
be24d49c77
|
@ -1,7 +1,7 @@
|
||||||
use crate::lib::parse_list_of_floats;
|
use crate::parse_list_of_floats;
|
||||||
use crate::lib::Expr;
|
use crate::Expr;
|
||||||
use crate::lib::HashMap;
|
use crate::HashMap;
|
||||||
use crate::lib::RispError;
|
use crate::RispError;
|
||||||
|
|
||||||
macro_rules! ensure_tonicity {
|
macro_rules! ensure_tonicity {
|
||||||
($check_fn:expr) => {{
|
($check_fn:expr) => {{
|
||||||
|
|
|
@ -3,8 +3,6 @@ use core::fmt;
|
||||||
use core::num::ParseFloatError;
|
use core::num::ParseFloatError;
|
||||||
// use std::hash::DefaultHasher;
|
// use std::hash::DefaultHasher;
|
||||||
|
|
||||||
extern crate alloc;
|
|
||||||
|
|
||||||
pub use hashbrown::hash_map::HashMap;
|
pub use hashbrown::hash_map::HashMap;
|
||||||
|
|
||||||
pub use std::io::Write;
|
pub use std::io::Write;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use crate::lib::evaluate::eval;
|
use crate::evaluate::eval;
|
||||||
use crate::lib::read_seq;
|
use crate::read_seq;
|
||||||
use crate::lib::Environ;
|
use crate::Environ;
|
||||||
use crate::lib::Expr;
|
use crate::Expr;
|
||||||
use crate::lib::ParseFloatError;
|
use crate::ParseFloatError;
|
||||||
use crate::lib::RispError;
|
use crate::RispError;
|
||||||
|
|
||||||
pub fn tokenize(expr: String) -> Vec<String> {
|
pub fn tokenize(expr: String) -> Vec<String> {
|
||||||
expr.replace("(", " ( ")
|
expr.replace("(", " ( ")
|
||||||
|
@ -52,8 +52,6 @@ fn parse_atom(token: &str) -> Expr {
|
||||||
|
|
||||||
Str(stri)
|
Str(stri)
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
||||||
Symbol(token.to_string().clone())
|
Symbol(token.to_string().clone())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue