Пример #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());
   }
 }