regex ir opt code rewrite gen2, window scanning
This commit is contained in:
@@ -36,6 +36,15 @@ using System.Text;
|
||||
|
||||
namespace StgSharp.RegularAnalysis.Abstraction
|
||||
{
|
||||
public interface ITrinitySyntaxNode<TNode, TLabel> : ISyntaxNode<TNode, TLabel>
|
||||
where TNode : ISyntaxNode<TNode, TLabel>
|
||||
where TLabel : unmanaged
|
||||
{
|
||||
|
||||
TNode Third { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public interface ISyntaxNode<TNode, TLabel> where TNode : ISyntaxNode<TNode, TLabel>
|
||||
where TLabel : unmanaged
|
||||
{
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace StgSharp.RegularAnalysis.Text
|
||||
break;
|
||||
}
|
||||
|
||||
if (TryFlatternCount(opt_win_sp, opt_ir)) { }
|
||||
if (TryFlattenCount(opt_win_sp, opt_ir)) { }
|
||||
} while (false);
|
||||
|
||||
index += process_count;
|
||||
@@ -150,7 +150,7 @@ namespace StgSharp.RegularAnalysis.Text
|
||||
|
||||
#endregion
|
||||
|
||||
private static bool TryFlatternCount(
|
||||
private static bool TryFlattenCount(
|
||||
Span<RegexIR> window,
|
||||
List<RegexIR> opt
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user