New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bugs with nested ?? !! #246
Comments
From @obra- Awaiting parser improvements (PGE) |
From @chrisdolanOn Sat Aug 16 07:29:36 2008, jesse@perl.org wrote:
A simple, failing test: say True ?? 1 !! False ?? 2 !! 3; (says 2, should say 1) |
The RT System itself - Status changed from 'new' to 'open' |
From @chrisdolanAttached is a very simple patch that solves the problem, but I've only |
From @chrisdolanternary.patchIndex: languages/perl6/src/parser/grammar-oper.pg
===================================================================
--- languages/perl6/src/parser/grammar-oper.pg (revision 32593)
+++ languages/perl6/src/parser/grammar-oper.pg (working copy)
@@ -135,7 +135,7 @@
{ ... }
## conditional
-proto ternary:<?? !!> is precedence('j=') is pasttype('if') { ... }
+proto ternary:<?? !!> is precedence('j=') is pasttype('if') is assoc('right') { ... }
## item assignment
proto infix:<:=> is precedence('i=') is pasttype('bind') { ... }
|
From @pmichaudOn Wed Nov 12 23:00:38 2008, chrisdolan wrote:
I am truly impressed -- this particular approach to solving the problem Patch applied (r32618), thanks! Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#57980 (status was 'resolved')
Searchable as RT57980$
The text was updated successfully, but these errors were encountered: