MCPcopy Create free account
hub / github.com/atas76/openengine / parseTokenList

Method parseTokenList

src/main/java/org/ttn/parser/Parser.java:26–32  ·  view source on GitHub ↗
(List<String> tokens)

Source from the content-addressed store, hash-verified

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 -> {

Callers 15

parseMethod · 0.95
testParseKickOffMethod · 0.80
testThrowInBlockMethod · 0.80
testCornerKickBlockMethod · 0.80
defaultExecutionMethod · 0.80
testBallControlMethod · 0.80

Calls 4

checkMissingTokensMethod · 0.95
parseDirectiveMethod · 0.95
parseStatementMethod · 0.95
equalsMethod · 0.45

Tested by 15

testParseKickOffMethod · 0.64
testThrowInBlockMethod · 0.64
testCornerKickBlockMethod · 0.64
defaultExecutionMethod · 0.64
testBallControlMethod · 0.64