diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-08 18:31:56 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-08 18:31:56 -0800 |
commit | dfe729c98b63d0f6c0041799a0fb46b2f476502e (patch) | |
tree | dfd5ea3ff12cab14cc2ae6ff719e6204f02fdbcc /examples | |
parent | 22eb9a274386c7fbc5cdee2b86f621c44fd823e2 (diff) |
allow for future FLI system
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 + . |