Ejemplo n.º 1
0
        public Graph GetASTasGLEEGraph()
        {
            Graph g = new Graph("AST");

            g.GraphAttr.NodeAttr.Padding = 3;

            CommonAST BoolProgramASTRoot = new CommonAST();

            BoolProgramASTRoot.setText("Bool Program");
            BoolProgramASTRoot.addChild(BoolProgAST);

            ASTforGLEEIndex = 0;
            if (ASTorderedByGraphIndex == null)
            {
                ASTorderedByGraphIndex = new List <CommonAST>();
            }
            else
            {
                ASTorderedByGraphIndex.Clear();
            }

            DrawAST(BoolProgramASTRoot, ref g);

            return(g);
        }