print out what relation is used

main
Øyvind Skaaden 2022-03-12 19:26:50 +01:00
parent a97b6602a0
commit c45131d029
1 changed files with 4 additions and 3 deletions

View File

@ -87,7 +87,8 @@ tree_print(node_t* root, stem head)
printf("─%s", node_string[root->type]); printf("─%s", node_string[root->type]);
if ( root->type == IDENTIFIER_DATA || if ( root->type == IDENTIFIER_DATA ||
root->type == STRING_DATA || root->type == STRING_DATA ||
root->type == EXPRESSION ) root->type == EXPRESSION ||
root->type == RELATION)
printf("(%s)", (char *) root->data); printf("(%s)", (char *) root->data);
else if (root->type == NUMBER_DATA) else if (root->type == NUMBER_DATA)
printf("(%ld)", *((int64_t *)root->data)); printf("(%ld)", *((int64_t *)root->data));