parsanol 1.3.125-aarch64-linux → 1.3.126-aarch64-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/parg/compiler.rb +7 -3
- 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: 469d7b9dfb1cf9dd2233e11cf5afa05f0520302ca2de9e8f03516e56359a03d4
|
|
4
|
+
data.tar.gz: dd910cd797d6396499295dcea8b92d42f5421d220ad8e29981f492d2f23a1ad1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed437bb1664e82aea80c6caa0603bf95e2f87f2b67489d2c48998a67169ad774a3b9c4d6879f8bd24842101111520d04350dc4eb3a4cce2caa7a54c5e75acd96
|
|
7
|
+
data.tar.gz: 1be256e1960f5693715114cdb3050a5514a6db2c412eca7f5d4fe9b1c1ced1c930d467d3e70b79a130bbc9fd94f9f147e03f3dbc39563090333c25cbace69e18
|
|
@@ -632,8 +632,8 @@ module Parsanol
|
|
|
632
632
|
markers[literal] = node.a.to_sym if literal && !literal.strip.empty?
|
|
633
633
|
collect.call(@document.rules[node.a]) if @document.rules.key?(node.a)
|
|
634
634
|
when :alt, :seq then node.a.each { |b| collect.call(b) }
|
|
635
|
-
when :rep, :opt
|
|
636
|
-
when :pred then collect.call(node.b)
|
|
635
|
+
when :rep, :opt then collect.call(node.a)
|
|
636
|
+
when :cap, :pred then collect.call(node.b)
|
|
637
637
|
end
|
|
638
638
|
end
|
|
639
639
|
collect.call(@document.skip_declaration)
|
|
@@ -652,7 +652,11 @@ module Parsanol
|
|
|
652
652
|
case n.kind
|
|
653
653
|
when :lit then literal = n.a
|
|
654
654
|
when :seq, :alt then n.a.each { |c| walk.call(c) unless literal }
|
|
655
|
-
|
|
655
|
+
# :cap stores the capture NAME in `a` (a plain String) and the
|
|
656
|
+
# captured node in `b`; :pred stores its flag in `a`. Walking
|
|
657
|
+
# `a` on either crashes — descend through `b`.
|
|
658
|
+
when :rep, :opt then walk.call(n.a) unless literal
|
|
659
|
+
when :cap, :pred then walk.call(n.b) unless literal
|
|
656
660
|
end
|
|
657
661
|
end
|
|
658
662
|
walk.call(node)
|
data/lib/parsanol/version.rb
CHANGED