add ir emitter
This commit is contained in:
@@ -31,11 +31,12 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp
|
||||
{
|
||||
public class TestRegexAnalyse
|
||||
public partial class TestRegexAnalyse
|
||||
{
|
||||
|
||||
private static string[] regexSource = [
|
||||
@@ -43,7 +44,7 @@ namespace StgSharp
|
||||
@"abc[0-9]x|abc[0-9]y|abd[0-9]x|abd[0-9]y|xyz",
|
||||
@"get_name|get_value|get_type|set_name|set_value|set_type",
|
||||
@"helix|hello|help|hero|hers|her",
|
||||
@"http|https|ftp|ftps"
|
||||
@"a*.[abc]*(abcd|a(bc)c)+(?<name>abc)"
|
||||
];
|
||||
|
||||
public static void Run()
|
||||
@@ -66,5 +67,8 @@ namespace StgSharp
|
||||
}
|
||||
}
|
||||
|
||||
[GeneratedRegex(@"a*.[abc]*(abcd|a(bc)c)+(?<name>abc)", RegexOptions.ExplicitCapture)]
|
||||
internal static partial Regex GetRegex();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user