Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 7, 2026

Summary

  • Pass skip_exit to named node children compilation to bypass Up when Down fails
  • Fix star quantifier's first_iterate to use match_exit for internal retry exhaustion
  • Fix optional quantifier to emit null injection on retry exhaust path

Why

When a named node has zero children at runtime (e.g., identifier), Down navigation fails immediately. The skip path was still executing Up, ascending one level too high and breaking outer quantifier iteration.

This fix distinguishes between:

  • Down fails (childless node): bypass Up via skip_exit
  • Retry exhausts (Down succeeded, pattern fails): include Up via match_exit

@zharinov zharinov merged commit aaab053 into master Jan 7, 2026
4 checks passed
@zharinov zharinov deleted the fix/childless-node-navigation branch January 7, 2026 21:45
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.

2 participants