mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 00:56:31 +02:00
20 lines
355 B
C#
20 lines
355 B
C#
using System;
|
|
using System.IO;
|
|
|
|
using YesNt.Interpreter.Runtime;
|
|
|
|
if (args.Length == 1)
|
|
{
|
|
if (!File.Exists(args[0]))
|
|
{
|
|
Console.WriteLine("File not found: " + args[0]);
|
|
return;
|
|
}
|
|
|
|
YesNtInterpreter interpreter = new YesNtInterpreter();
|
|
interpreter.Execute(args[0]);
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("No path specified!");
|
|
} |