#include #include #include #include "xapp.h" #include "xapp.yy.h" long long result; /* Check if EXP_FRAC is compatible */ #if (1 << EXP_FRAC) != (1 << CHAR_BIT) * ((EXP_FULL + CHAR_BIT - 1) / CHAR_BIT) #error "Code needs to be modified to handle current EXP_FRAC!" #endif int main(int argc, char **argv) { TOKEN tokens[TOKENS]; char buffer[IO_BUFFER] = {'\0'}; /* Process input */ while (fgets(buffer, IO_BUFFER, stdin)) { /* Tokenize the line */ int count; if (count = tokenizeInput(buffer, tokens)) { /* Iterate through the tokens */ int i; for (i = 0; i < count; ++i) { int j, sign; const char *s = "", *p, *q; switch (tokens[i].type) { /* Process each _SET_V("