1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#define TOK_NONE 0 #define TOK_HEX 1 #define TOK_INT 2 #define TOK_NL 3 #define TOK_IF 4 #define TOK_LBR 5 #define TOK_RBR 6 #define TOK_STR 7 int dm_current_tok = TOK_NONE; #define CT(X) (dm_current_tok = TOK_##X;) CT(IF) CT(STR)