regex ir emitter is working

This commit is contained in:
Youmu Liu
2026-06-18 19:20:14 +08:00
parent 8114ef4bf3
commit 062ffacf88
@@ -136,13 +136,8 @@ namespace StgSharp.RegularAnalysis.TextRegex
{ {
// no seq, invalid count operator // no seq, invalid count operator
0 => throw new InvalidOperationException("Count operator must have a sequence to operate on"), 0 => throw new InvalidOperationException("Count operator must have a sequence to operate on"),
1 => right,// right seq
// right seq 2 => left,// left seq
1 => right,
// left seq
2 => left,
// both sides, invalid count operator // both sides, invalid count operator
3 => throw new InvalidOperationException("Count operator cannot have two sequences to operate on"), 3 => throw new InvalidOperationException("Count operator cannot have two sequences to operate on"),
_ => throw new InvalidOperationException("Unexpected sequence mask for count operator"), _ => throw new InvalidOperationException("Unexpected sequence mask for count operator"),