Search in sources :

Example 1 with GrammarsUIInterpreterVisitor

use of org.whole.lang.grammars.visitors.GrammarsUIInterpreterVisitor in project whole by wholeplatform.

the class GrammarsUIDeployer method deploy.

public void deploy(ReflectionFactory platform) {
    platform.addEditorKit(GrammarsEditorKit.ID);
    platform.addEditorKit(GrammarsParserEditorKit.ID);
    platform.addEditorKit(GrammarsUnparserEditorKit.ID);
    platform.addOperationFactory(GrammarsLanguageKit.URI, InterpreterOperation.ID, new IVisitorFactory() {

        public IVisitor create(IOperation operation, int stage) {
            if (stage == 0)
                return new GrammarsUIInterpreterVisitor();
            else
                return null;
        }
    });
}
Also used : IOperation(org.whole.lang.operations.IOperation) IVisitor(org.whole.lang.visitors.IVisitor) IVisitorFactory(org.whole.lang.visitors.IVisitorFactory) GrammarsUIInterpreterVisitor(org.whole.lang.grammars.visitors.GrammarsUIInterpreterVisitor)

Aggregations

GrammarsUIInterpreterVisitor (org.whole.lang.grammars.visitors.GrammarsUIInterpreterVisitor)1 IOperation (org.whole.lang.operations.IOperation)1 IVisitor (org.whole.lang.visitors.IVisitor)1 IVisitorFactory (org.whole.lang.visitors.IVisitorFactory)1