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

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