WorkspaceManager workspaceManager = calServices.getWorkspaceManager();
Compiler compiler = calServices.getCompiler();
CALExecutor executor = workspaceManager.makeExecutor(executionContext);
EntryPoint allPrimesExternalEntryPoint =
compiler.getEntryPoint(
EntryPointSpec.make(QualifiedName.make(CALPlatformTestModuleNames.M2, "allPrimesExternal")),
CALPlatformTestModuleNames.M2, messageLogger);
if (messageLogger.getNMessages() > 0) {
System.err.println(messageLogger.toString());
}
try {
CalValue remainingPrimesCalValue = (CalValue)executor.exec(allPrimesExternalEntryPoint, null);
EntryPoint nextNPrimesExternalEntryPoint =
compiler.getEntryPoint(
EntryPointSpec.make(QualifiedName.make(CALPlatformTestModuleNames.M2, "nextNPrimesExternal")),
CALPlatformTestModuleNames.M2, messageLogger);
BufferedReader inBuff = new BufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));