antlr3 1.8.13 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/History.txt +9 -0
- data/Manifest.txt +115 -115
- data/bin/antlr4ruby +5 -0
- data/java/RubyTarget.java +97 -212
- data/java/antlr-full-3.5.jar +0 -0
- data/lib/antlr3/constants.rb +4 -8
- data/lib/antlr3/task.rb +2 -0
- data/lib/antlr3/test/functional.rb +1 -0
- data/lib/antlr3/token.rb +10 -1
- data/lib/antlr3/version.rb +4 -4
- data/rakefile +26 -26
- data/templates/AST.stg +40 -37
- data/templates/ASTParser.stg +20 -19
- data/templates/ASTTreeParser.stg +27 -27
- data/templates/Dbg.stg +9 -9
- data/templates/Ruby.stg +274 -205
- data/templates/ST.stg +8 -8
- data/test/functional/ast-output/hetero-nodes.rb +0 -1
- data/test/functional/debugging/debug-mode.rb +15 -15
- data/test/functional/debugging/rule-tracing.rb +4 -6
- data/test/functional/lexer/basic.rb +1 -1
- metadata +185 -218
- data/java/antlr-full-3.2.1.jar +0 -0
data/templates/ST.stg
CHANGED
@@ -44,18 +44,18 @@ return_value.template = <a.alt>
|
|
44
44
|
<endif>
|
45
45
|
>>
|
46
46
|
|
47
|
-
rewriteTemplateAltRest(a) ::=
|
47
|
+
rewriteTemplateAltRest(a) ::= <%
|
48
48
|
<if(a.pred)>
|
49
|
-
if <a.pred>
|
50
|
-
# <a.description>
|
51
|
-
return_value.template = <a.alt>
|
49
|
+
if <a.pred><\n>
|
50
|
+
# <a.description><\n>
|
51
|
+
return_value.template = <a.alt><\n>
|
52
52
|
<else>
|
53
|
-
e <! little hack to get if .. elsif .. else block right !>
|
54
|
-
# <a.description>
|
55
|
-
return_value.template = <a.alt>
|
53
|
+
e<\n> <! little hack to get if .. elsif .. else block right !>
|
54
|
+
# <a.description><\n>
|
55
|
+
return_value.template = <a.alt><\n>
|
56
56
|
end
|
57
57
|
<endif>
|
58
|
-
|
58
|
+
%>
|
59
59
|
|
60
60
|
replaceTextInLine() ::= <<
|
61
61
|
<if(TREE_PARSER)>
|
@@ -101,16 +101,16 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
101
101
|
lt_events.should_not be_empty
|
102
102
|
|
103
103
|
expected = [ "(enter_rule): rule=a",
|
104
|
-
"(location): line=3 position=
|
104
|
+
"(location): line=3 position=0",
|
105
105
|
"(enter_alternative): number=1",
|
106
106
|
"(location): line=3 position=5",
|
107
107
|
"(location): line=3 position=8",
|
108
|
-
"(location): line=3 position=
|
108
|
+
"(location): line=3 position=10",
|
109
109
|
"(exit_rule): rule=a" ]
|
110
110
|
found.should == expected
|
111
111
|
end
|
112
112
|
|
113
|
-
|
113
|
+
xexample 'debug-mode parser using a socket proxy to transmit events' do
|
114
114
|
grammar = %q<
|
115
115
|
grammar SocketProxy; // line 1
|
116
116
|
options {language=Ruby;} // line 2
|
@@ -140,7 +140,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
140
140
|
debugger.events.should == expected
|
141
141
|
end
|
142
142
|
|
143
|
-
|
143
|
+
xexample 'debug-mode parser events triggered by recognition errors' do
|
144
144
|
grammar = %q<
|
145
145
|
grammar RecognitionError;
|
146
146
|
options { language=Ruby; }
|
@@ -177,7 +177,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
177
177
|
debugger.events.should == expected
|
178
178
|
end
|
179
179
|
|
180
|
-
|
180
|
+
xexample 'debug-mode parser events triggered by semantic predicate evaluation' do
|
181
181
|
grammar = %q<
|
182
182
|
grammar SemPred;
|
183
183
|
options { language=Ruby; }
|
@@ -210,7 +210,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
210
210
|
debugger.events.should == expected
|
211
211
|
end
|
212
212
|
|
213
|
-
|
213
|
+
xexample 'debug-mode parser events triggered by recognizing a (...)+ block' do
|
214
214
|
grammar = %q<
|
215
215
|
grammar PositiveClosureBlock;
|
216
216
|
options { language=Ruby; }
|
@@ -281,7 +281,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
281
281
|
debugger.events.should == expected
|
282
282
|
end
|
283
283
|
|
284
|
-
|
284
|
+
xexample 'debug-mode parser events triggered by recognizing a (...)* block' do
|
285
285
|
grammar = %q<
|
286
286
|
grammar ClosureBlock;
|
287
287
|
options { language=Ruby; }
|
@@ -351,7 +351,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
351
351
|
debugger.events.should == expected
|
352
352
|
end
|
353
353
|
|
354
|
-
|
354
|
+
xexample 'debug-mode parser events triggered by a mismatched set error' do
|
355
355
|
grammar = %q<
|
356
356
|
grammar MismatchedSetError;
|
357
357
|
options { language=Ruby; }
|
@@ -388,7 +388,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
388
388
|
debugger.events.should == expected
|
389
389
|
end
|
390
390
|
|
391
|
-
|
391
|
+
xexample 'debug-mode parser block-location events for subrules' do
|
392
392
|
grammar = %q<
|
393
393
|
grammar Block;
|
394
394
|
options { language=Ruby; }
|
@@ -440,7 +440,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
440
440
|
debugger.events.should == expected
|
441
441
|
end
|
442
442
|
|
443
|
-
|
443
|
+
xexample 'debug-mode parser events triggered by a no viable alternative error' do
|
444
444
|
grammar = %q<
|
445
445
|
grammar NoViableAlt;
|
446
446
|
options { language=Ruby; }
|
@@ -486,7 +486,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
486
486
|
debugger.events.should == expected
|
487
487
|
end
|
488
488
|
|
489
|
-
|
489
|
+
xexample 'debug-mode parser block-location events triggered by rules' do
|
490
490
|
grammar = %q<
|
491
491
|
grammar RuleBlock;
|
492
492
|
options { language=Ruby; }
|
@@ -526,7 +526,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
526
526
|
debugger.events.should == expected
|
527
527
|
end
|
528
528
|
|
529
|
-
|
529
|
+
xexample 'debug-mode parser block-location events triggered by single-alternative rules' do
|
530
530
|
grammar = %q<
|
531
531
|
grammar RuleBlockSingleAlt;
|
532
532
|
options { language=Ruby; }
|
@@ -562,7 +562,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
562
562
|
debugger.events.should == expected
|
563
563
|
end
|
564
564
|
|
565
|
-
|
565
|
+
xexample 'debug-mode parser block-location events triggered by single-alternative subrules' do
|
566
566
|
grammar = %q<
|
567
567
|
grammar BlockSingleAlt;
|
568
568
|
options { language=Ruby; }
|
@@ -599,7 +599,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
599
599
|
debugger.events.should == expected
|
600
600
|
end
|
601
601
|
|
602
|
-
|
602
|
+
xexample 'debug-mode parser block-location events triggered by invoking a cyclic DFA for prediction' do
|
603
603
|
grammar = %q<
|
604
604
|
grammar DFA;
|
605
605
|
options { language=Ruby; }
|
@@ -666,7 +666,7 @@ class TestDebugGrammars < ANTLR3::Test::Functional
|
|
666
666
|
debugger.events.should == expected
|
667
667
|
end
|
668
668
|
|
669
|
-
|
669
|
+
xexample 'debug-mode AST-building parser events' do
|
670
670
|
grammar = %q/
|
671
671
|
grammar BasicAST;
|
672
672
|
options {
|
@@ -59,12 +59,10 @@ class TestRuleTracing < ANTLR3::Test::Functional
|
|
59
59
|
lexer = Traced::Lexer.new( '< 1 + 2 + 3 >' )
|
60
60
|
parser = Traced::Parser.new lexer
|
61
61
|
parser.a
|
62
|
-
lexer.traces.should ==
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
'>t__7!', '<t__7!'
|
67
|
-
]
|
62
|
+
lexer.traces.reject { | i | i =~ /t__/ }.should == %w(
|
63
|
+
>ws! <ws! >int! <int! >ws! <ws! >ws! <ws! >int! <int! >ws!
|
64
|
+
<ws! >ws! <ws! >int! <int! >ws! <ws!
|
65
|
+
)
|
68
66
|
parser.traces.should == [
|
69
67
|
'>a', '>synpred1_Traced', '<synpred1_Traced',
|
70
68
|
'>b', '>c', '<c', '>c', '<c', '>c', '<c', '<b', '<a'
|
@@ -416,7 +416,7 @@ class LexerTest009 < ANTLR3::Test::Functional
|
|
416
416
|
|
417
417
|
lexer.next_token
|
418
418
|
proc { lexer.next_token }.
|
419
|
-
should raise_error( ANTLR3::Error::
|
419
|
+
should raise_error( ANTLR3::Error::MismatchedSet ) do |exc|
|
420
420
|
exc.min.should == '0'
|
421
421
|
exc.max.should == '9'
|
422
422
|
exc.unexpected_type.should == 'a'
|
metadata
CHANGED
@@ -1,309 +1,276 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: antlr3
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 8
|
9
|
-
- 13
|
10
|
-
version: 1.8.13
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.9.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Kyle Yetter
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2013-07-17 00:00:00 Z
|
11
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
19
12
|
dependencies: []
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
This gem packages together a complete implementation of the majority of features
|
44
|
-
ANTLR provides for other language targets, such as Java and Python. It contains:
|
45
|
-
|
46
|
-
* A customized version of the latest ANTLR program, bundling all necessary
|
47
|
-
java code and templates for producing fully featured language recognition
|
48
|
-
in ruby code
|
49
|
-
|
50
|
-
* a ruby run-time library that collects classes used throughout the code that
|
51
|
-
ANTLR generates
|
52
|
-
|
53
|
-
* a wrapper script, `antlr4ruby', which executes the ANTLR command line tool
|
54
|
-
after ensuring the ANTLR jar is Java's class path
|
13
|
+
description: ! "Fully-featured ANTLR 3 parser generation for Ruby.\n\nANTLR (ANother
|
14
|
+
Tool for Language Recognition) is a tool that is used to generate\ncode for performing
|
15
|
+
a variety of language recognition tasks: lexing, parsing,\nabstract syntax tree
|
16
|
+
construction and manipulation, tree structure recognition,\nand input translation.
|
17
|
+
The tool operates similarly to other parser generators,\ntaking in a grammar specification
|
18
|
+
written in the special ANTLR metalanguage and\nproducing source code that implements
|
19
|
+
the recognition functionality.\n\nWhile the tool itself is implemented in Java,
|
20
|
+
it has an extensible design that\nallows for code generation in other programming
|
21
|
+
languages. To implement an\nANTLR language target, a developer may supply a set
|
22
|
+
of templates written in the\nStringTemplate (http://www.stringtemplate.org) language.\n\nANTLR
|
23
|
+
is currently distributed with a fairly limited Ruby target implementation.\nWhile
|
24
|
+
it does provide implementation for basic lexer and parser classes, the\ntarget does
|
25
|
+
not provide any implementation for abstract syntax tree\nconstruction, tree parser
|
26
|
+
class generation, input translation, or a number of\nthe other ANTLR features that
|
27
|
+
give the program an edge over traditional code\ngenerators.\n\nThis gem packages
|
28
|
+
together a complete implementation of the majority of features\nANTLR provides for
|
29
|
+
other language targets, such as Java and Python. It contains:\n\n* A customized
|
30
|
+
version of the latest ANTLR program, bundling all necessary\n java code and templates
|
31
|
+
for producing fully featured language recognition\n in ruby code\n\n* a ruby run-time
|
32
|
+
library that collects classes used throughout the code that\n ANTLR generates\n
|
33
|
+
\ \n* a wrapper script, `antlr4ruby', which executes the ANTLR command line tool\n
|
34
|
+
\ after ensuring the ANTLR jar is Java's class path"
|
55
35
|
email: kcy5b@yahoo.com
|
56
|
-
executables:
|
36
|
+
executables:
|
57
37
|
- antlr4ruby
|
58
38
|
extensions: []
|
59
|
-
|
60
39
|
extra_rdoc_files: []
|
61
|
-
|
62
|
-
files:
|
40
|
+
files:
|
63
41
|
- bin/antlr4ruby
|
64
|
-
- lib/antlr3/
|
65
|
-
- lib/antlr3/
|
42
|
+
- lib/antlr3/dot.rb
|
43
|
+
- lib/antlr3/error.rb
|
66
44
|
- lib/antlr3/dfa.rb
|
45
|
+
- lib/antlr3/debug.rb
|
46
|
+
- lib/antlr3/main.rb
|
47
|
+
- lib/antlr3/tree/debug.rb
|
67
48
|
- lib/antlr3/tree/wizard.rb
|
68
49
|
- lib/antlr3/tree/visitor.rb
|
69
|
-
- lib/antlr3/tree/debug.rb
|
70
|
-
- lib/antlr3/constants.rb
|
71
|
-
- lib/antlr3/version.rb
|
72
|
-
- lib/antlr3/streams.rb
|
73
|
-
- lib/antlr3/dot.rb
|
74
|
-
- lib/antlr3/profile.rb
|
75
|
-
- lib/antlr3/error.rb
|
76
|
-
- lib/antlr3/debug/rule-tracer.rb
|
77
50
|
- lib/antlr3/debug/record-event-listener.rb
|
78
|
-
- lib/antlr3/debug/
|
51
|
+
- lib/antlr3/debug/rule-tracer.rb
|
79
52
|
- lib/antlr3/debug/event-hub.rb
|
80
53
|
- lib/antlr3/debug/socket.rb
|
81
|
-
- lib/antlr3/
|
82
|
-
- lib/antlr3/
|
54
|
+
- lib/antlr3/debug/trace-event-listener.rb
|
55
|
+
- lib/antlr3/version.rb
|
56
|
+
- lib/antlr3/streams/interactive.rb
|
57
|
+
- lib/antlr3/streams/unicode.rb
|
58
|
+
- lib/antlr3/streams/rewrite.rb
|
59
|
+
- lib/antlr3/streams.rb
|
60
|
+
- lib/antlr3/tree.rb
|
61
|
+
- lib/antlr3/profile.rb
|
83
62
|
- lib/antlr3/task.rb
|
84
|
-
- lib/antlr3/template
|
63
|
+
- lib/antlr3/template.rb
|
64
|
+
- lib/antlr3/constants.rb
|
65
|
+
- lib/antlr3/token.rb
|
66
|
+
- lib/antlr3/modes/filter.rb
|
67
|
+
- lib/antlr3/modes/ast-builder.rb
|
68
|
+
- lib/antlr3/recognizers.rb
|
85
69
|
- lib/antlr3/template/group-file-parser.rb
|
70
|
+
- lib/antlr3/template/parameter.rb
|
86
71
|
- lib/antlr3/template/group-file-lexer.rb
|
87
72
|
- lib/antlr3/template/group-file.rb
|
88
|
-
- lib/antlr3/
|
89
|
-
- lib/antlr3/streams/unicode.rb
|
90
|
-
- lib/antlr3/streams/interactive.rb
|
91
|
-
- lib/antlr3/token.rb
|
92
|
-
- lib/antlr3/recognizers.rb
|
93
|
-
- lib/antlr3/modes/ast-builder.rb
|
94
|
-
- lib/antlr3/modes/filter.rb
|
95
|
-
- lib/antlr3/test/call-stack.rb
|
73
|
+
- lib/antlr3/util.rb
|
96
74
|
- lib/antlr3/test/grammar.rb
|
97
|
-
- lib/antlr3/test/functional.rb
|
98
75
|
- lib/antlr3/test/core-extensions.rb
|
99
|
-
- lib/antlr3/
|
76
|
+
- lib/antlr3/test/call-stack.rb
|
77
|
+
- lib/antlr3/test/functional.rb
|
100
78
|
- lib/antlr3.rb
|
79
|
+
- test/unit/test-exceptions.rb
|
80
|
+
- test/unit/test-trees.rb
|
101
81
|
- test/unit/test-scope.rb
|
102
|
-
- test/unit/
|
82
|
+
- test/unit/test-tree-wizard.rb
|
83
|
+
- test/unit/test-streams.rb
|
84
|
+
- test/unit/test-recognizers.rb
|
85
|
+
- test/unit/test-template.rb
|
103
86
|
- test/unit/sample-input/file-stream-1
|
87
|
+
- test/unit/sample-input/teststreams.input2
|
104
88
|
- test/unit/sample-input/template-group
|
105
|
-
- test/unit/test-template.rb
|
106
|
-
- test/unit/test-tree-wizard.rb
|
107
89
|
- test/unit/test-unicode-stream.rb
|
108
|
-
- test/unit/test-scheme.rb
|
109
|
-
- test/unit/test-trees.rb
|
110
|
-
- test/unit/test-streams.rb
|
111
90
|
- test/unit/test-dfa.rb
|
112
|
-
- test/unit/test-
|
113
|
-
- test/unit/test-exceptions.rb
|
114
|
-
- test/functional/ast-output/auto-ast.rb
|
115
|
-
- test/functional/ast-output/hetero-nodes.rb
|
116
|
-
- test/functional/ast-output/construction.rb
|
117
|
-
- test/functional/ast-output/rewrites.rb
|
118
|
-
- test/functional/ast-output/tree-rewrite.rb
|
119
|
-
- test/functional/token-rewrite/via-parser.rb
|
120
|
-
- test/functional/token-rewrite/basic.rb
|
121
|
-
- test/functional/main/main-scripts.rb
|
91
|
+
- test/unit/test-scheme.rb
|
122
92
|
- test/functional/tree-parser/basic.rb
|
123
|
-
- test/functional/parser/
|
124
|
-
- test/functional/parser/backtracking.rb
|
125
|
-
- test/functional/parser/properties.rb
|
126
|
-
- test/functional/parser/scopes.rb
|
127
|
-
- test/functional/parser/rule-methods.rb
|
93
|
+
- test/functional/parser/actions.rb
|
128
94
|
- test/functional/parser/predicates.rb
|
129
95
|
- test/functional/parser/calc.rb
|
130
96
|
- test/functional/parser/basic.rb
|
97
|
+
- test/functional/parser/rule-methods.rb
|
98
|
+
- test/functional/parser/properties.rb
|
99
|
+
- test/functional/parser/scopes.rb
|
100
|
+
- test/functional/parser/nuances.rb
|
101
|
+
- test/functional/parser/backtracking.rb
|
131
102
|
- test/functional/parser/ll-star.rb
|
132
|
-
- test/functional/parser/actions.rb
|
133
|
-
- test/functional/lexer/filter-mode.rb
|
134
|
-
- test/functional/lexer/nuances.rb
|
135
|
-
- test/functional/lexer/properties.rb
|
136
|
-
- test/functional/lexer/basic.rb
|
137
|
-
- test/functional/lexer/syn-pred.rb
|
138
|
-
- test/functional/lexer/xml.rb
|
139
103
|
- test/functional/debugging/rule-tracing.rb
|
140
104
|
- test/functional/debugging/profile-mode.rb
|
141
105
|
- test/functional/debugging/debug-mode.rb
|
106
|
+
- test/functional/main/main-scripts.rb
|
107
|
+
- test/functional/lexer/filter-mode.rb
|
108
|
+
- test/functional/lexer/basic.rb
|
109
|
+
- test/functional/lexer/properties.rb
|
110
|
+
- test/functional/lexer/xml.rb
|
111
|
+
- test/functional/lexer/nuances.rb
|
112
|
+
- test/functional/lexer/syn-pred.rb
|
113
|
+
- test/functional/ast-output/construction.rb
|
114
|
+
- test/functional/ast-output/hetero-nodes.rb
|
115
|
+
- test/functional/ast-output/tree-rewrite.rb
|
116
|
+
- test/functional/ast-output/auto-ast.rb
|
117
|
+
- test/functional/ast-output/rewrites.rb
|
142
118
|
- test/functional/delegation/import.rb
|
119
|
+
- test/functional/token-rewrite/basic.rb
|
120
|
+
- test/functional/token-rewrite/via-parser.rb
|
143
121
|
- test/functional/template-output/template-output.rb
|
144
|
-
- templates/ASTDbg.stg
|
145
122
|
- templates/Support.stg
|
123
|
+
- templates/ASTDbg.stg
|
124
|
+
- templates/ASTTreeParser.stg
|
146
125
|
- templates/ASTParser.stg
|
147
126
|
- templates/AST.stg
|
148
|
-
- templates/ASTTreeParser.stg
|
149
|
-
- templates/Dbg.stg
|
150
127
|
- templates/ST.stg
|
128
|
+
- templates/Dbg.stg
|
151
129
|
- templates/Ruby.stg
|
152
130
|
- samples/CPP.g
|
153
131
|
- samples/ANTLRv3Grammar.g
|
154
132
|
- samples/JavaScript.g
|
155
|
-
- samples/standard/treeparser/treeparser.rb
|
156
|
-
- samples/standard/treeparser/Lang.g
|
157
|
-
- samples/standard/treeparser/input
|
158
|
-
- samples/standard/treeparser/output
|
159
|
-
- samples/standard/treeparser/LangDumpDecl.g
|
160
|
-
- samples/standard/cminus/python.group
|
161
|
-
- samples/standard/cminus/CMinus.g
|
162
|
-
- samples/standard/cminus/input
|
163
|
-
- samples/standard/cminus/output
|
164
|
-
- samples/standard/cminus/bytecode.group
|
165
|
-
- samples/standard/cminus/java.group
|
166
|
-
- samples/standard/cminus/cminus.rb
|
167
|
-
- samples/standard/calc/Calculator.rb
|
168
|
-
- samples/standard/calc/Calculator.py
|
169
|
-
- samples/standard/calc/Calculator.g
|
170
|
-
- samples/standard/dynamic-scope/input
|
171
|
-
- samples/standard/dynamic-scope/dynamic-scopes.rb
|
172
|
-
- samples/standard/dynamic-scope/output
|
173
|
-
- samples/standard/dynamic-scope/DynamicScopes.g
|
174
|
-
- samples/standard/rakefile
|
175
133
|
- samples/standard/java/Java.g
|
176
|
-
- samples/standard/java/input
|
177
134
|
- samples/standard/java/output
|
135
|
+
- samples/standard/java/input
|
178
136
|
- samples/standard/java/java.rb
|
179
|
-
- samples/standard/
|
180
|
-
- samples/standard/
|
181
|
-
- samples/standard/
|
182
|
-
- samples/standard/
|
183
|
-
- samples/standard/
|
184
|
-
- samples/standard/
|
185
|
-
- samples/standard/
|
137
|
+
- samples/standard/xml/xml.rb
|
138
|
+
- samples/standard/xml/XML.g
|
139
|
+
- samples/standard/xml/output
|
140
|
+
- samples/standard/xml/input
|
141
|
+
- samples/standard/xml/README
|
142
|
+
- samples/standard/scopes/scopes.rb
|
143
|
+
- samples/standard/scopes/output
|
144
|
+
- samples/standard/scopes/input
|
145
|
+
- samples/standard/scopes/SymbolTable.g
|
186
146
|
- samples/standard/simplecTreeParser/SimpleCWalker.g
|
147
|
+
- samples/standard/simplecTreeParser/output
|
148
|
+
- samples/standard/simplecTreeParser/input
|
187
149
|
- samples/standard/simplecTreeParser/simplec.rb
|
188
|
-
- samples/standard/
|
150
|
+
- samples/standard/simplecTreeParser/SimpleC.g
|
151
|
+
- samples/standard/cminus/cminus.rb
|
152
|
+
- samples/standard/cminus/python.group
|
153
|
+
- samples/standard/cminus/output
|
154
|
+
- samples/standard/cminus/java.group
|
155
|
+
- samples/standard/cminus/input
|
156
|
+
- samples/standard/cminus/bytecode.group
|
157
|
+
- samples/standard/cminus/CMinus.g
|
158
|
+
- samples/standard/rakefile
|
159
|
+
- samples/standard/calc/Calculator.g
|
160
|
+
- samples/standard/calc/Calculator.py
|
161
|
+
- samples/standard/calc/Calculator.rb
|
162
|
+
- samples/standard/island-grammar/Javadoc.g
|
163
|
+
- samples/standard/island-grammar/output
|
189
164
|
- samples/standard/island-grammar/input
|
165
|
+
- samples/standard/island-grammar/island.rb
|
190
166
|
- samples/standard/island-grammar/Simple.g
|
191
|
-
- samples/standard/
|
192
|
-
- samples/standard/
|
193
|
-
- samples/standard/
|
194
|
-
- samples/standard/
|
195
|
-
- samples/standard/
|
196
|
-
- samples/standard/
|
197
|
-
- samples/standard/
|
198
|
-
- samples/standard/
|
199
|
-
- samples/standard/
|
200
|
-
- samples/standard/
|
167
|
+
- samples/standard/python/output
|
168
|
+
- samples/standard/python/PythonTokenSource.rb
|
169
|
+
- samples/standard/python/Python.g
|
170
|
+
- samples/standard/python/input
|
171
|
+
- samples/standard/python/python.rb
|
172
|
+
- samples/standard/treeparser/treeparser.rb
|
173
|
+
- samples/standard/treeparser/LangDumpDecl.g
|
174
|
+
- samples/standard/treeparser/output
|
175
|
+
- samples/standard/treeparser/Lang.g
|
176
|
+
- samples/standard/treeparser/input
|
201
177
|
- samples/standard/fuzzy/fuzzy.py
|
202
|
-
- samples/standard/fuzzy/fuzzy.rb
|
203
178
|
- samples/standard/fuzzy/FuzzyJava.g
|
204
|
-
- samples/standard/
|
205
|
-
- samples/standard/
|
206
|
-
- samples/standard/
|
207
|
-
- samples/standard/
|
208
|
-
- samples/standard/
|
209
|
-
- samples/standard/
|
179
|
+
- samples/standard/fuzzy/output
|
180
|
+
- samples/standard/fuzzy/input
|
181
|
+
- samples/standard/fuzzy/fuzzy.rb
|
182
|
+
- samples/standard/tweak/tweak.rb
|
183
|
+
- samples/standard/tweak/output
|
184
|
+
- samples/standard/tweak/Tweak.g
|
185
|
+
- samples/standard/tweak/input
|
186
|
+
- samples/standard/C/c.rb
|
187
|
+
- samples/standard/C/C__testrig.st
|
188
|
+
- samples/standard/C/C.g
|
189
|
+
- samples/standard/C/output
|
190
|
+
- samples/standard/C/input
|
191
|
+
- samples/standard/C/C.tokens
|
192
|
+
- samples/standard/dynamic-scope/output
|
193
|
+
- samples/standard/dynamic-scope/DynamicScopes.g
|
194
|
+
- samples/standard/dynamic-scope/input
|
195
|
+
- samples/standard/dynamic-scope/dynamic-scopes.rb
|
210
196
|
- samples/standard/LL-star/output
|
211
|
-
- samples/standard/LL-star/
|
197
|
+
- samples/standard/LL-star/input
|
212
198
|
- samples/standard/LL-star/ll-star.rb
|
199
|
+
- samples/standard/LL-star/LLStar.g
|
213
200
|
- samples/standard/hoisted-predicates/hoisted-predicates.rb
|
214
|
-
- samples/standard/hoisted-predicates/input
|
215
|
-
- samples/standard/hoisted-predicates/output
|
216
201
|
- samples/standard/hoisted-predicates/HoistedPredicates.g
|
217
|
-
- samples/standard/
|
218
|
-
- samples/standard/
|
219
|
-
- samples/standard/scopes/scopes.rb
|
220
|
-
- samples/standard/scopes/output
|
221
|
-
- samples/standard/python/Python.g
|
222
|
-
- samples/standard/python/input
|
223
|
-
- samples/standard/python/PythonTokenSource.rb
|
224
|
-
- samples/standard/python/output
|
225
|
-
- samples/standard/python/python.rb
|
226
|
-
- ANTLR-LICENSE.txt
|
202
|
+
- samples/standard/hoisted-predicates/output
|
203
|
+
- samples/standard/hoisted-predicates/input
|
227
204
|
- History.txt
|
205
|
+
- ANTLR-LICENSE.txt
|
228
206
|
- DEVELOPER-README.rdoc
|
229
207
|
- README.rdoc
|
230
|
-
- java/antlr-full-3.
|
208
|
+
- java/antlr-full-3.5.jar
|
231
209
|
- java/RubyTarget.java
|
232
210
|
- rakefile
|
233
211
|
- Manifest.txt
|
234
212
|
homepage: http://antlr.ohboyohboyohboy.org/
|
235
213
|
licenses: []
|
236
|
-
|
214
|
+
metadata: {}
|
237
215
|
post_install_message:
|
238
216
|
rdoc_options: []
|
239
|
-
|
240
|
-
require_paths:
|
217
|
+
require_paths:
|
241
218
|
- lib
|
242
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
- !ruby/object:Gem::Version
|
247
|
-
hash: 57
|
248
|
-
segments:
|
249
|
-
- 1
|
250
|
-
- 8
|
251
|
-
- 7
|
219
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ! '>='
|
222
|
+
- !ruby/object:Gem::Version
|
252
223
|
version: 1.8.7
|
253
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
segments:
|
260
|
-
- 0
|
261
|
-
version: "0"
|
262
|
-
requirements:
|
224
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - ! '>='
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: '0'
|
229
|
+
requirements:
|
263
230
|
- java
|
264
231
|
rubyforge_project: antlr3
|
265
|
-
rubygems_version:
|
232
|
+
rubygems_version: 2.0.3
|
266
233
|
signing_key:
|
267
|
-
specification_version:
|
234
|
+
specification_version: 4
|
268
235
|
summary: Fully-featured ruby parser generation for ANTLR version 3.
|
269
|
-
test_files:
|
236
|
+
test_files:
|
237
|
+
- test/unit/test-exceptions.rb
|
238
|
+
- test/unit/test-trees.rb
|
270
239
|
- test/unit/test-scope.rb
|
271
|
-
- test/unit/test-template.rb
|
272
240
|
- test/unit/test-tree-wizard.rb
|
273
|
-
- test/unit/test-unicode-stream.rb
|
274
|
-
- test/unit/test-scheme.rb
|
275
|
-
- test/unit/test-trees.rb
|
276
241
|
- test/unit/test-streams.rb
|
277
|
-
- test/unit/test-dfa.rb
|
278
242
|
- test/unit/test-recognizers.rb
|
279
|
-
- test/unit/test-
|
280
|
-
- test/
|
281
|
-
- test/
|
282
|
-
- test/
|
283
|
-
- test/functional/ast-output/rewrites.rb
|
284
|
-
- test/functional/ast-output/tree-rewrite.rb
|
285
|
-
- test/functional/token-rewrite/via-parser.rb
|
286
|
-
- test/functional/token-rewrite/basic.rb
|
287
|
-
- test/functional/main/main-scripts.rb
|
243
|
+
- test/unit/test-template.rb
|
244
|
+
- test/unit/test-unicode-stream.rb
|
245
|
+
- test/unit/test-dfa.rb
|
246
|
+
- test/unit/test-scheme.rb
|
288
247
|
- test/functional/tree-parser/basic.rb
|
289
|
-
- test/functional/parser/
|
290
|
-
- test/functional/parser/backtracking.rb
|
291
|
-
- test/functional/parser/properties.rb
|
292
|
-
- test/functional/parser/scopes.rb
|
293
|
-
- test/functional/parser/rule-methods.rb
|
248
|
+
- test/functional/parser/actions.rb
|
294
249
|
- test/functional/parser/predicates.rb
|
295
250
|
- test/functional/parser/calc.rb
|
296
251
|
- test/functional/parser/basic.rb
|
252
|
+
- test/functional/parser/rule-methods.rb
|
253
|
+
- test/functional/parser/properties.rb
|
254
|
+
- test/functional/parser/scopes.rb
|
255
|
+
- test/functional/parser/nuances.rb
|
256
|
+
- test/functional/parser/backtracking.rb
|
297
257
|
- test/functional/parser/ll-star.rb
|
298
|
-
- test/functional/parser/actions.rb
|
299
|
-
- test/functional/lexer/filter-mode.rb
|
300
|
-
- test/functional/lexer/nuances.rb
|
301
|
-
- test/functional/lexer/properties.rb
|
302
|
-
- test/functional/lexer/basic.rb
|
303
|
-
- test/functional/lexer/syn-pred.rb
|
304
|
-
- test/functional/lexer/xml.rb
|
305
258
|
- test/functional/debugging/rule-tracing.rb
|
306
259
|
- test/functional/debugging/profile-mode.rb
|
307
260
|
- test/functional/debugging/debug-mode.rb
|
261
|
+
- test/functional/main/main-scripts.rb
|
262
|
+
- test/functional/lexer/filter-mode.rb
|
263
|
+
- test/functional/lexer/basic.rb
|
264
|
+
- test/functional/lexer/properties.rb
|
265
|
+
- test/functional/lexer/xml.rb
|
266
|
+
- test/functional/lexer/nuances.rb
|
267
|
+
- test/functional/lexer/syn-pred.rb
|
268
|
+
- test/functional/ast-output/construction.rb
|
269
|
+
- test/functional/ast-output/hetero-nodes.rb
|
270
|
+
- test/functional/ast-output/tree-rewrite.rb
|
271
|
+
- test/functional/ast-output/auto-ast.rb
|
272
|
+
- test/functional/ast-output/rewrites.rb
|
308
273
|
- test/functional/delegation/import.rb
|
274
|
+
- test/functional/token-rewrite/basic.rb
|
275
|
+
- test/functional/token-rewrite/via-parser.rb
|
309
276
|
- test/functional/template-output/template-output.rb
|