add single ir generator methods

This commit is contained in:
Youmu Liu
2026-08-03 20:03:16 +08:00
parent 85ca22d1aa
commit 029092b438
7 changed files with 280 additions and 118 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ namespace StgSharp
{
foreach (string regex in regexSource)
{
TextRegexSource interpreterSource = RegexAnalyzer.Analyze(regex);
TextRegexSource interpreterSource = RegexAnalyzer.Analyze(regex, true, true);
AbstractSyntaxTree<RegexAstNode, RegexElementLabel> tree = interpreterSource.Ast;
Console.WriteLine($"result of \"{regex}\"");
TreeEnumerator<RegexAstNode, RegexElementLabel> enumerator = new(tree);