aboutsummaryrefslogtreecommitdiff
path: root/src/algebra
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-07-03 22:38:06 +0000
committerdos-reis <gdr@axiomatics.org>2008-07-03 22:38:06 +0000
commit80f914241a6f9a356f539e6451d88dfdade2e7ea (patch)
treec046d87b3765d630f0d094769528be76dc1890ff /src/algebra
parent7d7446e578326a98fe8c47a86fadad4e5f5f2de2 (diff)
downloadopen-axiom-80f914241a6f9a356f539e6451d88dfdade2e7ea.tar.gz
Fix AW/428
* algebra/syntax.spad.pamphlet (ConstructorCall): Now a member of SetCategory. (Domain): Likewise. * share/algebra: Update databases. * testsuite/interpreter/aw-428.input: New.
Diffstat (limited to 'src/algebra')
-rw-r--r--src/algebra/domain.spad.pamphlet7
-rw-r--r--src/algebra/syntax.spad.pamphlet12
2 files changed, 12 insertions, 7 deletions
diff --git a/src/algebra/domain.spad.pamphlet b/src/algebra/domain.spad.pamphlet
index 571c14a8..0b4d5847 100644
--- a/src/algebra/domain.spad.pamphlet
+++ b/src/algebra/domain.spad.pamphlet
@@ -38,7 +38,7 @@ Category(): Public == Private where
++ Related Constructors: Type, Syntax, OutputForm
++ Also See: Type, ConstructorCall
Domain(): Public == Private where
- Public ==> CoercibleTo(OutputForm) with
+ Public == SetCategory with
reify: % -> ConstructorCall
++ reify(d) returns the abstract syntax for the domain `x'.
@@ -51,7 +51,7 @@ Domain(): Public == Private where
++ showSummary(d) prints out implementation detail information
++ of domain `d'.
- Private ==> add
+ Private == add
coerce x ==
outputDomainConstructor(x)$Lisp
@@ -61,6 +61,9 @@ Domain(): Public == Private where
reflect cc ==
evalDomain(cc)$Lisp @ %
+ x = y ==
+ reify x = reify y
+
showSummary x ==
showSummary(x)$Lisp
diff --git a/src/algebra/syntax.spad.pamphlet b/src/algebra/syntax.spad.pamphlet
index 365cac19..40b2f066 100644
--- a/src/algebra/syntax.spad.pamphlet
+++ b/src/algebra/syntax.spad.pamphlet
@@ -217,21 +217,20 @@ Syntax(): Public == Private where
)abbrev domain CTORCALL ConstructorCall
++ Author: Gabriel Dos Reis
++ Date Created: January 19, 2008
-++ Date Last Updated: January 19, 2008
+++ Date Last Updated: July 03, 2008
++ Description: This domains represents a syntax object that
++ designates a category, domain, or a package.
++ See Also: Syntax, Domain
ConstructorCall(): Public == Private where
- Public ==> CoercibleTo OutputForm with
+ Public == SetCategory with
constructorName: % -> Symbol
++ constructorName c returns the name of the constructor
arguments: % -> List Syntax
++ arguments returns the list of syntax objects for the
++ arguments used to invoke the constructor.
- Private ==> add
- rep(x: %): List Syntax ==
- x pretend List(Syntax)
+ Private == add
+ Rep == List Syntax
constructorName x ==
(first rep x)::Symbol
@@ -239,6 +238,9 @@ ConstructorCall(): Public == Private where
arguments x ==
rest rep x
+ x = y ==
+ rep x = rep y
+
coerce x ==
outputDomainConstructor(x)$Lisp
@