aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/symbol.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-08-10 02:33:46 +0000
committerdos-reis <gdr@axiomatics.org>2011-08-10 02:33:46 +0000
commit0a0661e0c50e9c3e160d54b8e0a5b891d419e2bc (patch)
tree42ef806af61677a355623104e7ef3d35ecbbaedb /src/algebra/symbol.spad.pamphlet
parentf1a4ca4eb786bfb440fd537d06a25264b0596369 (diff)
downloadopen-axiom-0a0661e0c50e9c3e160d54b8e0a5b891d419e2bc.tar.gz
* interp/setvart.boot: Remoe OpenMath description.
* interp/setvars.boot (setOutputOpenMath): Remove. (describeOutputOpenMath): Likewise. * algebra/Makefile.in (axiom_algebra_layer_14): Don't include OMSERVER. * algebra/float.spad.pamphlet (Float): Remove OpenMath exports. * algebra/fraction.spad.pamphlet (Fraction): Likewise. * algebra/gaussian.spad.pamphlet (Complex): Likewise. * algebra/integer.spad.pamphlet (Integer): Likewise. * algebra/list.spad.pamphlet (List): Likewise. * algebra/sf.spad.pamphlet (DoubleFloat): Likewise. * algebra/si.spad.pamphlet (SingleInteger): Likewise. * algebra/string.spad.pamphlet (String): Likewise. * algebra/symbol.spad.pamphlet (Symbol): Likewise.
Diffstat (limited to 'src/algebra/symbol.spad.pamphlet')
-rw-r--r--src/algebra/symbol.spad.pamphlet43
1 files changed, 1 insertions, 42 deletions
diff --git a/src/algebra/symbol.spad.pamphlet b/src/algebra/symbol.spad.pamphlet
index 67539450..7f80ecdb 100644
--- a/src/algebra/symbol.spad.pamphlet
+++ b/src/algebra/symbol.spad.pamphlet
@@ -22,7 +22,7 @@ Symbol(): Exports == Implementation where
L ==> List OutputForm
Scripts ==> Record(sub:L,sup:L,presup:L,presub:L,args:L)
- Exports ==> Join(OrderedSet, ConvertibleTo InputForm, OpenMath,
+ Exports ==> Join(OrderedSet, ConvertibleTo InputForm,
ConvertibleTo Symbol,CoercibleFrom String,
ConvertibleTo Pattern Integer, ConvertibleTo Pattern Float,
PatternMatchable Integer, PatternMatchable Float) with
@@ -82,47 +82,6 @@ Symbol(): Exports == Implementation where
ALPHAS:String:="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
alphas:String:="abcdefghijklmnopqrstuvwxyz"
- writeOMSym(dev: OpenMathDevice, x: %): Void ==
- scripted? x =>
- error "Cannot convert a scripted symbol to OpenMath"
- OMputVariable(dev, x pretend Symbol)
-
- OMwrite(x: %): String ==
- s: String := ""
- sp := OM_-STRINGTOSTRINGPTR(s)$Lisp
- dev: OpenMathDevice := OMopenString(sp pretend String, OMencodingXML())
- OMputObject(dev)
- writeOMSym(dev, x)
- OMputEndObject(dev)
- OMclose(dev)
- s := OM_-STRINGPTRTOSTRING(sp)$Lisp pretend String
- s
-
- OMwrite(x: %, wholeObj: Boolean): String ==
- s: String := ""
- sp := OM_-STRINGTOSTRINGPTR(s)$Lisp
- dev: OpenMathDevice := OMopenString(sp pretend String, OMencodingXML())
- if wholeObj then
- OMputObject(dev)
- writeOMSym(dev, x)
- if wholeObj then
- OMputEndObject(dev)
- OMclose(dev)
- s := OM_-STRINGPTRTOSTRING(sp)$Lisp pretend String
- s
-
- OMwrite(dev: OpenMathDevice, x: %): Void ==
- OMputObject(dev)
- writeOMSym(dev, x)
- OMputEndObject(dev)
-
- OMwrite(dev: OpenMathDevice, x: %, wholeObj: Boolean): Void ==
- if wholeObj then
- OMputObject(dev)
- writeOMSym(dev, x)
- if wholeObj then
- OMputEndObject(dev)
-
hd:String := "*"
lhd := #hd
ord0 := ord char("0")$Character