This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
parse yada-yada only as a statement
authorZefram <zefram@fysh.org>
Fri, 10 Nov 2017 02:07:46 +0000 (02:07 +0000)
committerZefram <zefram@fysh.org>
Fri, 10 Nov 2017 02:12:38 +0000 (02:12 +0000)
commit29d69c3c41c7e93f884256b1087face64d5fdd1e
tree5c0108ddd1fc112b404980837e6608abb8d6059b
parentc6fbd3534700ea217d0e7553adb13aaaf116c6a6
parse yada-yada only as a statement

Commit f5727a1c71878a34f6255eb1a506c0b21af7d36f tried to make yada-yada
be parsed consistently as a term expression, but actually things are
more complicated than that.  The tokeniser didn't accept yada-yada in
the right contexts to make it usable as an expression, and changing
that would require decisions on resolving ambiguities between yada-yada
and flip-flop.  It's also documented as being a statement rather than
an expression, though with some incorrect information about ambiguities.

Overall it looks more like the intent was for yada-yada to be a statement.
This commit makes it grammatically treated as such, and also fixes up
the dubious parts of the documentation.  [perl #132150]
perly.act
perly.h
perly.tab
perly.y
pod/perldelta.pod
pod/perlsyn.pod
t/op/yadayada.t
toke.c