Regex: print instruction index in dump_regex
This commit is contained in:
parent
c8966ca701
commit
fb5243f710
|
@ -820,8 +820,10 @@ private:
|
|||
|
||||
void dump_regex(const CompiledRegex& program)
|
||||
{
|
||||
int count = 0;
|
||||
for (auto& inst : program.instructions)
|
||||
{
|
||||
printf(" %03d ", count++);
|
||||
switch (inst.op)
|
||||
{
|
||||
case CompiledRegex::Literal:
|
||||
|
|
Loading…
Reference in New Issue
Block a user