===================================================================
RCS file: /home/cvs/OpenXM/src/OpenMath/OM2OXM.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- OpenXM/src/OpenMath/OM2OXM.java 2000/03/14 05:10:37 1.21
+++ OpenXM/src/OpenMath/OM2OXM.java 2000/03/14 05:38:49 1.22
@@ -1,5 +1,5 @@
/**
- * $OpenXM: OpenXM/src/OpenMath/OM2OXM.java,v 1.20 2000/03/14 05:02:34 tam Exp $
+ * $OpenXM: OpenXM/src/OpenMath/OM2OXM.java,v 1.21 2000/03/14 05:10:37 tam Exp $
*
* このクラスでは以下の BNF で表される構文解析を実装している
* expr -> stag [expr | immediate]* etag
@@ -83,7 +83,7 @@ final class OM2OXM implements Runnable{
case CMO.INT32:
return ""+ ((CMO_INT32)cmo).intValue() +"";
- // case CMO.CMO_DATUM:
+ // case CMO.DATUM:
case CMO.STRING:
return ""+ ((CMO_STRING)cmo).getString() +"";
@@ -100,7 +100,7 @@ final class OM2OXM implements Runnable{
ret += "";
return ret;
- case CMO.CMO_MONOMIAL32:
+ case CMO.MONOMIAL32:
ret += "";
ret += CMO2OM_sub(((CMO_MONOMIAL32)cmo).getCoefficient());
for(int i=0;i<((CMO_MONOMIAL32)cmo).getDegree().length;i++){
@@ -109,29 +109,29 @@ final class OM2OXM implements Runnable{
ret += "";
return ret;
- case CMO.CMO_ZZ:
+ case CMO.ZZ:
return ""+ ((CMO_ZZ)cmo).BigIntValue() +"";
- case CMO.CMO_QQ:
+ case CMO.QQ:
return ""+
CMO2OM_sub(((CMO_QQ)cmo).getBunshi())+
CMO2OM_sub(((CMO_QQ)cmo).getBunbo())+
"";
- case CMO.CMO_ZERO:
+ case CMO.ZERO:
return " 0 ";
- // case CMO.CMO_DMS:
+ // case CMO.DMS:
- case CMO.CMO_DMS_GENERIC:
+ case CMO.DMS_GENERIC:
ret += "";
ret += "2";
return ret;
- case CMO.CMO_RECURSIVE_POLYNOMIAL:
+ case CMO.RECURSIVE_POLYNOMIAL:
return CMO2OM_CoefficientOfRecursivePOLYNOMIAL(((CMO_RECURSIVE_POLYNOMIAL)cmo).getPolynomial(),((CMO_RECURSIVE_POLYNOMIAL)cmo).getVariables());
- case CMO.CMO_DISTRIBUTED_POLYNOMIAL:
+ case CMO.DISTRIBUTED_POLYNOMIAL:
ret += "";
ret += CMO2OM_sub(((CMO_DISTRIBUTED_POLYNOMIAL)cmo).getRing());
ret += "";
@@ -144,7 +144,7 @@ final class OM2OXM implements Runnable{
//case CMO.POLYNOMIAL_IN_ONE_VARIABLE:
- case CMO.CMO_BIGFLOAT:
+ case CMO.BIGFLOAT:
ret += "";
ret += CMO2OM_sub(((CMO_BIGFLOAT)cmo).getSyosubu());
ret += "";
@@ -153,10 +153,10 @@ final class OM2OXM implements Runnable{
ret += "";
return ret;
- case CMO.CMO_INDETERMINATE:
+ case CMO.INDETERMINATE:
return "";
- case CMO.CMO_TREE:
+ case CMO.TREE:
ret += "";
for(int i=0;i<((CMO_TREE)cmo).getLeaves().getElements().length;i++){