antlr3 1.9.2 → 1.10.0

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmYwNTc3MWI2YTgyNzNkMTFlMjQ0YTExMTJlNWE0ZWE3MTAwMTRmMQ==
5
- data.tar.gz: !binary |-
6
- NjkyMzE4ZWFkNTM5ZGI5MGM0MjFiMmNhNTBkNDgzNWU5ZmVhODAwNQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NThiNmM1ZDUwM2ZjZDZhYTE1MzE1NzE0NjQzZjgyNmE1ZDgzMzJhZjYzZTNk
10
- N2NmOTVmNTExYWZiYjFmYTBlZDM1NjNkNWExNjA5ZWM4MGJiMTMwNWE2YzYx
11
- NDdmOWEzNjBmZjYzM2QwZTcwNDI0MTdhZmJjZDBlOGQwOWRmYjI=
12
- data.tar.gz: !binary |-
13
- ZDUxY2Q5ODZmMGNkNjllYzgyODI4ZmRjNzNmY2JmZGNkMGYzN2JiYTNkMGQ5
14
- MTliNzg2ZTUxMTk0NTg0YjFjZjkxZGQ4MmFjOWEyOGRjNDRlZGFmMzU2ZGJk
15
- ZmIzZGE3NjNjNWMzMjhlN2U1ZDM1OTRmOGExOTIxZWIwYzI4YWQ=
2
+ SHA1:
3
+ metadata.gz: 315085c0b68e03592c98d6792ad5470fe3b543a5
4
+ data.tar.gz: 16281baa841357dbb4c84e20d21adb1f5220d4bd
5
+ SHA512:
6
+ metadata.gz: d51655540bd5bd7361381db7a2f05d5b9d2a4bd1744021f3eb171e33273eedf8c0372746ee0f91acc6bfbe130a9f0698ceed4ae62f66ff47d4dbe185a2a7ad00
7
+ data.tar.gz: 91eaa9d58bceddf769476fd28dd8f924d97078f8d4de4e846faafb05c77db8548cc19223fc10bdfafc1fe95cffad8794662d612ccfe3718350f6f1902a21a1e4
Binary file
@@ -166,7 +166,7 @@ class DFA
166
166
  END
167
167
  end
168
168
 
169
- if RUBY_VERSION =~ /^1\.9/
169
+ if RUBY_VERSION =~ /^(?:1\.9|2\.)/
170
170
 
171
171
  def predict( input )
172
172
  mark = input.mark
@@ -385,7 +385,7 @@ class StringStream
385
385
  attr_reader :data
386
386
  attr_reader :string
387
387
 
388
- if RUBY_VERSION =~ /^1\.9/
388
+ if RUBY_VERSION =~ /^(?:1\.9|2\.)/
389
389
 
390
390
  # creates a new StringStream object where +data+ is the string data to stream.
391
391
  # accepts the following options in a symbol-to-value hash:
@@ -12,7 +12,7 @@ uses Readline (if available) or standard IO#gets to fetch data on demand.
12
12
 
13
13
  class InteractiveStringStream < StringStream
14
14
 
15
- if RUBY_VERSION =~ /^1\.9/
15
+ if RUBY_VERSION =~ /^(?:1\.9|2\.)/
16
16
 
17
17
  # creates a new StringStream object where +data+ is the string data to stream.
18
18
  # accepts the following options in a symbol-to-value hash:
@@ -5,7 +5,7 @@ require 'antlr3'
5
5
  require 'antlr3/test/core-extensions'
6
6
  require 'antlr3/test/call-stack'
7
7
 
8
- if RUBY_VERSION =~ /^1\.9/
8
+ if RUBY_VERSION =~ /^(?:1\.9|2\.)/
9
9
  require 'digest/md5'
10
10
  MD5 = Digest::MD5
11
11
  else
@@ -980,7 +980,7 @@ class CommonTreeNodeStream
980
980
  include TreeNodeStream
981
981
 
982
982
  attr_accessor :token_stream
983
- attr_reader :adaptor, :position
983
+ attr_reader :adaptor, :position, :last_marker
984
984
 
985
985
  def initialize( *args )
986
986
  options = args.last.is_a?( ::Hash ) ? args.pop : {}
@@ -19,8 +19,8 @@ module ANTLR3
19
19
  # The version data for the current state the library itself
20
20
  #
21
21
  MAJOR_VERSION = 1
22
- MINOR_VERSION = 9
23
- PATCH_VERSION = 2
22
+ MINOR_VERSION = 10
23
+ PATCH_VERSION = 0
24
24
  VERSION = [ MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION ]
25
25
  VERSION_STRING = VERSION.join( '.' ).freeze
26
26
 
@@ -59,7 +59,7 @@ placeAction(scope, name) ::= <<
59
59
  <endif>
60
60
  >>
61
61
 
62
- runtimeLibraryVersion() ::= "1.9.2"
62
+ runtimeLibraryVersion() ::= "1.10.0"
63
63
 
64
64
  /** The overall file structure of a recognizer; stores methods
65
65
  * for rules and cyclic DFAs plus support code.
@@ -123,7 +123,7 @@ class TestRuleVisibility < ANTLR3::Test::Functional
123
123
  END
124
124
 
125
125
  example 'using visibility modifiers on rules' do
126
- mname = RUBY_VERSION =~ /^1\.9/ ? proc { | n | n.to_sym } : proc { | n | n.to_s }
126
+ mname = RUBY_VERSION =~ /^(1\.9|2\.)/ ? proc { | n | n.to_sym } : proc { | n | n.to_s }
127
127
 
128
128
  RuleVisibility::Parser.public_instance_methods.should include( mname[ 'a' ] )
129
129
  RuleVisibility::Parser.protected_instance_methods.should include( mname[ 'c' ] )
@@ -103,13 +103,9 @@ shared_examples_for "template groups" do
103
103
  for name in TEMPLATE_NAMES
104
104
  @group.should respond_to( name )
105
105
  @group.should respond_to( "#{ name }!" )
106
- if RUBY_VERSION =~ /^1\.9/
107
- @group.private_instance_methods.should include name.to_sym
108
- @group.private_instance_methods.should include :"#{ name }!"
109
- else
110
- @group.private_instance_methods.should include name.to_s
111
- @group.private_instance_methods.should include "#{ name }!"
112
- end
106
+ private_method_names = @group.private_instance_methods.map { | m | m.to_s }
107
+ private_method_names.should include name.to_s
108
+ private_method_names.should include "#{ name }!"
113
109
  end
114
110
  end
115
111
 
metadata CHANGED
@@ -1,21 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antlr3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Yetter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-05 00:00:00.000000000 Z
11
+ date: 2013-09-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: ! 'Full power of Java''s ANTLR 3 language recognition tool brought to
14
- Ruby.
15
-
16
- Generate lexers, parsers, tree parsers, source translators, and language analysis
17
-
18
- tools for use in Ruby applications. '
13
+ description: "Full power of Java's ANTLR 3 language recognition tool brought to Ruby.\nGenerate
14
+ lexers, parsers, tree parsers, source translators, and language analysis\ntools
15
+ for use in Ruby applications. "
19
16
  email: kcy5b@yahoo.com
20
17
  executables:
21
18
  - antlr4ruby
@@ -203,16 +200,16 @@ require_paths:
203
200
  - lib
204
201
  required_ruby_version: !ruby/object:Gem::Requirement
205
202
  requirements:
206
- - - ! '>='
203
+ - - '>='
207
204
  - !ruby/object:Gem::Version
208
205
  version: 1.8.7
209
206
  required_rubygems_version: !ruby/object:Gem::Requirement
210
207
  requirements:
211
- - - ! '>='
208
+ - - '>='
212
209
  - !ruby/object:Gem::Version
213
210
  version: '0'
214
211
  requirements:
215
- - java
212
+ - java (>= v6)
216
213
  rubyforge_project: antlr3
217
214
  rubygems_version: 2.0.3
218
215
  signing_key: