aboutsummaryrefslogtreecommitdiff
path: root/src/boot/ast.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-04-18 17:41:01 +0000
committerdos-reis <gdr@axiomatics.org>2011-04-18 17:41:01 +0000
commita4a45e923a2435574c09619da442fd15e71b2652 (patch)
tree46db3f474ca5b7979597bcff5ce38795968cb79d /src/boot/ast.boot
parent18cdfe64dbe07358b58d06a70b8d6bc2c276769d (diff)
downloadopen-axiom-a4a45e923a2435574c09619da442fd15e71b2652.tar.gz
cleanup
Diffstat (limited to 'src/boot/ast.boot')
-rw-r--r--src/boot/ast.boot8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/boot/ast.boot b/src/boot/ast.boot
index 3c921466..0fc4a122 100644
--- a/src/boot/ast.boot
+++ b/src/boot/ast.boot
@@ -641,8 +641,7 @@ bfISReverse(x,a) ==
bfIS1(lhs,rhs) ==
rhs = nil => ['NULL,lhs]
bfString? rhs => bfAND [['STRINGP,lhs],["STRING=",lhs,rhs]]
- bfChar? rhs => bfAND [['CHARACTERP,lhs],["CHAR=",lhs,rhs]]
- integer? rhs => ['EQL,lhs,rhs]
+ bfChar? rhs or integer? rhs => ['EQL,lhs,rhs]
atom rhs => ['PROGN,bfLetForm(rhs,lhs),'T]
rhs is ['QUOTE,a] =>
symbol? a => ['EQ,lhs,rhs]
@@ -745,10 +744,11 @@ defQuoteId x==
x is ["QUOTE",:.] and symbol? second x
bfChar? x ==
- char? x or cons? x and first x in '(char CODE_-CHAR SCHAR)
+ char? x or cons? x and x.op in '(char CODE_-CHAR SCHAR)
bfSmintable x==
- integer? x or cons? x and first x in '(SIZE LENGTH CHAR_-CODE)
+ integer? x or cons? x and
+ x.op in '(SIZE LENGTH CHAR_-CODE MAXINDEX _+ _-)
bfString? x ==
string? x