1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 * 12 * @(#)token.h 3.6 (Berkeley) 02/21/88 13 */ 14 15 #define token (cx.x_token) 16 #define token_num (cx.x_val.v_num) 17 #define token_str (cx.x_val.v_str) 18 19 #define T_EOL 1 20 #define T_EOF 2 21 #define T_COMP 3 22 #define T_PLUS 4 23 #define T_MINUS 5 24 #define T_MUL 6 25 #define T_DIV 7 26 #define T_LP 8 27 #define T_RP 9 28 #define T_LB 10 29 #define T_RB 11 30 #define T_DOLLAR 12 31 #define T_COMMA 13 32 #define T_QUEST 14 33 #define T_COLON 15 34 #define T_CHAR 16 35 #define T_STR 17 36 #define T_NUM 18 37 #define T_MOD 19 38 #define T_XOR 20 39 #define T_DQ 21 /* $? */ 40 #define T_GE 22 41 #define T_RS 23 42 #define T_GT 24 43 #define T_LE 25 44 #define T_LS 26 45 #define T_LT 27 46 #define T_EQ 28 47 #define T_ASSIGN 29 48 #define T_NE 30 49 #define T_NOT 31 50 #define T_ANDAND 32 51 #define T_AND 33 52 #define T_OROR 34 53 #define T_OR 35 54 55 #define T_IF 40 56 #define T_THEN 41 57 #define T_ELSIF 42 58 #define T_ELSE 43 59 #define T_ENDIF 44 60