EP 0.1.1 转换
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user