Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 3, 2026

Summary

  • Refactors quantifier compilation to use "skip-retry" iteration pattern
  • When a pattern fails (even deep inside on a descendant), retries with next sibling
  • Adds compile_skip_retry_iteration and compile_skip_retry_iteration_no_exit helpers
  • Adds emit_wildcard_nav for navigating to next position with any-node match
  • Includes new test definitions_nested_capture for nested definition scenarios

Test plan

  • All existing tests pass (cargo test -p plotnik-lib)
  • Snapshot updates reviewed and accepted

@zharinov zharinov enabled auto-merge (squash) January 3, 2026 17:10
@zharinov zharinov merged commit ae93583 into master Jan 3, 2026
4 checks passed
@zharinov zharinov deleted the refactor/skip-retry-quantifiers branch January 3, 2026 17:11
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