add ir emitter

This commit is contained in:
Youmu Liu
2026-06-16 21:04:51 +08:00
parent 3cfd29f793
commit a7bb3209dd
9 changed files with 711 additions and 148 deletions
+6 -2
View File
@@ -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();
}
}