Hi I'm writing rpn calculator in C and I'd to compile rpn expression to byte-code. But I'm not sure what would be the data structure to represent them??? My stack data structure so far is
struct stack_t{
int type;
union {
double val;
char *str;
/* probably some more */
}u;
};