1 #ifndef tokens_h 2 #define tokens_h 3 /* tokens.h -- List of labelled tokens and stuff 4 * 5 * Generated from: dlg_p.g 6 * 7 * Terence Parr, Will Cohen, and Hank Dietz: 1989-2001 8 * Purdue University Electrical Engineering 9 * ANTLR Version 1.33MR33 10 */ 11 #define zzEOF_TOKEN 1 12 #define L_EOF 4 13 #define PER_PER 5 14 #define NAME_PER_PER 6 15 #define LEXMEMBER 7 16 #define LEXACTION 8 17 #define PARSERCLASS 9 18 #define LEXPREFIX 10 19 #define ACTION 11 20 #define GREAT_GREAT 12 21 #define L_BRACE 13 22 #define R_BRACE 14 23 #define L_PAR 15 24 #define R_PAR 16 25 #define L_BRACK 17 26 #define R_BRACK 18 27 #define ZERO_MORE 19 28 #define ONE_MORE 20 29 #define OR 21 30 #define RANGE 22 31 #define NOT 23 32 #define OCTAL_VALUE 24 33 #define HEX_VALUE 25 34 #define DEC_VALUE 26 35 #define TAB 27 36 #define NL 28 37 #define CR 29 38 #define BS 30 39 #define CONTINUATION 31 40 #define LIT 32 41 #define REGCHAR 33 42 43 #ifdef __USE_PROTOS 44 void grammar(void); 45 #else 46 extern void grammar(); 47 #endif 48 49 #ifdef __USE_PROTOS 50 void start_states(void); 51 #else 52 extern void start_states(); 53 #endif 54 55 #ifdef __USE_PROTOS 56 void do_conversion(void); 57 #else 58 extern void do_conversion(); 59 #endif 60 61 #ifdef __USE_PROTOS 62 void rule_list(void); 63 #else 64 extern void rule_list(); 65 #endif 66 67 #ifdef __USE_PROTOS 68 void rule(void); 69 #else 70 extern void rule(); 71 #endif 72 73 #ifdef __USE_PROTOS 74 void reg_expr(void); 75 #else 76 extern void reg_expr(); 77 #endif 78 79 #ifdef __USE_PROTOS 80 void and_expr(void); 81 #else 82 extern void and_expr(); 83 #endif 84 85 #ifdef __USE_PROTOS 86 void repeat_expr(void); 87 #else 88 extern void repeat_expr(); 89 #endif 90 91 #ifdef __USE_PROTOS 92 void expr(void); 93 #else 94 extern void expr(); 95 #endif 96 97 #ifdef __USE_PROTOS 98 void atom_list(void); 99 #else 100 extern void atom_list(); 101 #endif 102 103 #ifdef __USE_PROTOS 104 void near_atom(void); 105 #else 106 extern void near_atom(); 107 #endif 108 109 #ifdef __USE_PROTOS 110 void atom(void); 111 #else 112 extern void atom(); 113 #endif 114 115 #ifdef __USE_PROTOS 116 void anychar(void); 117 #else 118 extern void anychar(); 119 #endif 120 121 #endif 122 extern SetWordType zzerr1[]; 123 extern SetWordType zzerr2[]; 124 extern SetWordType zzerr3[]; 125 extern SetWordType setwd1[]; 126 extern SetWordType zzerr4[]; 127 extern SetWordType zzerr5[]; 128 extern SetWordType zzerr6[]; 129 extern SetWordType setwd2[]; 130 extern SetWordType zzerr7[]; 131 extern SetWordType zzerr8[]; 132 extern SetWordType zzerr9[]; 133 extern SetWordType setwd3[]; 134