Skip to content

Conversation

@happy-barney
Copy link

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.

Branislav Zahradník added 5 commits October 22, 2025 20:48
forming sequence `KW_FOR remember` allowing simplification of following
sequences and merging branches.
Introduce new non-terminal to handle possible variants of for loop
cursors, allowing to reduce complexity of `bare_statement_for`.
and delete related `bare_statement_for` branch
Branislav Zahradník added 3 commits October 23, 2025 09:14
and delete related `bare_statement_for` branch
and delete related `bare_statement_for` branch
and delete related `bare_statement_for` branch
@happy-barney happy-barney changed the title perly - simplity non-terminal bare_statement_for perly - simplify non-terminal bare_statement_for Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant