(parser)
| 1354 | } |
| 1355 | } |
| 1356 | parseCommand(parser) { |
| 1357 | if (parser.matchOpToken("(")) { |
| 1358 | const commandElement2 = parser.requireElement("command"); |
| 1359 | parser.requireOpToken(")"); |
| 1360 | return commandElement2; |
| 1361 | } |
| 1362 | var commandDefinition = this.#commands[parser.currentToken().value || ""]; |
| 1363 | let commandElement; |
| 1364 | if (commandDefinition) { |
| 1365 | commandElement = commandDefinition(parser); |
| 1366 | } else if (parser.currentToken().type === "IDENTIFIER") { |
| 1367 | commandElement = parser.parseElement("pseudoCommand"); |
| 1368 | } |
| 1369 | if (commandElement) { |
| 1370 | return this.parseElement("indirectStatement", parser, commandElement); |
| 1371 | } |
| 1372 | return commandElement; |
| 1373 | } |
| 1374 | parseCommandList(parser) { |
| 1375 | if (parser.hasMore()) { |
| 1376 | var keyword = parser.currentToken().value; |
nothing calls this directly
no test coverage detected