aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-04-23 06:24:08 +0000
committerdos-reis <gdr@axiomatics.org>2009-04-23 06:24:08 +0000
commit461221b5ee886e30778b65765aaaedf4e0b76c36 (patch)
tree3612fad67322edc40521e6e25fd8874c989fe3ba /src/algebra/strap
parent1db4bd76938d5901b39cb516327a054c1aa0fdec (diff)
downloadopen-axiom-461221b5ee886e30778b65765aaaedf4e0b76c36.tar.gz
* interp/compiler.boot ($IOFormDomains): New.
(compAtom): Allow implicit coercion to IO forms for values of fundamental types. (compSymbol): Likewise. (compQuote): Likewise. * algebra/aggcat.spad.pamphlet (coerce$BinaryRecursiveAggregate): Don't hard code empty bracket.
Diffstat (limited to 'src/algebra/strap')
-rw-r--r--src/algebra/strap/BOOLEAN.lsp10
-rw-r--r--src/algebra/strap/LIST.lsp10
-rw-r--r--src/algebra/strap/VECTOR.lsp11
3 files changed, 15 insertions, 16 deletions
diff --git a/src/algebra/strap/BOOLEAN.lsp b/src/algebra/strap/BOOLEAN.lsp
index 9241d5a1..2ca05a21 100644
--- a/src/algebra/strap/BOOLEAN.lsp
+++ b/src/algebra/strap/BOOLEAN.lsp
@@ -201,8 +201,8 @@
|BOOLEAN;size;Nni;18| (|Integer|) (8 . |even?|)
(|PositiveInteger|) |BOOLEAN;index;Pi$;19| (13 . |One|)
|BOOLEAN;lookup;$Pi;20| (17 . |random|)
- |BOOLEAN;random;$;21| (|Symbol|) (|InputForm|)
- (21 . |convert|) |BOOLEAN;convert;$If;22| (|OutputForm|)
+ |BOOLEAN;random;$;21| (|OutputForm|) (|InputForm|)
+ (21 . |convert|) |BOOLEAN;convert;$If;22| (|Symbol|)
(26 . |outputForm|) |BOOLEAN;coerce;$Of;23| (|String|)
(|SingleInteger|))
'#(~= 31 ~ 37 |xor| 42 |true| 48 |test| 52 |size| 57 |random|
@@ -219,10 +219,10 @@
(|PropositionalLogic|) (|Finite|)
(|Logic|) (|SetCategory|)
(|ConvertibleTo| 36) (|BasicType|)
- (|CoercibleTo| 39))
+ (|CoercibleTo| 35))
(|makeByteWordVec2| 43
'(0 10 0 11 0 10 0 12 1 27 10 0 28 0 29
- 0 31 0 27 0 33 1 36 0 35 37 1 39 0 35
+ 0 31 0 27 0 33 1 36 0 35 37 1 35 0 39
40 2 0 10 0 0 1 1 0 0 0 13 2 0 0 0 0
18 0 0 0 7 1 0 0 0 6 0 0 25 26 0 0 0
34 2 0 0 0 0 16 1 0 0 0 9 2 0 0 0 0
@@ -230,7 +230,7 @@
0 0 1 2 0 0 0 0 1 1 0 29 0 32 1 0 42
0 1 1 0 0 29 30 2 0 0 0 0 22 1 0 43 0
1 0 0 0 8 2 0 0 0 0 23 1 0 36 0 38 1
- 0 39 0 41 2 0 0 0 0 14 2 0 0 0 0 17 2
+ 0 35 0 41 2 0 0 0 0 14 2 0 0 0 0 17 2
0 10 0 0 1 2 0 10 0 0 1 2 0 10 0 0 21
2 0 10 0 0 1 2 0 10 0 0 24 2 0 0 0 0
15)))))
diff --git a/src/algebra/strap/LIST.lsp b/src/algebra/strap/LIST.lsp
index d446ced6..6eda32ee 100644
--- a/src/algebra/strap/LIST.lsp
+++ b/src/algebra/strap/LIST.lsp
@@ -203,7 +203,7 @@
(PROGN
(LETT |dv$1| (|devaluate| |#1|) . #0=(|List|))
(LETT |dv$| (LIST '|List| |dv$1|) . #0#)
- (LETT $ (|newShell| 70) . #0#)
+ (LETT $ (|newShell| 69) . #0#)
(|setShellEntry| $ 0 |dv$|)
(|setShellEntry| $ 3
(LETT |pv$|
@@ -287,14 +287,14 @@
(97 . |removeDuplicates|) (102 . |setUnion|)
(108 . |empty|) (112 . |empty?|) (117 . |member?|)
(123 . |setIntersection|) (129 . |elt|) (135 . |concat|)
- (141 . |setDifference|) (|Symbol|) (|InputForm|)
+ (141 . |setDifference|) (|OutputForm|) (|InputForm|)
(147 . |convert|) (152 . |convert|) (|List| 45)
(157 . |concat|) (|List| $) (163 . |convert|)
(168 . |convert|) (|Mapping| 6 6 6) (|NonNegativeInteger|)
(|List| 6) (|Equation| 6) (|List| 56) (|Mapping| 10 6)
(|Mapping| 10 6 6) (|UniversalSegment| 7) '"last" '"rest"
- '"first" '"value" (|Mapping| 6 6) (|OutputForm|)
- (|SingleInteger|) (|List| 7) (|Union| 6 '"failed"))
+ '"first" '"value" (|Mapping| 6 6) (|SingleInteger|)
+ (|List| 7) (|Union| 6 '"failed"))
'#(|setUnion| 173 |setIntersection| 179 |setDifference| 185
|rest| 191 |removeDuplicates| 196 |null| 201 |nil| 206
|member?| 210 |first| 216 |empty?| 221 |empty| 226 |elt|
@@ -325,7 +325,7 @@
(|OrderedSet|) (|Aggregate|)
(|EltableAggregate| 7 6) (|Evalable| 6)
(|SetCategory|) (|Type|) (|Eltable| 7 6)
- (|InnerEvalable| 6 6) (|CoercibleTo| 66)
+ (|InnerEvalable| 6 6) (|CoercibleTo| 44)
(|ConvertibleTo| 45) (|BasicType|)
(|OpenMath|))
(|makeByteWordVec2| 52
diff --git a/src/algebra/strap/VECTOR.lsp b/src/algebra/strap/VECTOR.lsp
index 50609410..c9db05ae 100644
--- a/src/algebra/strap/VECTOR.lsp
+++ b/src/algebra/strap/VECTOR.lsp
@@ -40,7 +40,7 @@
(PROGN
(LETT |dv$1| (|devaluate| |#1|) . #0=(|Vector|))
(LETT |dv$| (LIST '|Vector| |dv$1|) . #0#)
- (LETT $ (|newShell| 36) . #0#)
+ (LETT $ (|newShell| 35) . #0#)
(|setShellEntry| $ 0 |dv$|)
(|setShellEntry| $ 3
(LETT |pv$|
@@ -96,15 +96,14 @@
(MAKEPROP '|Vector| '|infovec|
(LIST '#(NIL NIL NIL NIL NIL (|IndexedVector| 6 (NRTEVAL 1))
(|local| |#1|) (|Integer|) (0 . |One|) (|List| 6)
- (4 . |construct|) |VECTOR;vector;L$;1| (|Symbol|)
+ (4 . |construct|) |VECTOR;vector;L$;1| (|OutputForm|)
(|InputForm|) (9 . |convert|) (14 . |parts|)
(19 . |convert|) (|List| $) (24 . |convert|)
(29 . |convert|) (|Mapping| 6 6 6) (|Boolean|)
(|NonNegativeInteger|) (|Equation| 6) (|List| 23)
(|Mapping| 21 6) (|Mapping| 21 6 6) (|UniversalSegment| 7)
- (|Void|) (|Mapping| 6 6) (|OutputForm|) (|Matrix| 6)
- (|SingleInteger|) (|String|) (|Union| 6 '"failed")
- (|List| 7))
+ (|Void|) (|Mapping| 6 6) (|Matrix| 6) (|SingleInteger|)
+ (|String|) (|Union| 6 '"failed") (|List| 7))
'#(|vector| 34 |parts| 39 |convert| 44 |construct| 49)
'((|shallowlyMutable| . 0) (|finiteAggregate| . 0))
(CONS (|makeByteWordVec2| 5
@@ -127,7 +126,7 @@
(|OrderedSet|) (|Aggregate|)
(|EltableAggregate| 7 6) (|Evalable| 6)
(|SetCategory|) (|Type|) (|Eltable| 7 6)
- (|InnerEvalable| 6 6) (|CoercibleTo| 30)
+ (|InnerEvalable| 6 6) (|CoercibleTo| 12)
(|ConvertibleTo| 13) (|BasicType|))
(|makeByteWordVec2| 19
'(0 7 0 8 1 0 0 9 10 1 13 0 12 14 1 0 9