Started working on the CommandParser class

This commit is contained in:
Lukasz Baldyga committed 2020-10-07 23:46:50 +01:00
1 parent d2b5cceeca
commit fa70df2119
1 file changed
+67
@@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Advanced_Software_Engineering
{
class CommandParser
{
Graphics graphics;
List<Command> commands = new List<Command>();
void DrawCommands()
{
}
CommandParser(Graphics graphics)
{
this.graphics = graphics;
}
CommandParser(Graphics graphics, String rawCommands)
{
this.graphics = graphics;
this.ProcessCommands(rawCommands);
}
void AddCommand(Command command)
{
commands.Add(command);
}
void ProcessCommands(String rawCommands)
{
//ignore case
rawCommands = rawCommands.ToLower();
//isolate commands
String[] commands = rawCommands.Split(Environment.NewLine.ToCharArray());
}
}
class Command
{
}
class Verb
{
}
class Value
{
}
}