You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<jnthn> nom: grammar a { token x { a }; token y { z }; rule TOP {
[<x>]? [b <y> || c] } }; say a.parse('a b z')
<p6eval> nom 327fc9: OUTPUT«=> <a b z> x => <a> y => <z>»
<jnthn> nom: grammar a { token x { a }; token y { z }; rule TOP {
[<x>]? [c || b <y>] } }; say a.parse('a b z')
<p6eval> nom 327fc9: OUTPUT«=> <a b z> y => <z>»
<jnthn> ah, there it is :(
<masak> jnthn: o.O
<jnthn> nom: grammar a { token x { a }; token y { z }; rule TOP { <x>
[c || b <y>] } }; say a.parse('a b z')
<p6eval> nom 327fc9: OUTPUT«=> <a b z> x => <a> y => <z>»
<jnthn> nom: grammar a { token x { a }; token y { z }; rule TOP {
[<x>]? [c || b <y>] } }; say a.parse('a b z')
<p6eval> nom 327fc9: OUTPUT«=> <a b z> y => <z>»
<jnthn> masak: You spot the issue?
<jnthn> Seems it needs an alternation that fails and a previously
quantified match.
<jnthn> masak: Feel free to RT that
* masak submits rakudobug
<masak> jnthn: I think I spot it. the order of rhs and lhs around '||'
affects captures.
<jnthn> yeah but only if the previous capture was quantified.
<masak> ah, right.
<masak> insidious.
<jnthn> masak: yeah, no fun to find
Migrated from rt.perl.org#107746 (status was 'resolved')
Searchable as RT107746$
The text was updated successfully, but these errors were encountered: