The Lambda Lab
/
projects
/
forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6d6396
)
Fixed bug in CODE.
author
Tim Vaughan
<tgvaughan@gmail.com>
Sat, 13 Aug 2016 10:29:49 +0000
(22:29 +1200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Sat, 13 Aug 2016 10:29:49 +0000
(22:29 +1200)
src/forth.jl
patch
|
blob
|
history
diff --git
a/src/forth.jl
b/src/forth.jl
index
51714f4
..
259d0a2
100644
(file)
--- a/
src/forth.jl
+++ b/
src/forth.jl
@@
-1038,8
+1038,10
@@
CODE_CFA = defPrimWord("CODE", () -> begin
exprString = "() -> begin\n"
while true
if mem[TOIN] >= mem[NUMTIB]
- println()
exprString = string(exprString, "\n")
+ if currentSource() == STDIN
+ println()
+ end
pushPS(TIB)
pushPS(160)