From 22eb9a274386c7fbc5cdee2b86f621c44fd823e2 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 7 Jan 2024 22:48:35 -0800 Subject: forgot what i did lol --- examples/repl.stem | 5 ++++- examples/stdlib.stem | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 examples/stdlib.stem (limited to 'examples') diff --git a/examples/repl.stem b/examples/repl.stem index 7f2010f..1468835 100644 --- a/examples/repl.stem +++ b/examples/repl.stem @@ -1 +1,4 @@ -loop [ "> " . read strquote eval loop ] func loop +"./stdlib.stem" fread strquote eval +"./math.stem" include + +repl [ "> " . read strquote eval repl ] func repl diff --git a/examples/stdlib.stem b/examples/stdlib.stem new file mode 100644 index 0000000..eca48c8 --- /dev/null +++ b/examples/stdlib.stem @@ -0,0 +1,2 @@ +evalstr [ strquote eval ] func +include [ fread evalstr ] func -- cgit