Project

General

Profile

root / branches / compiler / cSharp / ooasCompiler / src / libs / Antlr3.Utility.xml

1 3 krennw
<?xml version="1.0"?>
2
<doc>
3
    <assembly>
4
        <name>/home/verequus/Arbeit/ANTLR/code/antlr/main/runtime/CSharp/Sources/Antlr3.Utility/bin/Debug/net-2.0/Antlr3.Utility</name>
5
    </assembly>
6
    <members>
7
        <member name="T:Antlr.Utility.Tree.DOTTreeGenerator">
8
            <summary>
9
            A utility class to generate DOT diagrams (graphviz) from
10
            arbitrary trees.  You can pass in your own templates and
11
            can pass in any kind of tree or use Tree interface method.
12
            I wanted this separator so that you don't have to include
13
            ST just to use the org.antlr.runtime.tree.* package.
14
            This is a set of non-static methods so you can subclass
15
            to override.  For example, here is an invocation:
16
            CharStream input = new ANTLRInputStream(Console.In);
17
            TLexer lex = new TLexer(input);
18
            CommonTokenStream tokens = new CommonTokenStream(lex);
19
            TParser parser = new TParser(tokens);
20
            TParser.e_return r = parser.e();
21
            Tree t = (Tree)r.tree;
22
            Console.Out.WriteLine(t.ToStringTree());
23
            DOTTreeGenerator gen = new DOTTreeGenerator();
24
            StringTemplate st = gen.ToDOT(t);
25
            Console.Out.WriteLine(st);
26
            </summary>
27
        </member>
28
        <member name="F:Antlr.Utility.Tree.DOTTreeGenerator.nodeToNumberMap">
29
            <summary>
30
            Track node to number mapping so we can get proper node name back
31
            </summary>
32
        </member>
33
        <member name="F:Antlr.Utility.Tree.DOTTreeGenerator.nodeNumber">
34
            <summary>
35
            Track node number so we can get unique node names
36
            </summary>
37
        </member>
38
        <member name="M:Antlr.Utility.Tree.DOTTreeGenerator.ToDOT(Antlr.Runtime.Tree.ITree)">
39
            <summary>
40
            Generate DOT (graphviz) for a whole tree not just a node.
41
            For example, 3+4*5 should generate:
42
            digraph {
43
            node [shape=plaintext, fixedsize=true, fontsize=11, fontname="Courier",
44
            width=.4, height=.2];
45
            edge [arrowsize=.7]
46
            "+"-&gt;3
47
            "+"-&gt;"*"
48
            "*"-&gt;4
49
            "*"-&gt;5
50
            }
51
            Return the ST not a string in case people want to alter.
52
            Takes a Tree interface object.
53
            </summary>
54
        </member>
55
    </members>
56
</doc>