aboutsummaryrefslogtreecommitdiff
path: root/src/interp/wi2.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-09-25 20:48:45 +0000
committerdos-reis <gdr@axiomatics.org>2009-09-25 20:48:45 +0000
commit489cfd14dccfcaf7b0ebd41e9d0f8e081a9d1d9f (patch)
tree84a87ab3bdba58fe9fd2975efc829d1ed10b8781 /src/interp/wi2.boot
parent7704713134cb251be6129f38833930228e09eee2 (diff)
downloadopen-axiom-489cfd14dccfcaf7b0ebd41e9d0f8e081a9d1d9f.tar.gz
* boot/ast.boot (bfMember): Improve a bit.
* boot/tokens.boot: Don't rename 'is' and 'inst'. * boot/parser.boot: Use 'in' instead of 'MEMQ' where approrpriate. * interp/: Likewise.
Diffstat (limited to 'src/interp/wi2.boot')
-rw-r--r--src/interp/wi2.boot10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interp/wi2.boot b/src/interp/wi2.boot
index fa3f48bc..6e18448c 100644
--- a/src/interp/wi2.boot
+++ b/src/interp/wi2.boot
@@ -125,7 +125,7 @@ compDefineFunctor1(df, m,$e,$prefix,$formalArgList) ==
--The following loop sees if we can economise on ADDed operations
--by using those of Rep, if that is the same. Example: DIRPROD
if not $insideCategoryPackageIfTrue then
- if body is ['add,ab:=[fn,:.],['CAPSULE,:cb]] and MEMQ(fn,'(List Vector))
+ if body is ['add,ab:=[fn,:.],['CAPSULE,:cb]] and fn in '(List Vector)
and FindRep(cb) = ab
where FindRep cb ==
u:=
@@ -459,7 +459,7 @@ unLet x ==
corrupted? u ==
u is [op,:r] =>
- MEMQ(op,'(WI MI PART)) => true
+ op in '(WI MI PART) => true
or/[corrupted? x for x in r]
false
@@ -629,7 +629,7 @@ compApplyModemap(form,modemap,$e) ==
--+ store the signature instead.
--$NRTflag=true and f is [op1,d,.] and NE(d,'$) and member(op1,'(ELT CONST)) =>
- f is [op1,d,.] and MEMQ(op1,'(ELT CONST Subsumed)) =>
+ f is [op1,d,.] and op1 in '(ELT CONST Subsumed) =>
[genDeltaEntry [op,:modemap],lt',$bindings]
markImport mc
[f,lt',$bindings]
@@ -638,8 +638,8 @@ compMapCond''(cexpr,dc) ==
cexpr=true => true
--cexpr = "true" => true
---------------> new <----------------------
- cexpr is [op,:l] and MEMQ(op,'(_and AND)) => and/[compMapCond''(u,dc) for u in l]
- cexpr is [op,:l] and MEMQ(op,'(_or OR)) => or/[compMapCond''(u,dc) for u in l]
+ cexpr is [op,:l] and op in '(_and AND) => and/[compMapCond''(u,dc) for u in l]
+ cexpr is [op,:l] and op in '(_or OR) => or/[compMapCond''(u,dc) for u in l]
---------------> new <----------------------
cexpr is ["not",u] => not compMapCond''(u,dc)
cexpr is ["has",name,cat] => (knownInfo cexpr => true; false)