aboutsummaryrefslogtreecommitdiff
path: root/src/boot/parser.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-04-21 05:56:14 +0000
committerdos-reis <gdr@axiomatics.org>2011-04-21 05:56:14 +0000
commit97463cc77bbec1c33f46ceb44584a180264682c3 (patch)
tree61d9cf3e25771fbdd5de776ea989aff622684aa3 /src/boot/parser.boot
parent1ca37b944b566ef3f0479d4c2fe6895e9fbd3785 (diff)
downloadopen-axiom-97463cc77bbec1c33f46ceb44584a180264682c3.tar.gz
* boot/tokens.boot: Don't rename nreverse.
* boot/utility.boot (reverse!): Define. * boot/parser.boot: Use reverse! instead of NREVERSE. * boot/ast.boot: Generate reverse! forms instead of NREVERSE.
Diffstat (limited to 'src/boot/parser.boot')
-rw-r--r--src/boot/parser.boot14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/boot/parser.boot b/src/boot/parser.boot
index 7bf4bef4..e90d057e 100644
--- a/src/boot/parser.boot
+++ b/src/boot/parser.boot
@@ -167,7 +167,7 @@ bpListof(f,str1,g)==
a:=$stack
$stack:=nil
while bpEqKey str1 and (apply(f,nil) or bpTrap()) repeat 0
- $stack:=[NREVERSE $stack,:a]
+ $stack:=[reverse! $stack,:a]
bpPush FUNCALL(g, [bpPop3(),bpPop2(),:bpPop1()])
true
false
@@ -180,7 +180,7 @@ bpListofFun(f,h,g)==
a:=$stack
$stack:=nil
while apply(h,nil) and (apply(f,nil) or bpTrap()) repeat 0
- $stack:=[NREVERSE $stack,:a]
+ $stack:=[reverse! $stack,:a]
bpPush FUNCALL(g, [bpPop3(),bpPop2(),:bpPop1()])
true
false
@@ -191,7 +191,7 @@ bpList(f,str1)==
a:=$stack
$stack:=nil
while bpEqKey str1 and (apply(f,nil) or bpTrap()) repeat 0
- $stack:=[NREVERSE $stack,:a]
+ $stack:=[reverse! $stack,:a]
bpPush [bpPop3(),bpPop2(),:bpPop1()]
bpPush [bpPop1()]
bpPush nil
@@ -201,7 +201,7 @@ bpOneOrMore f==
a:=$stack
$stack:=nil
while apply(f,nil) repeat 0
- $stack:=[NREVERSE $stack,:a]
+ $stack:=[reverse! $stack,:a]
bpPush [bpPop2(),:bpPop1()]
false
@@ -310,7 +310,7 @@ bpListAndRecover(f)==
c := $inputStream
b := [bpPop1(),:b]
$stack := a
- bpPush NREVERSE b
+ bpPush reverse! b
bpMoveTo n==
$inputStream = nil => true
@@ -717,9 +717,9 @@ bpTry() ==
cs := [bpPop1(),:cs]
bpHandler "FINALLY" =>
bpFinally() and
- bpPush bfTry(bpPop2(),nreverse [bpPop1(),:cs])
+ bpPush bfTry(bpPop2(),reverse! [bpPop1(),:cs])
cs = nil => bpTrap() -- missing handlers
- bpPush bfTry(bpPop1(),nreverse cs)
+ bpPush bfTry(bpPop1(),reverse! cs)
nil
bpCatchItem() ==