projects
/
rrq
/
jonasforth.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make S" work inside compiled words
[rrq/jonasforth.git]
/
example.f
diff --git
a/example.f
b/example.f
index 2443f3264f6d852188f7249cfc1555b4f0539f84..38cd6e4e69921d16fb6e9171b3129796161e085f 100644
(file)
--- a/
example.f
+++ b/
example.f
@@
-10,16
+10,12
@@
DUP 4 PICK = UNTIL
DROP SWAP DROP SWAP DROP ; ( a+b )
DUP 4 PICK = UNTIL
DROP SWAP DROP SWAP DROP ; ( a+b )
-S" HELLO-ADDR" CREATE
-S" Hello!" DUP ROT
-STORE-STRING
-: HELLO
- ' HELLO-ADDR LIT, TELL NEWLINE ;
+: HELLO S" Hello!" TELL NEWLINE ;
-HELLO
-
-S" 10 FIB = " TELL
-10 FIB .U
-S" (Expected: 59)" TELL NEWLINE
+: TEST-FIB
+ S" 10 FIB = " TELL
+ 10 FIB .U
+ SPACE S" (Expected: 59)" TELL NEWLINE ;
-TERMINATE
+HELLO
+TEST-FIB