Сабж:
// SYMBOL
else if (strchr(",.:%$", CHAR_CURR) != NULL) {
char ch = CHAR_CURR;
TOK_COPY;
TOK_ZERO;
switch (ch) {
case ',': TOK_TYPE = TOK_SB_COMA; break;
case ':': TOK_TYPE = TOK_SB_COLN; break;
case '.': TOK_TYPE = TOK_SB_DOT; break;
case '%': TOK_TYPE = TOK_SB_AMP; break;
case '$': TOK_TYPE = TOK_SB_DOL; break;
}
printf("symbol\n");
}
Исходник: http://paste.debian.net/101460/
gcc main.c -o asm
Кормить этим: http://paste.debian.net/101461/
asm test.asm out.bin