| 1142 | } |
| 1143 | |
| 1144 | static void guess_word(darray *arg, char *word) |
| 1145 | { |
| 1146 | int index; /* Current position in word */ |
| 1147 | int type; /* First letter of match part */ |
| 1148 | index = 1; /* Skip the initial blank */ |
| 1149 | |
| 1150 | do |
| 1151 | { |
| 1152 | if (isupper(word[index])) |
| 1153 | type = word[index] - 'A' + 1; |
| 1154 | else |
| 1155 | type = 0; |
| 1156 | |
| 1157 | index = find_rule(arg, word, index, Rules[type]); |
| 1158 | } |
| 1159 | |
| 1160 | while (word[index] != '\0'); |
| 1161 | } |
| 1162 | |
| 1163 | |
| 1164 | static int NRL(const char *s, int n, darray *phone) |