Exemple #1
0
  public static void compileMainFile(
      File file, CompileEnvironment instanceEnvironment, MathSymbolTableBuilder symbolTable) {

    Controller control = new Controller(instanceEnvironment);
    control.compileTargetFile(file, symbolTable);

    if (instanceEnvironment.showBuild()) {
      //           LOG.debug("showBuild flag set, printing module dec.");
      printModuleDec(file, instanceEnvironment);
    } else if (instanceEnvironment.showEnv()) {
      printEnvironment(file, instanceEnvironment);
    } else if (instanceEnvironment.showTable() || instanceEnvironment.showBind()) {
      // printSymbolTable(file, instanceEnvironment);
    }
  }
Exemple #2
0
  public static void compileMainSource(
      MetaFile inputFile,
      CompileEnvironment instanceEnvironment,
      MathSymbolTableBuilder symbolTable) {

    Controller control = new Controller(instanceEnvironment);
    control.compileTargetSource(inputFile, symbolTable);

    /*if (env.showBuild()) {
    //           LOG.debug("showBuild flag set, printing module dec.");
        printModuleDec(file);
    } else if (env.showEnv()) {
        printEnvironment(file);
    } else if (env.showTable() || env.showBind()) {
        printSymbolTable(file);
    }*/
  }