Private
Public Access
Removed comments from text
This commit is contained in:
1 parent
f104f3846c
commit
555de0b62b
1 file changed
+8
@@ -24,6 +24,14 @@ namespace Advanced_Software_Engineering {
|
|||||||
/// <param name="fullCommand">The command as a string</param>
|
/// <param name="fullCommand">The command as a string</param>
|
||||||
/// <returns>A IVerb that maches the command</returns>
|
/// <returns>A IVerb that maches the command</returns>
|
||||||
public static IVerb MakeVerb(Drawer drawer, string fullCommand) {
|
public static IVerb MakeVerb(Drawer drawer, string fullCommand) {
|
||||||
|
//Remove comments
|
||||||
|
string tmp = "";
|
||||||
|
foreach(char character in fullCommand) {
|
||||||
|
if (character == "@"[0]) break;
|
||||||
|
tmp += character;
|
||||||
|
}
|
||||||
|
fullCommand = tmp;
|
||||||
|
|
||||||
ValueStorage rootValueStorage = drawer.GetValueStorage();
|
ValueStorage rootValueStorage = drawer.GetValueStorage();
|
||||||
|
|
||||||
List<VerbChunk> verbChunks = drawer.verbChunks;
|
List<VerbChunk> verbChunks = drawer.verbChunks;
|
||||||
|
|||||||
Reference in new issue
Block a user