Package org.asturlinux.frade.currin.program

Examples of org.asturlinux.frade.currin.program.Program


public class ParsingTest extends TestCase {
    public void testHelloWorldParse()
  throws ParsingException {
 
      Program p = Main.parseFile("prog-test/holamundo.cam");
     
      p.debug();
    }
View Full Code Here


    public Main (String file, String function) {
  BasicConfigurator.configure();
  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");
View Full Code Here

  try {
      Logger log = Logger.getLogger("RuntimeLogger");
      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");
View Full Code Here

TOP

Related Classes of org.asturlinux.frade.currin.program.Program

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.