synonyms, and take all command

This commit is contained in:
jslightham
2019-05-29 10:56:22 -04:00
parent 2d40e5954a
commit bad3490b1e
6 changed files with 90 additions and 6 deletions

View File

@@ -52,6 +52,7 @@ class Parser {
words.add(tokenizer.nextToken());
}
for(int i=0; i<words.size(); i++) {
words.set(i, CommandWords.replaceSynonym(words.get(i)));
if(words.get(i).equals("open") || words.get(i).equals("unlock")) {
open = true;
}