antlr4-runtime 0.2.7 → 0.2.8

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: 76468497514230c1b99d5112de202c0e9ac1804ff97a450929a0b504a954e9cc
4
- data.tar.gz: 46393abe3b4d67c4cc7c20295ea69477547d63a06ef1fdaf5b3334d1dea0b95d
3
+ metadata.gz: 245b28b3ff9464508be9cdd7421d5bb4db7255a841f812bf75956e7fb3787210
4
+ data.tar.gz: fd3addc862687ad9ab7a1421377e89dc35141abad04c9dad4007d1bc47896249
5
5
  SHA512:
6
- metadata.gz: 7d52bdf8810d66ed1b6d4606eb049688c0872c6e92585e3cef8c0cf918f3f1573f5f4fc3bfcf5c63a12e1a400fcdf811d9226001d39dc50a96b20b1da63c525e
7
- data.tar.gz: fccbe3ffd80843a92ec5c4c8b085d27cbca340f2845ffb68a46b69b9cdad04fdea0e54beea2b2f0cbf642ded2b0c62a97f1f5555cc1d49e36efc94a8246ebc07
6
+ metadata.gz: 8766b0cf6d15ec643ebebe0abf7cad7aef8386fb2a959189c96349f331719d74bd07d32f1fec747b96cda21fcdc564eb72001bb250b66771f50ba30319a16f71
7
+ data.tar.gz: b165e132a9c5f03371118eba4e92bdc2ac90629392b5b864dd0e72ec1bcd034c018fe5f686c5bb2f4efc94f2ef128442f25a70d9445a3a21284c10d89fcac2ee
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.8
2
+ ===
3
+ - Change certain error messages to match the format produced by the Java runtime.
4
+
1
5
  0.2.7
2
6
  ===
3
7
  - In C extension, move `for` loop variable declaration outside the loop - AWS didn't like it.
@@ -348,8 +348,8 @@ module Antlr4::Runtime
348
348
  end
349
349
 
350
350
  def to_string_from_vocabulary(vocabulary)
351
- buf = ''
352
- return 'end' if @intervals.nil? || @intervals.empty?
351
+ buf = '{'
352
+ return '{end}' if @intervals.nil? || @intervals.empty?
353
353
 
354
354
  buf << '' if size > 1
355
355
  i = 0
@@ -367,10 +367,10 @@ module Antlr4::Runtime
367
367
  j += 1
368
368
  end
369
369
  end
370
- buf << ', ' if i < @intervals.length
370
+ buf << ', ' if i < (@intervals.length - 1)
371
371
  i += 1
372
372
  end
373
- buf << 'end' if size > 1
373
+ buf << '}' if size > 1
374
374
  buf
375
375
  end
376
376
 
@@ -1,5 +1,5 @@
1
1
  module Antlr4
2
2
  module Runtime
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
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.7
4
+ version: 0.2.8
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-25 00:00:00.000000000 Z
11
+ date: 2019-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake