The Lambda Lab
/
projects
/
scheme.forth.jl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c86116e
)
Better handling of booleans.
author
Tim Vaughan
<tgvaughan@gmail.com>
Mon, 4 Jul 2016 22:07:15 +0000
(
00:07
+0200)
committer
Tim Vaughan
<tgvaughan@gmail.com>
Mon, 4 Jul 2016 22:07:15 +0000
(
00:07
+0200)
scheme.4th
patch
|
blob
|
history
diff --git
a/scheme.4th
b/scheme.4th
index
bf57ac7
..
0bbfbf5
100644
(file)
--- a/
scheme.4th
+++ b/
scheme.4th
@@
-105,7
+105,7
@@
parse-idx-stack parse-idx-sp !
inc-parse-idx
repeat
- delim?
charavailable? false = or
if
+ delim? if
pop-parse-idx
true
else
@@
-124,8
+124,14
@@
parse-idx-stack parse-idx-sp !
nextchar [char] f <>
and if pop-parse-idx false exit then
- pop-parse-idx
- true
+ inc-parse-idx
+ delim? if
+ pop-parse-idx
+ true
+ else
+ pop-parse-idx
+ false
+ then
;
: str-equiv? ( str -- bool )