Package org.asturlinux.frade.currin.machine

Examples of org.asturlinux.frade.currin.machine.Memory


 
  first_op = evaluateSubExpr(m, first_op);

  second_op = evaluateSubExpr(m, second_op);

  Memory mem = m.getContextStack().currentContext().getMemory();

  if ( first_op.equals(second_op,mem)) {
      m.setResult(new CurrinRef(new CurrinConstr("prelude__EQ",
                   new Vector() )));
View Full Code Here


  if ( m.getContextStack().isEmpty() )
      return _running_dirs;

  Vector references = new Vector();
  Iterator i = _running_dirs.iterator();
  Memory mem = m.getContextStack().currentContext().getMemory();
 
  try {

      while ( i.hasNext() ) {
    CurrinRef cr = mem.getElementAt((String)i.next());
    references.add(cr);
      }
     
      return references;
  } catch (ClassCastException cce) {
View Full Code Here

    }

    public void exec(Machine m) {
  Logger logger = Logger.getLogger("Runtime");
  logger.debug("Running Enter instruction");
  Memory mem = m.getContextStack().currentContext().getMemory();
  CurrinRef cr = mem.getElementAt(_what);
  if ( cr == null )
      logger.debug("Chungo");
  cr.evaluate(m);
  m.setResult(cr);
View Full Code Here

    }
   
    public void exec(Machine m) {
  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("Running Store in (FIXME) " + _where);
  Memory mem = m.getContextStack().currentContext().getMemory();
  mem.setElementAt(_where, m.getResult());
    }
View Full Code Here

    public void exec(Machine m) {
  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("Run LET ");

  Memory mem = m.getContextStack().currentContext().getMemory();
  CurrinRef cr = _what.getMemoryForm(mem);

  mem.setElementAt(_where, cr);
    }
View Full Code Here

    public void exec(Machine m)
  throws InterpreterException {
  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("Running Switch ");

  Memory mem = m.getContextStack().currentContext().getMemory();
  CurrinRef switcher = mem.getElementAt(_selector);
  if ( switcher == null ) {
      throw new InterpreterException("Switcher nulo en Switch");
  }

  Iterator i = _cases.iterator();
View Full Code Here

     */
    public void exec(Machine m) {
  Logger logger = Logger.getLogger("RuntimeLogger");
  logger.debug("Run RETURN");
 
  Memory mem = m.getContextStack().currentContext().getMemory();
  m.setResult(mem.getElementAt(_what));
    }
View Full Code Here

TOP

Related Classes of org.asturlinux.frade.currin.machine.Memory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.