parsanol 1.3.43-x86_64-linux → 1.3.44-x86_64-linux
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/3.2/parsanol_native.so +0 -0
- data/lib/parsanol/3.3/parsanol_native.so +0 -0
- data/lib/parsanol/3.4/parsanol_native.so +0 -0
- data/lib/parsanol/4.0/parsanol_native.so +0 -0
- data/lib/parsanol/native/dynamic.rb +13 -4
- 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: 3462396a466396e4051285e9dfffad10efc49b495c3730018e360dc53765ce1e
|
|
4
|
+
data.tar.gz: f3a4f6478ef3efacfd17b3532c7b3b044f18154f94743525a916ee248294a254
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2fce0073aa484546216662e8cfa5752a94df0f38ccf2941851d4201634f936b352b6807bc5d6dcf3037caef723bfb1fb1c9e28262a87f1a750a1bf803129311
|
|
7
|
+
data.tar.gz: eea570245005ac91445440385e7cde74b56aabd5e5ec39934500220a90494a11bb588853849c4d4cbe4791eadf36b45352967ba5b9df9341929180dec8c10471
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -154,16 +154,25 @@ module Parsanol
|
|
|
154
154
|
|
|
155
155
|
return nil unless result
|
|
156
156
|
|
|
157
|
-
#
|
|
158
|
-
|
|
157
|
+
# Capture-write contract (GH-80): return the atom and the
|
|
158
|
+
# post-call captures hash; the Rust bridge diffs it against
|
|
159
|
+
# the seeded values and propagates the block's writes
|
|
160
|
+
# (ctx.captures[:k] = v) into the parse's capture state,
|
|
161
|
+
# where backtracking scopes discard them on branch failure.
|
|
162
|
+
[result, ctx.captures]
|
|
159
163
|
end
|
|
160
164
|
end
|
|
161
165
|
end
|
|
162
166
|
|
|
163
167
|
# Context object passed to dynamic callbacks
|
|
164
168
|
#
|
|
165
|
-
# Provides
|
|
166
|
-
#
|
|
169
|
+
# Provides access to the parsing context including input string,
|
|
170
|
+
# current position, and captured values. Capture READS see state
|
|
171
|
+
# set before the dynamic atom (capture atoms and earlier blocks'
|
|
172
|
+
# writes). Capture WRITES (ctx.captures[:k] = v) propagate into
|
|
173
|
+
# the parse's capture state and are visible to later blocks —
|
|
174
|
+
# and are discarded with the enclosing branch when backtracking
|
|
175
|
+
# fails it (parsanol-ruby#80).
|
|
167
176
|
#
|
|
168
177
|
# @example
|
|
169
178
|
# dynamic { |ctx|
|
data/lib/parsanol/version.rb
CHANGED