load base into a compiler

This commit is contained in:
Scott Richmond 2025-06-20 12:53:16 -04:00
parent ef134c0335
commit c73c7e0d6a
2 changed files with 3 additions and 2 deletions

View File

@ -251,7 +251,7 @@ pub fn print(x: &Value) -> Value {
.iter() .iter()
.map(|val| format!("{val}")) .map(|val| format!("{val}"))
.collect::<Vec<_>>() .collect::<Vec<_>>()
.join(""); .join(" ");
println!("{out}"); println!("{out}");
Value::Keyword("ok") Value::Keyword("ok")
} }

View File

@ -80,7 +80,8 @@ pub fn run(src: &'static str) {
pub fn main() { pub fn main() {
env::set_var("RUST_BACKTRACE", "1"); env::set_var("RUST_BACKTRACE", "1");
let src = " let src = "
base :assoc (#{:a 1}, :b, 2) fn print! (...args) -> base :print! (args)
print! (:foo, :bar, :baz)
"; ";
run(src); run(src);
} }