parsanol 1.3.57 → 1.3.58

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dac1ca6df26172acdc4f7a676c018d1a9cf6107f5a2b6643b1274cbd56ba3b8f
4
- data.tar.gz: bbeebb38922a236a170578538858e2f795e9da94679dd6c7a0cd81576d4542a7
3
+ metadata.gz: 7292980f1c51e8b7bdfa5f0133e252188f4e396d0ebb07a700f2738e0493df61
4
+ data.tar.gz: e49b88b8c6a0a7e34c85d7bc08c8dc611312c8d04f2716d12304b915a2f9791b
5
5
  SHA512:
6
- metadata.gz: 9170d4b42f82853d41741475abb92fe26f126fde281b4c1b2f31b6b6004dab21fa7a9a9a23b580b83c86f89978dd021767d5464c79080ef19d9ba68771cd7d23
7
- data.tar.gz: 633a3b087e6b6d6656e8ddd0db3c0548f6985ea72e43da51537a95d07c480957397b5fe6eda56b8651a2d302cb6b886b5661fc2446dfc4aceb2943a9c31ba2a5
6
+ metadata.gz: b2b9a04efacd3c121e78d76c1b01975b13e8c4293f603a8916ba47e1bff95ac4bb0d271ff4b90225bba7a79f62ab9676ac60e4134a5678ec7a989eb41e4301d5
7
+ data.tar.gz: 843380588585b6ec1ebd297cd5d4a85db361cf2acdc13ef7baac6f969a6fe2ce390bb836d46d77adf3212f94fac378ca1bbd6b1805daeaec2d1532c5d407ee44
@@ -241,6 +241,14 @@ module Parsanol
241
241
  value.raise
242
242
  end
243
243
 
244
+ if (marker = error.message.match(NATIVE_POS_MARKER))
245
+ source = Parsanol::Source.new(input)
246
+ cause = Parsanol::Cause.new(
247
+ error.message.sub(NATIVE_POS_MARKER, ""), source, marker[1].to_i
248
+ )
249
+ raise Parsanol::ParseFailed.new(cause.to_s, cause)
250
+ end
251
+
244
252
  source = Parsanol::Source.new(input)
245
253
  cause = Parsanol::Cause.new(error.message, source, source.bytepos)
246
254
  raise Parsanol::ParseFailed.new(cause.to_s, cause)
data/lib/parsanol/parg.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # The PARG compiler builds Parsanol atoms, so requiring "parsanol/parg"
4
+ # directly must also load the parsanol core.
5
+ require "parsanol"
6
+
3
7
  module Parsanol
4
8
  # PARG — the parsanol grammar language.
5
9
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parsanol
4
- VERSION = "1.3.57"
4
+ VERSION = "1.3.58"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsanol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.57
4
+ version: 1.3.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.