I quoted the relevant bits of perly.y and that file does indeed get processed by bison (see Makefile.SH and regen_perly.pl). "git grep -i pratt" finds 0 hits. Perhaps a "Pratt-style precedence parser" is used, but, if so, it seems quite weird that bison declarations of precedence are still included in the source code.
So, to me, it looks pretty likely that Perl's parsing of ?: is mostly how bison-style declared precedence works.
- tye
In reply to Re^5: Surprised by Perl parse of ternary operator (bison)
by tye
in thread Surprised by Perl parse of ternary operator
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |