| 1 |
#ifndef DLGLexer_h |
| 2 |
#define DLGLexer_h |
| 3 |
/* |
| 4 |
* D L G L e x e r C l a s s D e f i n i t i o n |
| 5 |
* |
| 6 |
* Generated from: parser.dlg |
| 7 |
* |
| 8 |
* 1989-2001 by Will Cohen, Terence Parr, and Hank Dietz |
| 9 |
* Purdue University Electrical Engineering |
| 10 |
* DLG Version 1.33MR33 |
| 11 |
*/ |
| 12 |
|
| 13 |
|
| 14 |
#include "DLexerBase.h" |
| 15 |
|
| 16 |
class DLGLexer : public DLGLexerBase { |
| 17 |
public: |
| 18 |
public: |
| 19 |
static const int MAX_MODE; |
| 20 |
static const int DfaStates; |
| 21 |
static const int START; |
| 22 |
static const int COMMENT; |
| 23 |
static const int QW_STRING; |
| 24 |
typedef unsigned char DfaState; |
| 25 |
|
| 26 |
DLGLexer(DLGInputStream *in, |
| 27 |
unsigned bufsize=2000) |
| 28 |
: DLGLexerBase(in, bufsize, 0) |
| 29 |
{ |
| 30 |
; |
| 31 |
} |
| 32 |
void mode(int); |
| 33 |
ANTLRTokenType nextTokenType(void); |
| 34 |
void advance(void); |
| 35 |
protected: |
| 36 |
ANTLRTokenType act1(); |
| 37 |
ANTLRTokenType act2(); |
| 38 |
ANTLRTokenType act3(); |
| 39 |
ANTLRTokenType act4(); |
| 40 |
ANTLRTokenType act5(); |
| 41 |
ANTLRTokenType act6(); |
| 42 |
ANTLRTokenType act7(); |
| 43 |
ANTLRTokenType act8(); |
| 44 |
ANTLRTokenType act9(); |
| 45 |
ANTLRTokenType act10(); |
| 46 |
ANTLRTokenType act11(); |
| 47 |
ANTLRTokenType act12(); |
| 48 |
ANTLRTokenType act13(); |
| 49 |
ANTLRTokenType act14(); |
| 50 |
ANTLRTokenType act15(); |
| 51 |
ANTLRTokenType act16(); |
| 52 |
ANTLRTokenType act17(); |
| 53 |
ANTLRTokenType act18(); |
| 54 |
ANTLRTokenType act19(); |
| 55 |
ANTLRTokenType act20(); |
| 56 |
ANTLRTokenType act21(); |
| 57 |
ANTLRTokenType act22(); |
| 58 |
ANTLRTokenType act23(); |
| 59 |
ANTLRTokenType act24(); |
| 60 |
ANTLRTokenType act25(); |
| 61 |
ANTLRTokenType act26(); |
| 62 |
ANTLRTokenType act27(); |
| 63 |
ANTLRTokenType act28(); |
| 64 |
ANTLRTokenType act29(); |
| 65 |
ANTLRTokenType act30(); |
| 66 |
ANTLRTokenType act31(); |
| 67 |
ANTLRTokenType act32(); |
| 68 |
ANTLRTokenType act33(); |
| 69 |
ANTLRTokenType act34(); |
| 70 |
ANTLRTokenType act35(); |
| 71 |
ANTLRTokenType act36(); |
| 72 |
ANTLRTokenType act37(); |
| 73 |
ANTLRTokenType act38(); |
| 74 |
ANTLRTokenType act39(); |
| 75 |
ANTLRTokenType act40(); |
| 76 |
ANTLRTokenType act41(); |
| 77 |
ANTLRTokenType act42(); |
| 78 |
ANTLRTokenType act43(); |
| 79 |
ANTLRTokenType act44(); |
| 80 |
ANTLRTokenType act45(); |
| 81 |
ANTLRTokenType act46(); |
| 82 |
ANTLRTokenType act47(); |
| 83 |
ANTLRTokenType act48(); |
| 84 |
ANTLRTokenType act49(); |
| 85 |
ANTLRTokenType act50(); |
| 86 |
static DfaState st0[37]; |
| 87 |
static DfaState st1[37]; |
| 88 |
static DfaState st2[37]; |
| 89 |
static DfaState st3[37]; |
| 90 |
static DfaState st4[37]; |
| 91 |
static DfaState st5[37]; |
| 92 |
static DfaState st6[37]; |
| 93 |
static DfaState st7[37]; |
| 94 |
static DfaState st8[37]; |
| 95 |
static DfaState st9[37]; |
| 96 |
static DfaState st10[37]; |
| 97 |
static DfaState st11[37]; |
| 98 |
static DfaState st12[37]; |
| 99 |
static DfaState st13[37]; |
| 100 |
static DfaState st14[37]; |
| 101 |
static DfaState st15[37]; |
| 102 |
static DfaState st16[37]; |
| 103 |
static DfaState st17[37]; |
| 104 |
static DfaState st18[37]; |
| 105 |
static DfaState st19[37]; |
| 106 |
static DfaState st20[37]; |
| 107 |
static DfaState st21[37]; |
| 108 |
static DfaState st22[37]; |
| 109 |
static DfaState st23[37]; |
| 110 |
static DfaState st24[37]; |
| 111 |
static DfaState st25[37]; |
| 112 |
static DfaState st26[37]; |
| 113 |
static DfaState st27[37]; |
| 114 |
static DfaState st28[37]; |
| 115 |
static DfaState st29[37]; |
| 116 |
static DfaState st30[37]; |
| 117 |
static DfaState st31[37]; |
| 118 |
static DfaState st32[37]; |
| 119 |
static DfaState st33[37]; |
| 120 |
static DfaState st34[37]; |
| 121 |
static DfaState st35[37]; |
| 122 |
static DfaState st36[37]; |
| 123 |
static DfaState st37[37]; |
| 124 |
static DfaState st38[37]; |
| 125 |
static DfaState st39[37]; |
| 126 |
static DfaState st40[37]; |
| 127 |
static DfaState st41[37]; |
| 128 |
static DfaState st42[37]; |
| 129 |
static DfaState st43[37]; |
| 130 |
static DfaState st44[37]; |
| 131 |
static DfaState st45[37]; |
| 132 |
static DfaState st46[37]; |
| 133 |
static DfaState st47[37]; |
| 134 |
static DfaState st48[6]; |
| 135 |
static DfaState st49[6]; |
| 136 |
static DfaState st50[6]; |
| 137 |
static DfaState st51[6]; |
| 138 |
static DfaState st52[6]; |
| 139 |
static DfaState st53[6]; |
| 140 |
static DfaState st54[5]; |
| 141 |
static DfaState st55[5]; |
| 142 |
static DfaState st56[5]; |
| 143 |
static DfaState st57[5]; |
| 144 |
static DfaState st58[5]; |
| 145 |
static DfaState st59[5]; |
| 146 |
static DfaState *dfa[60]; |
| 147 |
static DfaState dfa_base[]; |
| 148 |
static unsigned char *b_class_no[]; |
| 149 |
static DfaState accepts[61]; |
| 150 |
static DLGChar alternatives[61]; |
| 151 |
static ANTLRTokenType (DLGLexer::*actions[51])(); |
| 152 |
static unsigned char shift0[257]; |
| 153 |
static unsigned char shift1[257]; |
| 154 |
static unsigned char shift2[257]; |
| 155 |
int ZZSHIFT(int c) { return b_class_no[automaton][1+c]; } |
| 156 |
// |
| 157 |
// 133MR1 Deprecated feature to allow inclusion of user-defined code in DLG class header |
| 158 |
// |
| 159 |
#ifdef DLGLexerIncludeFile |
| 160 |
#include DLGLexerIncludeFile |
| 161 |
#endif |
| 162 |
}; |
| 163 |
typedef ANTLRTokenType (DLGLexer::*PtrDLGLexerMemberFunc)(); |
| 164 |
#endif |