lp:~pythonregexp2.7/python/issue2636-09-01-01

Created by TimeHorse and last modified

Often times, a label-goto block can be simulated with a while or do-while loop. Unsure if the single loop of the issue2636-09-01 branch would be sufficiently efficient, this attempts to simulate the original engine by using 3 while loops, one representing the main loop of SRE_MATCH, the others simulating the entrance and exit labels which represent the simulation of a recursive function call. It also uses two new state variables, good and restart, to control the loop while loops.

Get this branch:
bzr branch lp:~pythonregexp2.7/python/issue2636-09-01-01
Members of Python Regexp 2.7 can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Python Regexp 2.7
Project:
Python
Status:
Experimental

Recent revisions

39087. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

39086. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

39085. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Restored the proper code for the JUMP_BRANCH call the push a new
context onto the stack which seems to have survived in child branches
but have been lost here.

39084. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Backed out the RETURN_SUCCESS and RETURN_FAILURE removal and restored
those function calls because they ARE needed by the Triple-Loop code;
they set the loop flags in self.

39083. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

39082. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Removed unused Macros for the Pop and Push Context functions which
were removed in an earlier revision. Restored code that was
accidentally removed in an earlier release.

39081. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

39080. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

39079. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

39078. By Jeffrey C. "The TimeHorse" Jacobs <email address hidden>

Merged in changes from the Single-Loop Engine branch.

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 with rich root (needs bzr 1.0)
This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.