20 lines
264 B
C
20 lines
264 B
C
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
union element_type
|
|
{
|
|
int operand;
|
|
char operator;
|
|
};
|
|
|
|
enum element_tag {
|
|
TOKEN_OPERAND,
|
|
TOKEN_OPERATOR
|
|
};
|
|
|
|
struct expression_element {
|
|
enum element_tag tag;
|
|
union element_type data;
|
|
};
|
|
|
|
#endif /* ! UTILS_H */ |