예제 #1
0
  /* (non-Javadoc)
   * @see org.sdxchange.dynamo.parser4.IXFrame#update(org.oasis.xmile.devkit.xframe.XSymbol)
   */
  @Override
  public void update(XSymbol sym) {

    XSymbol existing = definedVars.put(sym.getName(), sym);
    if (existing == null) {
      System.err.println("Attempt to update undeclared symbol: " + sym.getName());
    }
  }
예제 #2
0
 /* (non-Javadoc)
  * @see org.sdxchange.dynamo.parser4.IXFrame#dumpSymbols()
  */
 @Override
 public String dumpSymbols() {
   String rval = "";
   for (XSymbol sym : definedVars.values()) {
     rval += (sym.dump() + "\n");
   }
   return rval;
 }
예제 #3
0
 /* (non-Javadoc)
  * @see org.sdxchange.dynamo.parser4.IXFrame#defineVar(java.lang.String, org.oasis.xmile.devkit.xframe.XSymbol)
  */
 @Override
 public void defineVar(String varName, XSymbol sym) {
   System.out.println("Defining Aux " + sym.dump());
   XSymbol existing = definedVars.put(varName, sym);
   if (existing != null) {
     System.err.println("Duplicate Symbol definition: " + existing + " :: " + sym);
   }
 }
예제 #4
0
 /* (non-Javadoc)
  * @see org.sdxchange.dynamo.parser4.IXFrame#dump()
  */
 @Override
 public void dump() {
   for (XSymbol sym : definedVars.values()) {
     System.out.println(sym.dump());
   }
 }