(List<String> tokens)
| 24 | public Parser() {} |
| 25 | |
| 26 | public MatchDataElement parseTokenList(List<String> tokens) throws ParserException { |
| 27 | ParserUtil.checkMissingTokens(tokens.size(), 0, "TTN statement or directive"); |
| 28 | if (":".equals(tokens.get(0))) { |
| 29 | return ParserUtil.parseDirective(tokens); |
| 30 | } |
| 31 | return ParserUtil.parseStatement(tokens); |
| 32 | } |
| 33 | |
| 34 | public List<MatchDataElement> parse(List<String> lines) throws ParserException { |
| 35 | return lines.stream().map(line -> { |