antlr3 1.6.3 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -169,7 +169,6 @@ class TestDebugGrammars < ANTLR3::Test::Functional
169
169
  ["consume_token", "2", "4", "default", "1", "2", "\"b\""],
170
170
  ["end_resync"],
171
171
  ["recognition_exception", "ANTLR3::Error::UnwantedToken", "2", "1", "2"],
172
- ["look", "1", "-1", "-1", "default", "0", "-1", "nil"],
173
172
  ["consume_token", "-1", "-1", "default", "0", "-1", "nil"],
174
173
  ["location", "3", "11"],
175
174
  ["exit_rule", @grammar_path, "a"],
@@ -152,6 +152,16 @@ class TestActionScopes < ANTLR3::Test::Functional
152
152
  grammar SpecialActionScopes;
153
153
  options { language=Ruby; }
154
154
 
155
+ @all::header {
156
+ \$all_header_files ||= []
157
+ \$all_header_files << File.basename( __FILE__ )
158
+ }
159
+
160
+ @all::footer {
161
+ \$all_footer_files ||= []
162
+ \$all_footer_files << File.basename( __FILE__ )
163
+ }
164
+
155
165
  @header {
156
166
  \$header_location = __LINE__
157
167
  \$header_context = self
@@ -162,7 +172,6 @@ class TestActionScopes < ANTLR3::Test::Functional
162
172
  \$footer_context = self
163
173
  }
164
174
 
165
-
166
175
  @module::head {
167
176
  \$module_head_location = __LINE__
168
177
  \$module_head_context = self
@@ -213,6 +222,11 @@ class TestActionScopes < ANTLR3::Test::Functional
213
222
  end
214
223
 
215
224
  example 'special action scope locations' do
225
+ $all_header_files.should include "SpecialActionScopesLexer.rb"
226
+ $all_header_files.should include "SpecialActionScopesParser.rb"
227
+ $all_footer_files.should include "SpecialActionScopesLexer.rb"
228
+ $all_footer_files.should include "SpecialActionScopesParser.rb"
229
+
216
230
  $header_location.should be < $module_head_location
217
231
  $module_head_location.should be < $token_scheme_location
218
232
  $token_scheme_location.should be < $token_members_location
@@ -43,7 +43,7 @@ class TestTreeNodeStream < Test::Unit::TestCase
43
43
  end
44
44
  end
45
45
 
46
- root_0 = @adaptor.create_flat_list!
46
+ root_0 = @adaptor.create_flat_list
47
47
  t = v.new(nil, 101, 2)
48
48
  u = v.new CommonToken.create(:type => 102, :text => '102')
49
49
  @adaptor.add_child(root_0, t)
@@ -614,8 +614,8 @@ class TestCommonTree < Test::Unit::TestCase
614
614
  end
615
615
 
616
616
  def test_become_root6
617
- root_0 = @adaptor.create_flat_list!
618
- root_1 = @adaptor.create_flat_list!
617
+ root_0 = @adaptor.create_flat_list
618
+ root_1 = @adaptor.create_flat_list
619
619
  root_1 = @adaptor.become_root( new_node( new_token 5 ), root_1 )
620
620
 
621
621
  @adaptor.add_child( root_1, new_node( new_token 6 ) )
@@ -686,7 +686,7 @@ class TestCommonTree < Test::Unit::TestCase
686
686
  t.add_child new_node( new_token 99, :text => 'c' )
687
687
  t.add_child new_node( new_token 99, :text => 'd' )
688
688
 
689
- new_children = @adaptor.create_flat_list!
689
+ new_children = @adaptor.create_flat_list
690
690
  new_children.add_child new_node( new_token 99, :text => 'x' )
691
691
  new_children.add_child new_node( new_token 99, :text => 'y' )
692
692
 
@@ -701,7 +701,7 @@ class TestCommonTree < Test::Unit::TestCase
701
701
  t.add_child new_node( new_token 99, :text => 'c' )
702
702
  t.add_child new_node( new_token 99, :text => 'd' )
703
703
 
704
- new_children = @adaptor.create_flat_list!
704
+ new_children = @adaptor.create_flat_list
705
705
  new_children.add_child new_node( new_token 99, :text => 'x' )
706
706
  new_children.add_child new_node( new_token 99, :text => 'y' )
707
707
 
@@ -716,7 +716,7 @@ class TestCommonTree < Test::Unit::TestCase
716
716
  t.add_child new_node( new_token 99, :text => 'c' )
717
717
  t.add_child new_node( new_token 99, :text => 'd' )
718
718
 
719
- new_children = @adaptor.create_flat_list!
719
+ new_children = @adaptor.create_flat_list
720
720
  new_children.add_child new_node( new_token 99, :text => 'x' )
721
721
  new_children.add_child new_node( new_token 99, :text => 'y' )
722
722
 
@@ -770,7 +770,7 @@ class TestCommonTree < Test::Unit::TestCase
770
770
  t.add_child new_node( new_token 99, :text => 'c' )
771
771
  t.add_child new_node( new_token 99, :text => 'd' )
772
772
 
773
- new_children = @adaptor.create_flat_list!
773
+ new_children = @adaptor.create_flat_list
774
774
  new_children.add_child new_node( new_token 99, :text => 'x' )
775
775
  new_children.add_child new_node( new_token 99, :text => 'y' )
776
776
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antlr3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Yetter
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-12 00:00:00 -05:00
12
+ date: 2010-05-16 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -81,8 +81,9 @@ files:
81
81
  - lib/antlr3/dfa.rb
82
82
  - lib/antlr3/profile.rb
83
83
  - lib/antlr3/template/parameter.rb
84
- - lib/antlr3/template/group-lexer.rb
85
- - lib/antlr3/template/group-parser.rb
84
+ - lib/antlr3/template/group-file.rb
85
+ - lib/antlr3/template/group-file-parser.rb
86
+ - lib/antlr3/template/group-file-lexer.rb
86
87
  - lib/antlr3/tree/visitor.rb
87
88
  - lib/antlr3/tree/debug.rb
88
89
  - lib/antlr3/tree/wizard.rb
@@ -144,12 +145,12 @@ files:
144
145
  - README.txt
145
146
  - ANTLR-LICENSE.txt
146
147
  - History.txt
147
- - Manifest.txt
148
148
  - java/antlr-full-3.2.1.jar
149
149
  - java/RubyTarget.java
150
150
  - Rakefile
151
+ - Manifest.txt
151
152
  has_rdoc: true
152
- homepage: http://github.com/ohboyohboyohboy/antlr3
153
+ homepage: http://www.ohboyohboyohboy.org/ruby-antlr
153
154
  licenses: []
154
155
 
155
156
  post_install_message: