aboutsummaryrefslogtreecommitdiff
path: root/forth/core.fs
diff options
context:
space:
mode:
authorChouser <chouser@n01se.net>2015-02-16 20:12:44 -0500
committerChouser <chouser@n01se.net>2015-02-21 13:22:44 -0500
commitbf6a574e00a221dfe564ba11148deaa73ba8a229 (patch)
tree39e511f1913353335df9655ce75a4867d129e18d /forth/core.fs
parentcd21ff0d3ccfbec62fe6af95e6656fe9c38f8254 (diff)
downloadmal-bf6a574e00a221dfe564ba11148deaa73ba8a229.tar.gz
mal-bf6a574e00a221dfe564ba11148deaa73ba8a229.zip
forth: Add step 6, clean up comment parsing
Diffstat (limited to 'forth/core.fs')
-rw-r--r--forth/core.fs3
1 files changed, 3 insertions, 0 deletions
diff --git a/forth/core.fs b/forth/core.fs
index 4982a0e..71f43ca 100644
--- a/forth/core.fs
+++ b/forth/core.fs
@@ -74,3 +74,6 @@ defcore str ( argv argc )
loop
MalString. nip
endif ;;
+
+defcore read-string drop @ unpack-str read-str ;;
+defcore slurp drop @ unpack-str slurp-file MalString. ;;