public semantic() { Line = 1; Row = 1; Cur = 0; Error = new ErrorType(); parser = new parser(); }
public void layout() { parser Parser = new parser(); TreeNode root = Parser.getTree("../../source.txt"); if (Parser.error.isError == false) { DrawingVisual visual = new DrawingVisual(); DrawingContext dc = visual.RenderOpen(); DrawTree.DisplayTree(root, dc, Test); //Pen drawingPen = new Pen(Brushes.Black, 2); Test.AddVisual(visual); dc.Close(); } }