Skip to content

Commit

Permalink
Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierLiau committed Mar 13, 2024
1 parent 77d2c4d commit f5256e8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/seedu/binbash/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public Command parseCommand(String userInput) {
String arguments = tokens.length > 1 ? tokens[1] : "";

switch (commandString) {
case "delete":
return parseDeleteCommand(arguments);
case "list":
return parseListCommand(arguments);
default:
return null;
case "delete":
return parseDeleteCommand(arguments);
case "list":
return parseListCommand(arguments);
default:
return null;
}
}

Expand All @@ -42,3 +42,4 @@ private Command parseListCommand(String arguments) {
return new ListCommand(itemList);
}
}

0 comments on commit f5256e8

Please sign in to comment.