enum NodeTags {
INTCONST, FLOATCONST,
PRINT_OP, ADD_OP, SUB_OP,
PRINT_INT_OP, PRINT_FLOAT_OP,
ADD_INT_OP, ADD_FLOAT_OP,
SUB_INT_OP
};
typedef union ExpTreeNode {
struct {
int constTag;
int constVal;
} operand;
struct {
int binOp;
ExpTreeNode* leftTree;
ExpTreeNode* rightTree;
} binaryop;
struct {
int unOp;
ExpTreeNode* subTree;
} unaryop;
} ExpTree;
**************************************************************************************
typedef enum NodeTags {
INTCONST, FLOATCONST,
PRINT_OP, ADD_OP, SUB_OP,
PRINT_INT_OP, PRINT_FLOAT_OP,
ADD_INT_OP, ADD_FLOAT_OP,
SUB_INT_OP
}NodeTags;
typedef union ExpTreeNode {
struct {
int constTag;
int constVal;
} operand;
struct {
int binOp;
union ExpTreeNode* leftTree;
union ExpTreeNode* rightTree;
} binaryop;
struct {
int unOp;
union ExpTreeNode* subTree;
} unaryop;
} ExpTree;
vie mi niekto vysvetlit preco mi prvy kod v netbeanse vyhadzuje same errory a v codeblocks to prejde max s nejakym warningom? musel som to upravit tak ako je v druhom kode aby to compiler zobral. Nechapem ale preco nechce ten prvy kod zobrat???