-
Notifications
You must be signed in to change notification settings - Fork 0
/
program.cs
38 lines (37 loc) · 1.02 KB
/
program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Runtime.ExceptionServices;
using System.Text;
using System.Threading.Tasks;
namespace lang
{
internal class Program
{
static void Main(string[] args)
{
while (true)
{
Label:
Console.Write("Enter Command>");
String[] command = Console.ReadLine().Split(' ');
if (command[0] == "start")
{
if (command.Length == 1)
{
commander.MAIN("program.txt");
goto Label;
}
else
{
commander.MAIN(command[1]);
}
}else if (command[0] == "q" || command[0] == "quit" || command[0] == "e" || command[0] == "exit")
{
Environment.Exit(0);
}
}
}
}
}