use of org.whole.lang.scheme.builders.SchemeGenericBuilderAdapter in project whole by wholeplatform.
the class SchemeLanguageDeployer method deploy.
public void deploy(ReflectionFactory platform) {
platform.addLanguageKit(new SchemeLanguageKit());
platform.addOperationFactory(SchemeLanguageKit.URI, GenericBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SchemeGenericBuilderAdapter((ISchemeBuilder) strategy, entityContext);
}
});
platform.addOperationFactory(SchemeLanguageKit.URI, SpecificBuilderAdapterOperation.ID, new IBuilderFactory() {
public IBuilder create(IBuilder strategy, IEntityContext entityContext) {
return new SchemeSpecificBuilderAdapter(strategy, entityContext);
}
});
platform.addOperationFactory(SchemeLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {
public IVisitor create(IOperation operation, int stage) {
if (stage == 0)
return new SchemeInterpreterVisitor((InterpreterOperation) operation);
else
return null;
}
});
platform.addEditorKit(SchemeTextualEditorKit.ID);
}
Aggregations