Annotation of capa/capa51/pProj/lex_debug.h, revision 1.1.1.1
1.1 albertel 1: /* copyrighted by Isaac Tsai 1996, 1997, 1998, 1999 */
2:
3: #define PR(xxx) { switch(xxx) { \
4: case HINT_LINE: printf("[HINT]"); break; \
5: case EXPLAIN_LINE: printf("[EXPLAIN]"); break; \
6: case IMPORT_LINE: printf("[IMPORT]"); break; \
7: case CAPA_LET: printf("[LET]"); break; \
8: case CAPA_DEF: printf("[DEF]"); break; \
9: case CAPA_DIS: printf("[DIS"); break; \
10: case CAPA_MAP: printf("[MAP"); break; \
11: case CAPA_ANS: printf("[ANS]"); break; \
12: case CAPA_END: printf("[QUIT]"); break; \
13: case CAPA_FIG: printf("[FIG]"); break; \
14: case TEXT_LINE: printf("[TEXT]"); break; \
15: case R_CONSTANT: printf("[REAL]"); break; \
16: case I_CONSTANT: printf("[INTEGER]"); break; \
17: case S_CONSTANT: printf("[STRING]"); break; \
18: case IDENTIFIER: printf("[IDENTIFIER]"); break; \
19: case FUNCTION_ID: printf("[FUNCTION]"); break; \
20: case CAPA_VAR: printf("[VAR!"); break; \
21: case CAPA_ESC: printf("[ESC]"); break; \
22: case ANS_SIG: printf("[SIG]"); break; \
23: case ANS_COMPARE: printf("[STR]"); break; \
24: case ANS_TOLERANCE: printf("[TOLERANCE]"); break; \
25: case ANS_WEIGHT: printf("[WEIGHT]"); break; \
26: case ANS_PLUS: printf("[PLUS]"); break; \
27: case ANS_MINUS: printf("[MINUS]"); break; \
28: case ANS_CS: printf("[CS]"); break; \
29: case ANS_CI: printf("[CI]"); break; \
30: case ANS_MC: printf("[MC]"); break; \
31: case ANS_PCREDIT: printf("[HGR]"); break; \
32: case ANS_ON: printf("[ON]"); break; \
33: case ANS_OFF: printf("[OFF]"); break; \
34: case ANS_TRY: printf("[TRY]"); break; \
35: case ANS_RANGE: printf("[RANGE]"); break; \
36: case EQ_op: printf("[EQ]"); break; \
37: case NE_op: printf("[NE]"); break; \
38: case GT_op: printf("[GT]"); break; \
39: case GE_op: printf("[GE]"); break; \
40: case LT_op: printf("[LT]"); break; \
41: case LE_op: printf("[LE]"); break; \
42: case AND_op: printf("[AND]"); break; \
43: case OR_op: printf("[OR]"); break; \
44: case FORMAT: printf("[FORMAT]"); break; \
45: case SLASH: printf("[/]"); break; \
46: default: printf("[%c]",xxx); break; \
47: } }
48:
49: #ifdef DBUG_LEXER
50: #define RETURN(yyy) { PR(yyy); return(yyy); }
51: #else
52: #define RETURN(xxx) { return(xxx); }
53: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>