diff options
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 |