File indexing completed on 2024-04-21 04:36:20
0001 class KDevPG::TokenStream : public KDevPG::TokenStream, public QUtf8ToUcs4Iterator {typedef QUtf8ToUcs4Iterator Iterator; public: inline KDevPG::Token& next() { 0002 #define CURR_POS Iterator::plain() 0003 #define NEXT_CHR __extension__( { if(!Iterator::hasNext()) goto _end; Iterator::next(); } ) 0004 const Iterator::InputInt *lpos = Iterator::plain(); 0005 Iterator::Int chr = 0; 0006 int lstate = 0; 0007 0008 _state_0: chr = NEXT_CHR; if(chr < 98) {if(chr < 32) {if(chr == 9 || chr == 10){/*1 action */lpos = CURR_POS; lstate = 1; goto _state_37; 0009 } else goto _end; 0010 } else {if(chr < 48) {if(chr == 32){/*1 action */lpos = CURR_POS; lstate = 1; goto _state_37; 0011 } else goto _end; 0012 } else {if(chr < 58){/*2 action */lpos = CURR_POS; lstate = 2; goto _state_36; 0013 } else goto _end; 0014 }}} else {if(chr < 102) {if(chr == 98){goto _state_31;} else goto _end; 0015 } else {if(chr < 228) {if(chr == 102){goto _state_34;} else goto _end; 0016 } else {if(chr == 228){goto _state_23;} else goto _end; 0017 }}} 0018 _state_1: chr = NEXT_CHR; if(chr == 115){/*9 action */lpos = CURR_POS; lstate = 9; goto _state_38; 0019 } else goto _end; 0020 0021 _state_2: chr = NEXT_CHR; if(chr == 167){goto _state_1;} else goto _end; 0022 0023 _state_3: chr = NEXT_CHR; if(chr == 32){goto _state_2;} else goto _end; 0024 0025 _state_4: chr = NEXT_CHR; if(chr == 101){goto _state_3;} else goto _end; 0026 0027 _state_5: chr = NEXT_CHR; if(chr == 107){goto _state_4;} else goto _end; 0028 0029 _state_6: chr = NEXT_CHR; if(chr == 105){goto _state_5;} else goto _end; 0030 0031 _state_7: chr = NEXT_CHR; if(chr == 108){goto _state_6;} else goto _end; 0032 0033 _state_8: chr = NEXT_CHR; if(chr == 32){goto _state_7;} else goto _end; 0034 0035 _state_9: chr = NEXT_CHR; if(chr == 116){goto _state_8;} else goto _end; 0036 0037 _state_10: chr = NEXT_CHR; if(chr == 111){goto _state_9;} else goto _end; 0038 0039 _state_11: chr = NEXT_CHR; if(chr == 110){goto _state_10;} else goto _end; 0040 0041 _state_12: chr = NEXT_CHR; if(chr == 32){goto _state_11;} else goto _end; 0042 0043 _state_13: chr = NEXT_CHR; if(chr == 111){goto _state_12;} else goto _end; 0044 0045 _state_14: chr = NEXT_CHR; if(chr == 100){goto _state_13;} else goto _end; 0046 0047 _state_15: chr = NEXT_CHR; if(chr == 32){goto _state_14;} else goto _end; 0048 0049 _state_16: chr = NEXT_CHR; if(chr == 73){goto _state_15;} else goto _end; 0050 0051 _state_17: chr = NEXT_CHR; if(chr == 32){goto _state_16;} else goto _end; 0052 0053 _state_18: chr = NEXT_CHR; if(chr == 44){goto _state_17;} else goto _end; 0054 0055 _state_19: chr = NEXT_CHR; if(chr == 104){goto _state_18;} else goto _end; 0056 0057 _state_20: chr = NEXT_CHR; if(chr == 104){goto _state_19;} else goto _end; 0058 0059 _state_21: chr = NEXT_CHR; goto _end; 0060 _state_22: chr = NEXT_CHR; if(chr == 252){/*8 action */lpos = CURR_POS; lstate = 8; goto _state_21; 0061 } else goto _end; 0062 0063 _state_23: chr = NEXT_CHR; if(chr == 246){goto _state_22;} else goto _end; 0064 0065 _state_24: chr = NEXT_CHR; goto _end; 0066 _state_25: chr = NEXT_CHR; goto _end; 0067 _state_26: chr = NEXT_CHR; if(chr == 114){/*6 action */lpos = CURR_POS; lstate = 6; goto _state_25; 0068 } else goto _end; 0069 0070 _state_27: chr = NEXT_CHR; if(chr == 97){goto _state_26;} else goto _end; 0071 0072 _state_28: chr = NEXT_CHR; goto _end; 0073 _state_29: chr = NEXT_CHR; goto _end; 0074 _state_30: chr = NEXT_CHR; if(chr < 122) {if(chr == 114){/*4 action */lpos = CURR_POS; lstate = 4; goto _state_29; 0075 } else goto _end; 0076 } else {if(chr == 122){/*5 action */lpos = CURR_POS; lstate = 5; goto _state_28; 0077 } else goto _end; 0078 } 0079 _state_31: chr = NEXT_CHR; if(chr < 228) {if(chr == 97){goto _state_30;} else goto _end; 0080 } else {if(chr == 228){goto _state_20;} else goto _end; 0081 } 0082 _state_32: chr = NEXT_CHR; if(chr == 98){goto _state_27;} else goto _end; 0083 0084 _state_33: chr = NEXT_CHR; if(chr < 114) {if(chr == 111){/*3 action */lpos = CURR_POS; lstate = 3; goto _state_32; 0085 } else goto _end; 0086 } else {if(chr == 114){/*7 action */lpos = CURR_POS; lstate = 7; goto _state_24; 0087 } else goto _end; 0088 } 0089 _state_34: chr = NEXT_CHR; if(chr == 111){goto _state_33;} else goto _end; 0090 0091 _state_35: chr = NEXT_CHR; if(chr >= 48 && chr < 58){/*2 action */lpos = CURR_POS; lstate = 2; goto _state_35; 0092 } else goto _end; 0093 0094 _state_36: chr = NEXT_CHR; if(chr < 48) {if(chr == 46){/*2 action */lpos = CURR_POS; lstate = 2; goto _state_35; 0095 } else goto _end; 0096 } else {if(chr < 58){/*2 action */lpos = CURR_POS; lstate = 2; goto _state_36; 0097 } else goto _end; 0098 } 0099 _state_37: chr = NEXT_CHR; if(chr < 32) {if(chr == 9 || chr == 10){/*1 action */lpos = CURR_POS; lstate = 1; goto _state_37; 0100 } else goto _end; 0101 } else {if(chr == 32){/*1 action */lpos = CURR_POS; lstate = 1; goto _state_37; 0102 } else goto _end; 0103 } 0104 _state_38: chr = NEXT_CHR; goto _end;_end: 0105 plain() = lpos; 0106 switch(lstate) { 0107 case 0: _fail: 0108 case 1: 0109 case 2: 0110 case 3: 0111 case 4: 0112 case 5: 0113 case 6: 0114 case 7: 0115 case 8: 0116 case 9: 0117 } 0118 } 0119 };