regex ir opt is almost done
This commit is contained in:
@@ -59,6 +59,8 @@ COUNT_SEQ(a,0,+inf,greedy)
|
||||
|
||||
3. a{1} -> a
|
||||
|
||||
完成
|
||||
|
||||
4. .\*a\*特征,优化为.*
|
||||
|
||||
完成,最优先
|
||||
@@ -67,6 +69,4 @@ COUNT_SEQ(a,0,+inf,greedy)
|
||||
MATCH_SEQ(aa...m个a....aa)
|
||||
COUNT_SEQ(a,0,n,greedy)
|
||||
|
||||
6. .*?a*$
|
||||
|
||||
7. 对于一般的.*?,应该将后续的所有东西全都放进一个巨大的try,code gen时使用最慢的一位一位offset直到直到第一个匹配rest的东西
|
||||
完成
|
||||
Reference in New Issue
Block a user