antlr4-runtime 0.2.5 → 0.2.6

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: 81778db9b70cdb6028d59d58a40844d8bad3148627d419b46979e337515cc086
4
- data.tar.gz: 639383b67edeeea2835cddf7983a0ab97f66fc57504c8e44fac484e1ea7f6325
3
+ metadata.gz: 6b38d26d578cdb87243bc517696a46e60579291dfe769cd427e52b8ae2690066
4
+ data.tar.gz: 92670e50fd85ad230cab53372a62e3d1da6908a630a5e9a551ea21c4836e0ad3
5
5
  SHA512:
6
- metadata.gz: 3434266c841e97cc217275e6554024bb1e87e9e154388b60d6e1faff8ab8b40319debcda08971c1e22cec2848c1b77eb7880b294856179fb1e22106f48edf832
7
- data.tar.gz: '08853ab9606b697a76f33e2f8791324b12ccc3ac8843c1b668dbddee0d165265dbb44b1ce145c43e959638cd5b2dc6878fdd9d6f56761bcffb6cd46d24e67829'
6
+ metadata.gz: 24d29549a381961343ce63961e5897deab88691636ca8962faa00923a59153da08926074cf3584a96d450c1b942ad3974d916b79fef13a74ee3cc806b4f11a57
7
+ data.tar.gz: 5b61d46c92f92802cfafb8b07a5e98f4460d9a0d734f97ecd1e590c276f66610fb675185272a2f2a902fa82933f89037f5fde09242c79b289ee48ee7d15fab8a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.6
2
+ ===
3
+ - Minor bugs when reporting errors
4
+
1
5
  0.2.5
2
6
  ===
3
7
  - Bug fix in buffered_token_stream.rb
@@ -306,7 +306,7 @@ module Antlr4::Runtime
306
306
  break if t.type == Token::EOF
307
307
 
308
308
  buf << t.text
309
- buf << i += 1
309
+ i += 1
310
310
  end
311
311
  buf
312
312
  end
@@ -115,10 +115,6 @@ module Antlr4::Runtime
115
115
  # ATN states in SLL implies LL will also get nowhere.
116
116
  # If conflict in states that dip out, choose min since we
117
117
  # will get error no matter what.
118
- input.seek(start_index)
119
- alt = syn_valid_or_sem_invalid_alt_that_finished_decision_entry_rule(previous_d.configs, outer_ctx)
120
- return alt if alt != ATN::INVALID_ALT_NUMBER
121
-
122
118
  exc = NoViableAltException.new
123
119
  exc.recognizer = @parser
124
120
  exc.input = input
@@ -126,6 +122,11 @@ module Antlr4::Runtime
126
122
  exc.start_token = input.get(start_index)
127
123
  exc.offending_token = input.lt(1)
128
124
  exc.dead_end_configs = previous_d.configs
125
+
126
+ input.seek(start_index)
127
+ alt = syn_valid_or_sem_invalid_alt_that_finished_decision_entry_rule(previous_d.configs, outer_ctx)
128
+ return alt if alt != ATN::INVALID_ALT_NUMBER
129
+
129
130
  raise exc
130
131
  end
131
132
 
@@ -1,5 +1,5 @@
1
1
  module Antlr4
2
2
  module Runtime
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
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-23 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake