private void RemoveChoice(SymbolV symbolV) { ConcatenationD concatD = symbolV.getReference().Parent as ConcatenationD; if (concatD == null) throw new Exception("The symbol does not have a parent of type concatenationD"); model.Functions.Delete(concatD); view.Functions.Delete(concatD); ReDraw(); }
public void AddChoice(SymbolV symbolV) { GrammarNodeVAddChoiceVisitor visitor = new GrammarNodeVAddChoiceVisitor(symbolV.getReference()); startSymbol.accept(visitor); }