Hey guys, I'm trying simply to print the property called "NodeKind" within my syntax tree. It's declared as such:
Every node in my tree has a "kind" pointer. But when I try to use the following print statement, nothing is printed:Code:typedef enum {VarK,IdK,OpK,ConstK,ComK} NodeKind;
Is there a special way to print out special types like this? Thanks to anyone for any help!Code:printf("%s", ptree->kind);