===================================================================
RCS file: /home/cvs/OpenXM/src/OpenMath/OM2OXM.java,v
retrieving revision 1.6
retrieving revision 1.8
diff -u -p -r1.6 -r1.8
--- OpenXM/src/OpenMath/OM2OXM.java 1999/11/14 22:57:44 1.6
+++ OpenXM/src/OpenMath/OM2OXM.java 1999/11/15 23:13:21 1.8
@@ -1,5 +1,5 @@
/**
- * $OpenXM: OpenXM/src/OpenMath/OM2OXM.java,v 1.5 1999/11/12 11:36:09 tam Exp $
+ * $OpenXM: OpenXM/src/OpenMath/OM2OXM.java,v 1.7 1999/11/15 06:19:26 tam Exp $
*
* このクラスでは以下の BNF で表される構文解析を実装している
* expr -> stag [expr | immediate]* etag
@@ -39,7 +39,7 @@ final class OM2OXM implements Runnable{
private int token = TT_NULL;
private boolean lexPushbackFlag = false;
private OpenXM asir; // for debug
- private boolean debug = true;
+ private boolean debug = false;
// Token Type for lexical analyzer
final static int TT_NULL = 0;
@@ -131,13 +131,22 @@ final class OM2OXM implements Runnable{
ret += "";
return ret;
+ case CMO.CMO_BIGFLOAT:
+ ret += "";
+ ret += CMO2OM_sub(((CMO_BIGFLOAT)cmo).getSyosubu());
+ ret += "";
+ ret += "2";
+ ret += CMO2OM_sub(((CMO_BIGFLOAT)cmo).getShisubu());
+ ret += "";
+ return ret;
+
case CMO.CMO_INDETERMINATE:
return "";
/*
case CMO.CMO_TREE:
- return ""+
- "";
+ return "" + "";
*/
default:
@@ -428,7 +437,7 @@ final class OM2OXM implements Runnable{
return new CMO_MONOMIAL32(array,(CMO_ZZ)degree.elementAt(0));
}
- private CMO parse_objects() throws IOException{
+ private CMO_LIST parse_objects() throws IOException{
// 解析された object を LIST で返す
Vector objects = new Vector();
CMO[] array;
@@ -443,7 +452,7 @@ final class OM2OXM implements Runnable{
array = new CMO[objects.size()];
objects.copyInto((Object[])array);
- System.out.println("debug :"+ new CMO_LIST(array));
+ debug("debug :"+ new CMO_LIST(array));
return new CMO_LIST(array);
}