aboutsummaryrefslogtreecommitdiff
path: root/src/interp/g-util.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/g-util.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/g-util.boot')
-rw-r--r--src/interp/g-util.boot14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interp/g-util.boot b/src/interp/g-util.boot
index b01fbcf5..c6241500 100644
--- a/src/interp/g-util.boot
+++ b/src/interp/g-util.boot
@@ -152,7 +152,7 @@ ScanOrPairVec(f, ob) ==
CATCH('ScanOrPairVecAnswer, ScanOrInner(f, ob)) where
ScanOrInner(f, ob) ==
HGET($seen, ob) => nil
- PAIRP ob =>
+ CONSP ob =>
HPUT($seen, ob, true)
ScanOrInner(f, QCAR ob)
ScanOrInner(f, QCDR ob)
@@ -332,9 +332,9 @@ getUnionOrRecordTags u ==
Identity x == x
-length1? l == PAIRP l and not PAIRP QCDR l
+length1? l == CONSP l and not CONSP QCDR l
-length2? l == PAIRP l and PAIRP (l := QCDR l) and not PAIRP QCDR l
+length2? l == CONSP l and CONSP (l := QCDR l) and not CONSP QCDR l
pairList(u,v) == [[x,:y] for x in u for y in v]
@@ -498,8 +498,8 @@ listOfPatternIds x ==
isPatternVar v ==
-- a pattern variable consists of a star followed by a star or digit(s)
- IDENTP(v) and MEMQ(v,'(_*_* _*1 _*2 _*3 _*4 _*5 _*6 _*7 _*8 _*9 _*10
- _*11 _*12 _*13 _*14 _*15 _*16 _*17 _*18 _*19 _*20)) and true
+ IDENTP(v) and v in '(_*_* _*1 _*2 _*3 _*4 _*5 _*6 _*7 _*8 _*9 _*10
+ _*11 _*12 _*13 _*14 _*15 _*16 _*17 _*18 _*19 _*20) and true
removeZeroOne x ==
-- replace all occurrences of (Zero) and (One) with
@@ -715,7 +715,7 @@ augProplistOf(var,prop,val,e) ==
semchkProplist(x,proplist,prop,val) ==
prop="isLiteral" =>
LASSOC("value",proplist) or LASSOC("mode",proplist) => warnLiteral x
- MEMQ(prop,'(mode value)) =>
+ prop in '(mode value) =>
LASSOC("isLiteral",proplist) => warnLiteral x
addBinding(var,proplist,e is [[curContour,:tailContour],:tailEnv]) ==
@@ -804,7 +804,7 @@ intern x ==
x
isDomain a ==
- PAIRP a and VECP(CAR a) and
+ CONSP a and VECP(CAR a) and
member(CAR(a).0, $domainTypeTokens)
-- variables used by browser