antlr4-runtime 0.2.2 → 0.2.3

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: 5165fac45561907bd5e9cde985579f737341e00a9be7ce3778702e8069c6bc01
4
- data.tar.gz: 84cc7c66ea621d2e44005b38fa0cf990789cac845521f8c9825a1f0b4df2492b
3
+ metadata.gz: f5f838157511ca399f3345a7ef863d975bfa314b384a9857988d1ba12b25dec7
4
+ data.tar.gz: 8a3cb7143cc24821b294a8b4b7057173cb7217c7b1fb5a522240152df3bdc7c5
5
5
  SHA512:
6
- metadata.gz: 4ec4d1b05f35fe1ce3fc9cd4478ab8ce70dad8457ff39310429839e48dbe4dc7bbd258f5fefc2caee95728c5353ccb8e1d01f26082dbb71b827d3b113c90b012
7
- data.tar.gz: c2ac519ccaadc6c7481a9a4d39b2c8a7542fb3726f934626d074e63195c20da28f6a5beef68ad5c49e983716d199a7dfbaf79e02d582f5306e0ed9256aceafd4
6
+ metadata.gz: bbb44e41cc7bea850e64cd865875f27b638893288b95aa42d632b992a15252b7b361697626fa8198491e7d3b38f32a808b2f4940e7a3aa3f9167151da52e6c46
7
+ data.tar.gz: e466a2d9d751c2d394d27f8b23d501d90c9f2608a46d8d017f25e4e6643566bc10741082c7ed0799322e6a3f4c80f653d0cb9c5644e67419423304950ba26db3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.3
2
+ ===
3
+ - Fixed a problem displaying error messages when parsing fails.
4
+
1
5
  0.2.2
2
6
  ===
3
7
  - Added a unit test for IntervalSet, fixed some bugs, removed some unused code, renamed `or_sets` to `or`.
@@ -75,7 +75,7 @@ module Antlr4::Runtime
75
75
  i = 0
76
76
  while i < n
77
77
  t = @token_source.next_token
78
- t.setTokenIndex(@tokens.length) if t.is_a? WritableToken
78
+ t.index = @tokens.length if t.is_a? WritableToken
79
79
  @tokens << t
80
80
  if t.type == Token::EOF
81
81
  @fetched_eof = true
@@ -303,7 +303,7 @@ module Antlr4::Runtime
303
303
  break if t.type == Token::EOF
304
304
 
305
305
  buf << t.text
306
- buf << i += 1
306
+ i += 1
307
307
  end
308
308
  buf
309
309
  end
@@ -1,6 +1,6 @@
1
1
  module Antlr4::Runtime
2
2
 
3
- class CommonToken
3
+ class CommonToken < WritableToken
4
4
 
5
5
  class << self
6
6
  @@EMPTY_SOURCE = OpenStruct.new
@@ -1,5 +1,5 @@
1
1
  module Antlr4
2
2
  module Runtime
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: antlr4-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Walmsley
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-11 00:00:00.000000000 Z
11
+ date: 2019-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake