vteteour
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#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 */
|
||||
Reference in New Issue
Block a user