Package org.asturlinux.frade.currin.machine

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


  try {
      Logger log = Logger.getLogger("Main");
      log.debug("En la ejecucion de Main");
      Program _p = parseFile(file);
      _p.debug();
      Machine _m = new Machine(_p);
            _m.evaluate(function);
      System.out.println(_m.printResult());
  } catch ( ParsingException pe ) {
      System.out.println("ERROR parseando el fichero");
  } catch ( InterpreterException ie) {
      System.out.println("ERROR ejecutando funcion");
      System.out.println(ie.getMessage());
View Full Code Here


      log.debug("================================================");
      log.debug("  File: " + file + " function: " + function);
      log.debug("================================================");
      Program _p = parseFile(file);
      _p.debug();
      Machine _m = new Machine(_p);
            _m.evaluate(function);
      return _m.printResult();
  } catch ( ParsingException pe ) {
      System.out.println("ERROR parseando el fichero");
  } catch ( InterpreterException ie) {
      System.out.println("ERROR ejecutando funcion");
      System.out.println(ie.getMessage());
View Full Code Here

  if (cr.inHNF()) {
      return cr;
  }

  Machine local = m.getNewMachine();
  local.run(((CurrinFunction)cr.getReference()).getId(),
      ((CurrinFunction)cr.getReference()).getRefParameters());
  cr.setReference(local.getResult().getReference());
  return cr;
    }
View Full Code Here

TOP

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

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.