antlr4-runtime 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ec888a28668505439b0e3e2f068cd6318373095dee14c9ce0d7efc977abb159
4
- data.tar.gz: 828c1614048ee0b76c8ad1814ea8e373757071bf36bed66d66286272330d88dd
3
+ metadata.gz: 81778db9b70cdb6028d59d58a40844d8bad3148627d419b46979e337515cc086
4
+ data.tar.gz: 639383b67edeeea2835cddf7983a0ab97f66fc57504c8e44fac484e1ea7f6325
5
5
  SHA512:
6
- metadata.gz: c7c4ea5af9d828124b7fa34e43db1593c44653ca4900660c8743d9cd7871cbff9d12cf10a982006c95db41a77cf4622326d74cccf839e6a99c717a5461be6747
7
- data.tar.gz: b56c6dbf61b1ef856ffd72d80ebc38e1c7cde728519a9bc471861c533ba0e74d0c36a39a8d68c6978304c24c563e02f0445601afd26d753a9b97a299331ebe92
6
+ metadata.gz: 3434266c841e97cc217275e6554024bb1e87e9e154388b60d6e1faff8ab8b40319debcda08971c1e22cec2848c1b77eb7880b294856179fb1e22106f48edf832
7
+ data.tar.gz: '08853ab9606b697a76f33e2f8791324b12ccc3ac8843c1b668dbddee0d165265dbb44b1ce145c43e959638cd5b2dc6878fdd9d6f56761bcffb6cd46d24e67829'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.2.5
2
+ ===
3
+ - Bug fix in buffered_token_stream.rb
4
+ - Bug fix in common_token.rb
5
+
1
6
  0.2.4
2
7
  ===
3
8
  - Performance improvements and bug fixes from Cameron Dutro.
@@ -317,7 +317,7 @@ module Antlr4::Runtime
317
317
 
318
318
  def text4(start, stop)
319
319
  if !start.nil? && !stop.nil?
320
- return text2(Interval.of(start.index, stop.index))
320
+ return text2(Interval.of(start.token_index, stop.token_index))
321
321
  end
322
322
 
323
323
  ''
@@ -98,7 +98,7 @@ module Antlr4::Runtime
98
98
 
99
99
  type_string = type.to_s
100
100
  type_string = r.get_vocabulary.display_name(@type) unless r.nil?
101
- '[@' << token_index.to_s << ',' << @start.to_s << ':' << @stop.to_s << "='" << txt << "',<" << type_string << '>' << channel_str << ',' << @line.to_s << ':' << char_position_in_line.to_s << ']'
101
+ '[@' << @token_index.to_s << ',' << @start.to_s << ':' << @stop.to_s << "='" << txt << "',<" << type_string << '>' << channel_str << ',' << @line.to_s << ':' << @char_position_in_line.to_s << ']'
102
102
  end
103
103
 
104
104
  def to_s
@@ -119,7 +119,7 @@ module Antlr4::Runtime
119
119
 
120
120
  type_string = type.to_s
121
121
 
122
- '[@' << token_index.to_s << ',' << @start.to_s << ':' << @stop.to_s << "='" << txt << "',<" << type_string << '>' << channel_str << ',' << @line.to_s << ':' << char_position_in_line.to_s << ']'
122
+ '[@' << @token_index.to_s << ',' << @start.to_s << ':' << @stop.to_s << "='" << txt << "',<" << type_string << '>' << channel_str << ',' << @line.to_s << ':' << @char_position_in_line.to_s << ']'
123
123
  end
124
124
  end
125
125
  end
@@ -1,5 +1,5 @@
1
1
  module Antlr4
2
2
  module Runtime
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antlr4-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Walmsley