perl5 icon indicating copy to clipboard operation
perl5 copied to clipboard

perly - simplify non-terminal bare_statement_for

Open happy-barney opened this issue 1 month ago • 3 comments

By extracting various declarations of cursor variable(s) into dedicated non-terminal for statement now contains only 3 branches:

  • for (;;)
  • for ()
  • for cursor ()

with LALR(1) parser cursor cannot be empty -> it will produce conflict with for (;;) form.

  • This set of changes does not require a perldelta entry.

happy-barney avatar Oct 23 '25 04:10 happy-barney