Home | History | Annotate | Download | only in src

Lines Matching full:atok

258     arc_token* atok;
264 for (atok = atoken_start; atok; atok = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->next_token_index))
267 printf("%strying arc %d %p ilabel%d(%s) olabel %d\n", spaces(debug_depth), atok-debug_base_arc_token, atok,
268 atok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel);
273 if (atok->ilabel < semgraph->ilabels->num_slots && atok->ilabel != WORD_EPSILON_LABEL &&
274 wordmap_whether_in_rule(semgraph->ilabels, *currentWord, atok->ilabel))
276 /* atok->ilabel is the slotid */
277 atok_use = arc_tokens_find_ilabel(semgraph->arc_token_list, semgraph->arcs_for_slot[atok->ilabel], *currentWord);
281 PLogError(L("ESR_INVALID_STATE: finding wdid %d in slot %d"), *currentWord, atok->ilabel);
282 for (a = semgraph->arcs_for_slot[atok->ilabel]; 0 && a; a = ARC_TOKEN_PTR(semgraph->arc_token_list, a->next_token_index))
291 else if (*currentWord != MAXwordID && atok->ilabel == *currentWord)
294 atok_use = atok;
296 else if (atok->ilabel == WORD_EPSILON_LABEL) /* more eps transitions */
297 atok_use = atok;
302 arc_token* atokfna = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->first_next_arc);
306 printf("%smatched arc %d %p ilabel%d(%s) olabel %d\n", spaces(debug_depth), atok-debug_base_arc_token, atok,
307 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel);
315 if (atok->first_next_arc == ARC_TOKEN_NULL && *currentWord == MAXwordID)
348 printf("%sdone trying arc %d %p ilabel%d(%s) olabel %d\n", spaces(debug_depth), atok-debug_base_arc_token, atok,
349 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel);
351 } /* end for atok .. */
365 arc_token* atok;
371 for (atok = atoken_start; atok; atok = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->next_token_index))
374 printf("%strying arc %d %p ilabel%d(%s) olabel %d\n", spaces(debug_depth), atok-debug_base_arc_token, atok,
375 atok->ilabel, atok->ilabel!=MAXwordID?semgraph->ilabels->words[atok->ilabel]:"max", atok->olabel);
382 if (atok->ilabel < semgraph->ilabels->num_slots && atok->ilabel != WORD_EPSILON_LABEL &&
383 wordmap_whether_in_rule(semgraph->ilabels, wdID, atok->ilabel))
385 /* atok->ilabel is the slotid */
386 atok_use = arc_tokens_find_ilabel(semgraph->arc_token_list, semgraph->arcs_for_slot[atok->ilabel], wdID);
390 PLogError(L("ESR_INVALID_STATE: finding wdid %d in slot %d"), wdID, atok->ilabel);
391 for (a = semgraph->arcs_for_slot[atok->ilabel]; 0 && a; a = ARC_TOKEN_PTR(semgraph->arc_token_list, a->next_token_index))
402 else if (wdID != MAXwordID && atok->ilabel == wdID)
406 atok_use = atok;
408 else if (atok->ilabel == WORD_EPSILON_LABEL) /* more eps transitions */
409 atok_use = atok;
414 arc_token* atokfna = ARC_TOKEN_PTR(semgraph->arc_token_list, atok->first_next_arc);
418 printf("%smatched arc %d %p ilabel%d(%s) olabel %d\n", spaces(debug_depth), atok-debug_base_arc_token, atok,
419 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel);
426 if (atok->first_next_arc==ARC_TOKEN_NULL && *transp==0)
459 printf("%sdone trying arc %d %p ilabel%d(%s) olabel %d\n", spaces(debug_depth), atok-debug_base_arc_token, atok,
460 atok->ilabel, semgraph->ilabels->words[atok->ilabel], atok->olabel);
462 } /* end for atok .. */
1239 arc_token* atok;
1247 atok = p->arc_for_pp;
1248 if (atok == NULL)
1250 else if (atok->ilabel == WORD_EPSILON_LABEL && atok->olabel == WORD_EPSILON_LABEL)
1252 else if (atok->olabel != WORD_EPSILON_LABEL)
1255 word = lookUpWord(semgraph, atok->olabel);