EP 0.1.1 转换

This commit is contained in:
ninemine
2025-07-04 21:39:02 +08:00
parent 6806d90829
commit 6783429ab6
6 changed files with 134 additions and 67 deletions

View File

@@ -10,19 +10,15 @@ public class Program
{
static void Main(string[] args)
{
// Create a new SymbolizationContext
var context = new SymbolizationContext();
// Compile a script from a file
var toolFile = new ToolFile("example_script.txt");
var context = new SymbolizationRunner();
try
{
context.Compile(toolFile);
context.Compile("example_script.txt");
Console.WriteLine("Script compiled successfully.");
}
catch (FileNotFoundException ex)
{
Console.WriteLine($"Error: {ex.Message}");
toolFile.Create();
}
}
}