Make YesNtInterpreter usable as a library and add AddStatement method to be able to define custom statement

This commit is contained in:
Stone_Red
2026-03-04 19:40:46 +01:00
parent 9813426f06
commit 8e0abf155a
9 changed files with 83 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
using System;
using YesNt.Interpreter.Runtime;
if (args.Length == 1)
{
YesNtInterpreter interpreter = new YesNtInterpreter();
interpreter.Initialize();
interpreter.Execute(args[0]);
}
else
{
Console.WriteLine("No path specified!");
}
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<OutputType>Exe</OutputType>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\YesNt.Interpreter\YesNt.Interpreter.csproj" />
</ItemGroup>
</Project>