(List<String> tokens)
| 109 | } |
| 110 | |
| 111 | public static Action parseAction(List<String> tokens) throws ParserException { |
| 112 | ActionType actionType = getActionType(tokens.get(0)); |
| 113 | if (tokens.size() > 1 && ":".equals(tokens.get(1))) { |
| 114 | return new Action(actionType, parseActionParameters(tokens.subList(2, tokens.size()))); |
| 115 | } |
| 116 | return new Action(actionType); |
| 117 | } |
| 118 | |
| 119 | public static int parseTime(List<String> tokens) throws ParserException, NumberFormatException { |
| 120 | int minutes = Integer.parseInt(tokens.get(0)); |