()
| 999 | } |
| 1000 | |
| 1001 | function parse_ObjectVerbRequest() { |
| 1002 | var result0, result1, result2, result3, result4, result5, result6; |
| 1003 | var pos0, pos1; |
| 1004 | |
| 1005 | reportFailures++; |
| 1006 | pos0 = pos; |
| 1007 | pos1 = pos; |
| 1008 | if (input.substr(pos, 17).toLowerCase() === "what actions can ") { |
| 1009 | result0 = input.substr(pos, 17); |
| 1010 | pos += 17; |
| 1011 | } else { |
| 1012 | result0 = null; |
| 1013 | if (reportFailures === 0) { |
| 1014 | matchFailed("\"what actions can \""); |
| 1015 | } |
| 1016 | } |
| 1017 | if (result0 !== null) { |
| 1018 | result1 = parse_Token(); |
| 1019 | if (result1 !== null) { |
| 1020 | if (input.substr(pos, 3).toLowerCase() === " do") { |
| 1021 | result2 = input.substr(pos, 3); |
| 1022 | pos += 3; |
| 1023 | } else { |
| 1024 | result2 = null; |
| 1025 | if (reportFailures === 0) { |
| 1026 | matchFailed("\" do\""); |
| 1027 | } |
| 1028 | } |
| 1029 | if (result2 !== null) { |
| 1030 | result3 = parse_Preposition(); |
| 1031 | if (result3 !== null) { |
| 1032 | if (input.charCodeAt(pos) === 32) { |
| 1033 | result4 = " "; |
| 1034 | pos++; |
| 1035 | } else { |
| 1036 | result4 = null; |
| 1037 | if (reportFailures === 0) { |
| 1038 | matchFailed("\" \""); |
| 1039 | } |
| 1040 | } |
| 1041 | if (result4 !== null) { |
| 1042 | result5 = parse_Token(); |
| 1043 | if (result5 !== null) { |
| 1044 | if (input.charCodeAt(pos) === 63) { |
| 1045 | result6 = "?"; |
| 1046 | pos++; |
| 1047 | } else { |
| 1048 | result6 = null; |
| 1049 | if (reportFailures === 0) { |
| 1050 | matchFailed("\"?\""); |
| 1051 | } |
| 1052 | } |
| 1053 | result6 = result6 !== null ? result6 : ""; |
| 1054 | if (result6 !== null) { |
| 1055 | result0 = [result0, result1, result2, result3, result4, result5, result6]; |
| 1056 | } else { |
| 1057 | result0 = null; |
| 1058 | pos = pos1; |
no test coverage detected