From dfe729c98b63d0f6c0041799a0fb46b2f476502e Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 8 Jan 2024 18:31:56 -0800 Subject: allow for future FLI system --- examples/aoc1.stem | 9 +++++++++ examples/repl.stem | 2 ++ examples/simple.stem | 1 + 3 files changed, 12 insertions(+) create mode 100644 examples/simple.stem (limited to 'examples') 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 + . -- cgit