aboutsummaryrefslogtreecommitdiff
path: root/src/interp/iterator.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/iterator.boot')
-rw-r--r--src/interp/iterator.boot10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interp/iterator.boot b/src/interp/iterator.boot
index 19ead302..7497b336 100644
--- a/src/interp/iterator.boot
+++ b/src/interp/iterator.boot
@@ -57,19 +57,19 @@ compReduce1(form is ["REDUCE",op,.,collectForm],m,e,$formalArgList) ==
acc:= GENSYM()
afterFirst:= GENSYM()
bodyVal:= GENSYM()
- [part1,m,e]:= comp(["LET",bodyVal,body],m,e) or return nil
- [part2,.,e]:= comp(["LET",acc,bodyVal],m,e) or return nil
- [part3,.,e]:= comp(["LET",acc,parseTran [op,acc,bodyVal]],m,e) or return nil
+ [part1,m,e]:= comp(["%LET",bodyVal,body],m,e) or return nil
+ [part2,.,e]:= comp(["%LET",acc,bodyVal],m,e) or return nil
+ [part3,.,e]:= comp(["%LET",acc,parseTran [op,acc,bodyVal]],m,e) or return nil
identityCode:=
id:= getIdentity(op,e) => u.expr where u() == comp(id,m,e) or return nil
["IdentityError",MKQ op]
finalCode:=
["PROGN",
- ["LET",afterFirst,nil],
+ ["%LET",afterFirst,nil],
["REPEAT",:itl,
["PROGN",part1,
["IF", afterFirst,part3,
- ["PROGN",part2,["LET",afterFirst,MKQ true]]]]],
+ ["PROGN",part2,["%LET",afterFirst,MKQ true]]]]],
["IF",afterFirst,acc,identityCode]]
if $until then
[untilCode,.,e]:= comp($until,$Boolean,e)