regex ir opt code on rewrite
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user