===================================================================
RCS file: /home/cvs/OpenXM/src/OpenMath/OM2OXM.java,v
retrieving revision 1.9
retrieving revision 1.11
diff -u -p -r1.9 -r1.11
--- OpenXM/src/OpenMath/OM2OXM.java 1999/11/16 13:16:22 1.9
+++ OpenXM/src/OpenMath/OM2OXM.java 1999/11/17 08:37:29 1.11
@@ -1,5 +1,5 @@
/**
- * $OpenXM: OpenXM/src/OpenMath/OM2OXM.java,v 1.8 1999/11/15 23:13:21 tam Exp $
+ * $OpenXM: OpenXM/src/OpenMath/OM2OXM.java,v 1.10 1999/11/17 07:04:25 tam Exp $
*
* このクラスでは以下の BNF で表される構文解析を実装している
* expr -> stag [expr | immediate]* etag
@@ -141,17 +141,21 @@ final class OM2OXM implements Runnable{
case CMO.CMO_INDETERMINATE:
return "";
- /*
- case CMO.CMO_TREE:
- return "" + "";
- */
+ case CMO.CMO_TREE:
+ ret += "";
+ for(int i=0;i<((CMO_TREE)cmo).getLeaves().getElement().length;i++){
+ ret += CMO2OM_sub(((CMO_TREE)cmo).getLeaves().getElement()[i]);
+ }
+ ret += "";
+ return ret;
default:
//return ""+ cmo.toCMOexpression() +"";
}
- throw new NumberFormatException(""+ cmo.toCMOexpression());
+ throw new NumberFormatException("unknown convert way:"+
+ cmo.toCMOexpression());
}
private boolean isSpace(int ch){ // use from lex