More breadcrumb improvements.
This commit is contained in:
parent
8b1533db1a
commit
2d618410b8
1 changed files with 10 additions and 3 deletions
11
main.c
11
main.c
|
@ -1061,12 +1061,16 @@ Lclearobj:
|
||||||
#ifdef GDEBUG
|
#ifdef GDEBUG
|
||||||
/* Needs to stay synced with enum word_type_t */
|
/* Needs to stay synced with enum word_type_t */
|
||||||
const char *types[] = {"NO_WORD_TYPE", "MOTION", "OBJECT", "ACTION", "NUMERIC"};
|
const char *types[] = {"NO_WORD_TYPE", "MOTION", "OBJECT", "ACTION", "NUMERIC"};
|
||||||
printf("Preserve: type1 = %s, id1 = %ld, type2 = %s, id2 = %ld\n",
|
/* needs to stay synced with enum speechpart */
|
||||||
|
const char *roles[] = {"unknown", "intransitive", "transitive"};
|
||||||
|
printf("Preserve: role = %s type1 = %s, id1 = %ld, type2 = %s, id2 = %ld\n",
|
||||||
|
roles[preserve.part],
|
||||||
types[preserve.word[0].type],
|
types[preserve.word[0].type],
|
||||||
preserve.word[0].id,
|
preserve.word[0].id,
|
||||||
types[preserve.word[1].type],
|
types[preserve.word[1].type],
|
||||||
preserve.word[1].id);
|
preserve.word[1].id);
|
||||||
printf("Command: type1 = %s, id1 = %ld, type2 = %s, id2 = %ld\n",
|
printf("Command: role = %s type1 = %s, id1 = %ld, type2 = %s, id2 = %ld\n",
|
||||||
|
roles[command.part],
|
||||||
types[command.word[0].type],
|
types[command.word[0].type],
|
||||||
command.word[0].id,
|
command.word[0].id,
|
||||||
types[command.word[1].type],
|
types[command.word[1].type],
|
||||||
|
@ -1175,6 +1179,9 @@ Lookup:
|
||||||
case GO_TOP:
|
case GO_TOP:
|
||||||
continue; /* back to top of main interpreter loop */
|
continue; /* back to top of main interpreter loop */
|
||||||
case GO_WORD2:
|
case GO_WORD2:
|
||||||
|
#ifdef GDEBUG
|
||||||
|
printf("Word shift\n");
|
||||||
|
#endif /* GDEBUG */
|
||||||
/* Get second word for analysis. */
|
/* Get second word for analysis. */
|
||||||
command.word[0] = command.word[1];
|
command.word[0] = command.word[1];
|
||||||
command.word[1] = empty_command_word;
|
command.word[1] = empty_command_word;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue