GG EZ, ima go piss
This commit is contained in:
35
TermEngine/Program.cs
Normal file
35
TermEngine/Program.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace TermApp
|
||||
{
|
||||
class Program
|
||||
{
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
|
||||
Console.WriteLine("Hello, Works!");
|
||||
|
||||
CommandInterpreter interpreter = new CommandInterpreter();
|
||||
Console.WriteLine("Type help to see avaliable Commands :.) or type exit to quit");
|
||||
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
||||
Console.Write("Input >");
|
||||
string input = Console.ReadLine();
|
||||
if (string.IsNullOrWhiteSpace(input)) continue;
|
||||
if (input.ToLower() == "exit") break;
|
||||
|
||||
|
||||
interpreter.Execute(input);
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user