Search in sources :

Example 1 with CoreExtension

use of php.runtime.ext.CoreExtension in project jphp by jphp-compiler.

the class JvmCompilerCase method newScope.

protected CompileScope newScope() {
    CompileScope compileScope = new CompileScope();
    compileScope.setDebugMode(true);
    compileScope.setLangMode(LangMode.DEFAULT);
    compileScope.registerExtension(new CoreExtension());
    compileScope.registerExtension(new SPLExtension());
    compileScope.registerExtension(new CompilerExtension());
    return compileScope;
}
Also used : CoreExtension(php.runtime.ext.CoreExtension) CompilerExtension(org.develnext.jphp.core.ext.CompilerExtension) SPLExtension(php.runtime.ext.SPLExtension)

Aggregations

CompilerExtension (org.develnext.jphp.core.ext.CompilerExtension)1 CoreExtension (php.runtime.ext.CoreExtension)1 SPLExtension (php.runtime.ext.SPLExtension)1