Listing 7

#include <stdio.h>

enum node_type {Error, Char, Int, Double, String};

typedef struct {
       enum node_type type;
       union {
              char c;
              int i;
              double d;
              char *s;
       } value;
} node;

void push(node);
node pop(void);

/* End of File */