processSyntaxDiagram(new SerializePSDDelegate());
}
private void processSyntaxDiagram(ProcessSyntaxDiagramDelegate delegate) throws Exception {
GrammarEngine engine = new GrammarEngineImpl(new EngineDelegate());
GrammarSyntaxEngine syntaxEngine = engine.getSyntaxEngine();
syntaxEngine.setDelegate(new SyntaxDelegate());
syntaxEngine.processSyntax();
engine.parserCompleted();
SDGenerator gen = new SDGenerator(engine);