Examples of compileWorkspace()


Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

        final String defaultWorkspaceFile = "cal.optimizer.cws";

        BasicCALServices calServices = BasicCALServices.make(defaultWorkspaceFile);
        calServices.getWorkspaceManager().useOptimizer(false);
        CompilerMessageLogger messageLogger = new MessageLogger();
        if (!calServices.compileWorkspace(null, messageLogger)) {
            System.err.println(messageLogger.toString());
        }

        final ExecutionContext executionContext = calServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

        final String defaultWorkspaceFile = "cal.optimizer.cws";
       
        BasicCALServices calServices = CALServicesTestUtilities.makeUnsharedUnitTestCALServices(null, defaultWorkspaceFile, null, false);
        calServices.getWorkspaceManager().useOptimizer(false);
        CompilerMessageLogger messageLogger = new MessageLogger();       
        if (!calServices.compileWorkspace(null, messageLogger)) {
            System.err.println(messageLogger.toString());
        }
              
        final ExecutionContext executionContext = calServices.getWorkspaceManager().makeExecutionContextWithDefaultProperties();       
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

       
        ((EntryPointGenerator)privateCopyLeccServices.getWorkspaceManager().getCompiler()).setForceCodeRegen(true);       

        try {           
            MessageLogger logger = new MessageLogger();
            privateCopyLeccServices.compileWorkspace(null, logger);
            assertEquals(logger.getNErrors(), 0);

            addSourceModelCode( privateCopyLeccServices );
           
            // Run tests and make sure that it still returns true even after all the source model
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

            // Turn off the debugging flag before recompilation
            CALCompiler.setInUnitTestDebugSourceModelMode(false);
           
            ((EntryPointGenerator)privateCopyLeccServices.getWorkspaceManager().getCompiler()).setForceCodeRegen(true);       

            privateCopyLeccServices.compileWorkspace(null, new MessageLogger());
        }
       
    }
   
    /**
 
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

                "org.openquark.cal.test.workspace.CALRenaming_DeepTest.renameAllSymbolsInModule",
                workspaceFile,
                null, "CALRenaming_DeepTest.renameAllSymbolsInModule", false);
           
            try {
                privateCopyLeccServices.compileWorkspace(null, new MessageLogger());
               
                ModuleSourceDefinition sourceDef = makeSourceDefFromBuiltIn(moduleName, privateCopyLeccServices.getCALWorkspace());
                String moduleString = getSourceString(sourceDef);
                List <Renaming> renamings = new ArrayList<Renaming>();
               
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

            // Turn on the debugging flag in the compiler, so that each module being compiled will
            // go through a set of semantics-preserving text-to-source-model-to-text transformations
            CALCompiler.setInUnitTestDebugSourceModelMode(true);
           
            MessageLogger logger = new MessageLogger();
            privateCopyLeccServices.compileWorkspace(null, logger);
           
            if (logger.getNErrors() > 0) {
                String message = "Compilation of the workspace (with source model debugging turned on) failed with these errors:\n" + logger.toString();
               
                if (SHOW_DEBUGGING_OUTPUT) {
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

            null, "DIFG_Test", false); // we use an abbreviated name here so that the path names are not too long (for running in lecc java source mode)
       
        try {
            MessageLogger logger = new MessageLogger();
           
            privateCopyLeccServices.compileWorkspace(null, logger);
            if (logger.getNErrors() > 0) {
                Assert.fail("Compilation of workspace failed: " + logger.getCompilerMessages());
            }
           
            final ModuleName moduleName = ModuleName.make("Test_MakeAlgebraicTypeInstanceFunctions");
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

                        }
                    }
                };
               
                logger.info("Compiling CAL workspace..");
                calServices.compileWorkspace(statusListener, msgLogger);
               
                if (msgLogger.getNErrors() == 0) {
                    logger.info("Compilation successful");
                   
                    ////
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

                        DEFAULT_WORKSPACE_FILE, DEFAULT_WORKSPACE_CLIENT_ID);
               
                if (newCalServices != null) {
                    // If there's a local cache, the workspace will use it, rather than the modules in the repo
                    // ...so if the cache is out of date, now's the time to synch
                    compilationSuccessful = newCalServices.compileWorkspace(null, messageLogger);
                }
            }
            catch (Throwable t) {
                t.printStackTrace();
               
View Full Code Here

Examples of org.openquark.cal.services.BasicCALServices.compileWorkspace()

        // the compileWorkspace() method.
       
        BasicCALServices calServices = BasicCALServices.make(
            WORKSPACE_FILE_NAME);
       
        if (!calServices.compileWorkspace(null, messageLogger)) {
            System.err.println(messageLogger.toString());
        }
       
        System.out.println();
        System.out.println("The CAL source of the demo gems defined using the source model:");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.