regex ir opt code rewriting, use over-again opt method
This commit is contained in:
@@ -117,7 +117,7 @@ namespace StgSharp.RegularAnalysis.Text
|
||||
|
||||
RegexIRGenerator groupIR = new();
|
||||
rightIR = GenerateIRRecursion(right, curDepth + 1);
|
||||
groupIR.EmitTry(rightIR.Count);
|
||||
groupIR.EmitMatchComplex(rightIR.Count);
|
||||
groupIR.EmitIRStream(rightIR);
|
||||
groupIR.EmitCondition(2, 1);
|
||||
groupIR.EmitPop(false);
|
||||
@@ -251,7 +251,7 @@ namespace StgSharp.RegularAnalysis.Text
|
||||
RegexIRGenerator cur_ir = casesIRList[^case_count];
|
||||
ir_count -= cur_ir.Count;
|
||||
case_count--;
|
||||
alt.EmitTry(cur_ir.Count);
|
||||
alt.EmitMatchComplex(cur_ir.Count);
|
||||
alt.EmitIRStream(cur_ir);
|
||||
alt.EmitCondition(1/* need to calc here */, 2);
|
||||
alt.EmitPop(true);
|
||||
|
||||
Reference in New Issue
Block a user