diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-07 22:48:35 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-07 22:48:35 -0800 |
commit | 22eb9a274386c7fbc5cdee2b86f621c44fd823e2 (patch) | |
tree | a215e21bf18d75914b9edd568a0da6a8b49ac2d0 /examples | |
parent | 5907934e467bf28291901ed3595125ef1ed724d9 (diff) |
forgot what i did lol
Diffstat (limited to 'examples')
-rw-r--r-- | examples/repl.stem | 5 | ||||
-rw-r--r-- | examples/stdlib.stem | 2 |
2 files changed, 6 insertions, 1 deletions
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 |