regex ir opt code on rewrite

This commit is contained in:
Youmu Liu
2026-06-25 19:52:11 +08:00
parent 45f9b04b6d
commit 5cd2b8b4ba
7 changed files with 281 additions and 185 deletions
+4
View File
@@ -55,10 +55,14 @@ FIND_SEQ(a, first)
MATCH_SEQ(a)
COUNT_SEQ(a,0,+inf,greedy)
完成
3. a{1} -> a
4. .\*a\*特征,优化为.*
完成,最优先
5. a{m,n}特征,展开为
MATCH_SEQ(aa...m个a....aa)
COUNT_SEQ(a,0,n,greedy)