示例#1
0
 public semantic()
     {
         Line = 1;
         Row  = 1;
         Cur  = 0;
         Error = new ErrorType();
         parser = new parser();
     }
示例#2
0
        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();
            }
        }