antlr-net 3.1.3.42154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/README.TXT +38 -0
- data/lib/net-2.0/Antlr3.Runtime.dll +0 -0
- data/lib/net-2.0/Antlr3.Runtime.dll.mdb +0 -0
- data/lib/net-2.0/Antlr3.Runtime.xml +3842 -0
- data/lib/net-2.0/Antlr3.Utility.XML +61 -0
- data/lib/net-2.0/Antlr3.Utility.dll +0 -0
- data/lib/net-2.0/Antlr3.Utility.dll.mdb +0 -0
- data/lib/net-2.0/StringTemplate.dll +0 -0
- data/lib/net-2.0/antlr.runtime.dll +0 -0
- metadata +81 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<doc>
|
3
|
+
<assembly>
|
4
|
+
<name>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
|
+
|
17
|
+
CharStream input = new ANTLRInputStream(Console.In);
|
18
|
+
TLexer lex = new TLexer(input);
|
19
|
+
CommonTokenStream tokens = new CommonTokenStream(lex);
|
20
|
+
TParser parser = new TParser(tokens);
|
21
|
+
TParser.e_return r = parser.e();
|
22
|
+
Tree t = (Tree)r.tree;
|
23
|
+
Console.Out.WriteLine(t.ToStringTree());
|
24
|
+
DOTTreeGenerator gen = new DOTTreeGenerator();
|
25
|
+
StringTemplate st = gen.ToDOT(t);
|
26
|
+
Console.Out.WriteLine(st);
|
27
|
+
|
28
|
+
</summary>
|
29
|
+
</member>
|
30
|
+
<member name="F:Antlr.Utility.Tree.DOTTreeGenerator.nodeToNumberMap">
|
31
|
+
<summary>
|
32
|
+
Track node to number mapping so we can get proper node name back
|
33
|
+
</summary>
|
34
|
+
</member>
|
35
|
+
<member name="F:Antlr.Utility.Tree.DOTTreeGenerator.nodeNumber">
|
36
|
+
<summary>
|
37
|
+
Track node number so we can get unique node names
|
38
|
+
</summary>
|
39
|
+
</member>
|
40
|
+
<member name="M:Antlr.Utility.Tree.DOTTreeGenerator.ToDOT(Antlr.Runtime.Tree.ITree)">
|
41
|
+
<summary>
|
42
|
+
Generate DOT (graphviz) for a whole tree not just a node.
|
43
|
+
For example, 3+4*5 should generate:
|
44
|
+
|
45
|
+
digraph {
|
46
|
+
node [shape=plaintext, fixedsize=true, fontsize=11, fontname="Courier",
|
47
|
+
width=.4, height=.2];
|
48
|
+
edge [arrowsize=.7]
|
49
|
+
"+"->3
|
50
|
+
"+"->"*"
|
51
|
+
"*"->4
|
52
|
+
"*"->5
|
53
|
+
}
|
54
|
+
|
55
|
+
Return the ST not a string in case people want to alter.
|
56
|
+
|
57
|
+
Takes a Tree interface object.
|
58
|
+
</summary>
|
59
|
+
</member>
|
60
|
+
</members>
|
61
|
+
</doc>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: antlr-net
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 84271
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 1
|
9
|
+
- 3
|
10
|
+
- 42154
|
11
|
+
version: 3.1.3.42154
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Terence Parr
|
15
|
+
- Johannes Luber
|
16
|
+
- Kunle Odutola
|
17
|
+
- Micheal Jordan
|
18
|
+
autorequire:
|
19
|
+
bindir: bin
|
20
|
+
cert_chain: []
|
21
|
+
|
22
|
+
date: 2010-08-27 00:00:00 -05:00
|
23
|
+
default_executable:
|
24
|
+
dependencies: []
|
25
|
+
|
26
|
+
description: |
|
27
|
+
ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages. ANTLR provides excellent support for tree construction, tree walking, translation, error recovery, and error reporting. There are currently about 5,000 ANTLR source downloads a month.
|
28
|
+
|
29
|
+
email: parrt@cs.usfca.edu
|
30
|
+
executables: []
|
31
|
+
|
32
|
+
extensions: []
|
33
|
+
|
34
|
+
extra_rdoc_files: []
|
35
|
+
|
36
|
+
files:
|
37
|
+
- lib/net-2.0/antlr.runtime.dll
|
38
|
+
- lib/net-2.0/Antlr3.Runtime.dll
|
39
|
+
- lib/net-2.0/Antlr3.Runtime.dll.mdb
|
40
|
+
- lib/net-2.0/Antlr3.Runtime.xml
|
41
|
+
- lib/net-2.0/Antlr3.Utility.dll
|
42
|
+
- lib/net-2.0/Antlr3.Utility.dll.mdb
|
43
|
+
- lib/net-2.0/Antlr3.Utility.XML
|
44
|
+
- lib/net-2.0/StringTemplate.dll
|
45
|
+
- lib/README.TXT
|
46
|
+
has_rdoc: true
|
47
|
+
homepage: http://www.antlr.org
|
48
|
+
licenses: []
|
49
|
+
|
50
|
+
post_install_message:
|
51
|
+
rdoc_options: []
|
52
|
+
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
version: "0"
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
hash: 3
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
version: "0"
|
73
|
+
requirements: []
|
74
|
+
|
75
|
+
rubyforge_project: antlr-net
|
76
|
+
rubygems_version: 1.3.7
|
77
|
+
signing_key:
|
78
|
+
specification_version: 3
|
79
|
+
summary: ANTLR.NET - ANother Tool for Language Recognition
|
80
|
+
test_files: []
|
81
|
+
|