mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 17:25:33 +01:00
Added environment with basic math functions
Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
@ -36,6 +36,7 @@ fn PRINT(output: MalType) -> String {
|
||||
|
||||
pub fn rep(input: &str, env: &Env) -> Result<String, String> {
|
||||
let ast = READ(input)?;
|
||||
// println!("{:#?}", ast);
|
||||
let out = EVAL(ast, env)?;
|
||||
Ok(PRINT(out))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user