(parser)
| 1363 | } |
| 1364 | } |
| 1365 | parseCommand(parser) { |
| 1366 | if (parser.matchOpToken("(")) { |
| 1367 | const commandElement2 = parser.requireElement("command"); |
| 1368 | parser.requireOpToken(")"); |
| 1369 | return commandElement2; |
| 1370 | } |
| 1371 | var commandDefinition = this.#commands[parser.currentToken().value || ""]; |
| 1372 | let commandElement; |
| 1373 | if (commandDefinition) { |
| 1374 | commandElement = commandDefinition(parser); |
| 1375 | } else if (parser.currentToken().type === "IDENTIFIER") { |
| 1376 | commandElement = parser.parseElement("pseudoCommand"); |
| 1377 | } |
| 1378 | if (commandElement) { |
| 1379 | return this.parseElement("indirectStatement", parser, commandElement); |
| 1380 | } |
| 1381 | return commandElement; |
| 1382 | } |
| 1383 | parseCommandList(parser) { |
| 1384 | if (parser.hasMore()) { |
| 1385 | var keyword = parser.currentToken().value; |
nothing calls this directly
no test coverage detected