diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/aoc1.stem | 9 | ||||
-rw-r--r-- | examples/repl.stem | 2 | ||||
-rw-r--r-- | examples/simple.stem | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/examples/aoc1.stem b/examples/aoc1.stem index e69de29..16f739d 100644 --- a/examples/aoc1.stem +++ b/examples/aoc1.stem @@ -0,0 +1,9 @@ + +dsc +swap +isnum +char +0 +str + +read_str [ ] diff --git a/examples/repl.stem b/examples/repl.stem index 1468835..6ed6795 100644 --- a/examples/repl.stem +++ b/examples/repl.stem @@ -1,4 +1,6 @@ "./stdlib.stem" fread strquote eval "./math.stem" include +"You can make your own REPL by changing the code!" dsc + repl [ "> " . read strquote eval repl ] func repl diff --git a/examples/simple.stem b/examples/simple.stem new file mode 100644 index 0000000..5853c3f --- /dev/null +++ b/examples/simple.stem @@ -0,0 +1 @@ +3 4 + . |