fix(regex): preserve lexical branch-reset calls - #1069
Draft
fglock wants to merge 5 commits into
Draft
Conversation
Cover duplicate named branch-reset calls through Perl and Python spellings and absolute numeric branch-reset calls. The oracle passes under system Perl and forced Joni on both execution backends while exposing the temporary Java routing regression. Generated with [Codex](https://openai.com/codex/) Co-Authored-By: Codex <codex@openai.com>
Encode Perl 5.44 re_tests 2128-2130 directly in the forked Joni suite so each relative subexpression call must target its lexical branch-reset capture rather than the leftmost capture sharing that logical number. Generated with [Codex](https://openai.com/codex/) Co-Authored-By: Codex <codex@openai.com>
Record the physical capture visible when a backward relative subexpression call is parsed so branch-reset alternatives do not collapse onto the shared logical capture node. The analyser hookup and validation follow after its current owner releases the file. References dev/design/phase36-regex-parity.md. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Add an end-to-end Perl spelling reducer for the physical lexical target used by relative subexpression calls in later branch-reset alternatives. References dev/design/phase36-regex-parity.md. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Resolve backward relative subpattern calls to the physical capture visible at their parse location. Do not apply the logical-number multiplex recursion workaround when that exact lexical target is available, preserving captures already visible to the caller. References dev/design/phase36-regex-parity.md. Generated with [Codex](https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
make: warning-free in 3m28, 17 tasks, exit 0Stack
This draft is stacked on
fix/phase36-joni-multifold-ascii-strictat exactparent
6bfb6f1fd43f76650ddf54a5145a5ad2ab55130d.References
dev/design/phase36-regex-parity.md.