parsanol 1.3.48 → 1.3.49
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 +4 -4
- data/lib/parsanol/atoms/context.rb +4 -1
- data/lib/parsanol/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ba1ff94687c90184c892c44b7d301e66edb31a2d945323efd2a0ad82a26be21
|
|
4
|
+
data.tar.gz: '05090e440ad8c351564c9effb8057f4bb4e96da3405eb3502eb72501328f8ff2'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9259f394a917e14cb96f56d9b4de1bb7427231abe232dec3e469cfb777cf01482cb0263647cb6a7e64e66b344a1852b48b3d6fed959f736fc591075b091042b7
|
|
7
|
+
data.tar.gz: d094de19cb2781dcb69aecbbfd1c46d6c3307be63deb6f9979330427346e21b13573ee97ec2da04207f85c3b0027617e1cab4e94a46bfcaefa9644e18336058d
|
|
@@ -50,7 +50,10 @@ module Parsanol
|
|
|
50
50
|
adaptive_cache_threshold: nil,
|
|
51
51
|
parser_class: nil)
|
|
52
52
|
# Core memoization cache: position -> { atom_id -> [result, advance] }
|
|
53
|
-
|
|
53
|
+
# Auto-vivifying sub-hashes: a probe-phase position can reach the
|
|
54
|
+
# active-path lookup before any entry exists at that position
|
|
55
|
+
# (parsanol-ruby#122 — NoMethodError on nil under fresh positions).
|
|
56
|
+
@memo = Hash.new { |hash, pos| hash[pos] = {} }
|
|
54
57
|
|
|
55
58
|
# Error reporting delegate
|
|
56
59
|
@reporter = error_reporter
|
data/lib/parsanol/version.rb
CHANGED