17 else if (
s[0] ==
'i') {
21 else if (
s[1] ==
'n') {
25 return Parser::T_IDENTIFIER;
36 else if (
s[0] ==
'i') {
43 else if (
s[0] ==
'o') {
50 return Parser::T_IDENTIFIER;
58 return Parser::T_BOOL;
63 else if (
s[0] ==
'c') {
72 else if (
s[0] ==
'e') {
76 return Parser::T_ELSE;
81 else if (
s[0] ==
'f') {
90 else if (
s[0] ==
'l') {
99 else if (
s[0] ==
'm') {
103 return Parser::T_MAT2;
105 else if (
s[3] ==
'3') {
106 return Parser::T_MAT3;
108 else if (
s[3] ==
'4') {
109 return Parser::T_MAT4;
114 else if (
s[0] ==
't') {
118 return Parser::T_TRUE;
123 else if (
s[0] ==
'u') {
132 else if (
s[0] ==
'v') {
136 return Parser::T_VEC2;
138 else if (
s[3] ==
'3') {
139 return Parser::T_VEC3;
141 else if (
s[3] ==
'4') {
142 return Parser::T_VEC4;
146 else if (
s[1] ==
'o') {
149 return Parser::T_VOID;
154 return Parser::T_IDENTIFIER;
163 return Parser::T_BREAK;
168 else if (
s[1] ==
'v') {
172 return Parser::T_BVEC2;
174 else if (
s[4] ==
'3') {
175 return Parser::T_BVEC3;
177 else if (
s[4] ==
'4') {
178 return Parser::T_BVEC4;
184 else if (
s[0] ==
'c') {
189 return Parser::T_CONST;
195 else if (
s[0] ==
'd') {
202 else if (
s[4] ==
'3') {
205 else if (
s[4] ==
'4') {
211 else if (
s[1] ==
'v') {
217 else if (
s[4] ==
'3') {
220 else if (
s[4] ==
'4') {
227 else if (
s[0] ==
'f') {
232 return Parser::T_FALSE;
237 else if (
s[1] ==
'l') {
241 return Parser::T_FLOAT;
247 else if (
s[0] ==
'h') {
258 else if (
s[0] ==
'i') {
263 return Parser::T_INOUT;
268 else if (
s[1] ==
'v') {
272 return Parser::T_IVEC2;
274 else if (
s[4] ==
'3') {
275 return Parser::T_IVEC3;
277 else if (
s[4] ==
'4') {
278 return Parser::T_IVEC4;
284 else if (
s[0] ==
'p') {
295 else if (
s[0] ==
'u') {
302 else if (
s[4] ==
'3') {
305 else if (
s[4] ==
'4') {
312 else if (
s[0] ==
'w') {
317 return Parser::T_WHILE;
323 return Parser::T_IDENTIFIER;
340 else if (
s[0] ==
'l') {
353 else if (
s[0] ==
'm') {
361 else if (
s[5] ==
'3') {
364 else if (
s[5] ==
'4') {
369 else if (
s[3] ==
'3') {
374 else if (
s[5] ==
'3') {
377 else if (
s[5] ==
'4') {
382 else if (
s[3] ==
'4') {
387 else if (
s[5] ==
'3') {
390 else if (
s[5] ==
'4') {
398 else if (
s[0] ==
'r') {
404 return Parser::T_RETURN;
411 else if (
s[0] ==
's') {
423 else if (
s[1] ==
'm') {
434 else if (
s[1] ==
't') {
439 return Parser::T_STRUCT;
445 else if (
s[1] ==
'w') {
457 return Parser::T_IDENTIFIER;
475 else if (
s[1] ==
'i') {
488 else if (
s[1] ==
'm') {
496 else if (
s[6] ==
'3') {
499 else if (
s[6] ==
'4') {
504 else if (
s[4] ==
'3') {
509 else if (
s[6] ==
'3') {
512 else if (
s[6] ==
'4') {
517 else if (
s[4] ==
'4') {
522 else if (
s[6] ==
'3') {
525 else if (
s[6] ==
'4') {
534 else if (
s[0] ==
'm') {
549 else if (
s[0] ==
'u') {
556 return Parser::T_UNIFORM;
564 else if (
s[0] ==
'v') {
571 return Parser::T_VARYING;
579 return Parser::T_IDENTIFIER;
599 else if (
s[1] ==
'o') {
606 return Parser::T_CONTINUE;
615 return Parser::T_IDENTIFIER;
638 else if (
s[0] ==
'i') {
647 return Parser::T_INVARIANT;
657 else if (
s[0] ==
'p') {
676 else if (
s[0] ==
's') {
688 else if (
s[7] ==
'2') {
690 return Parser::T_SAMPLER2D;
693 else if (
s[7] ==
'3') {
705 return Parser::T_IDENTIFIER;
722 else if (
s[8] ==
'2') {
727 else if (
s[8] ==
'3') {
740 else if (
s[0] ==
's') {
761 else if (
s[0] ==
'u') {
774 else if (
s[8] ==
'2') {
779 else if (
s[8] ==
'3') {
792 return Parser::T_IDENTIFIER;
812 else if (
s[7] ==
'C') {
816 return Parser::T_SAMPLERCUBE;
828 return Parser::T_IDENTIFIER;
849 else if (
s[8] ==
'C') {
866 else if (
s[0] ==
'u') {
883 else if (
s[8] ==
'C') {
900 return Parser::T_IDENTIFIER;
931 else if (
s[0] ==
's') {
944 return Parser::T_SAMPLER2DRECT;
951 else if (
s[7] ==
'B') {
971 return Parser::T_IDENTIFIER;
996 else if (
s[8] ==
'B') {
1017 else if (
s[0] ==
's') {
1039 else if (
s[7] ==
'2') {
1061 else if (
s[0] ==
'u') {
1082 else if (
s[8] ==
'B') {
1103 return Parser::T_IDENTIFIER;
1130 else if (
s[8] ==
'2') {
1153 else if (
s[0] ==
's') {
1177 else if (
s[7] ==
'2') {
1201 else if (
s[0] ==
'u') {
1224 else if (
s[8] ==
'2') {
1247 return Parser::T_IDENTIFIER;
1277 else if (
s[7] ==
'C') {
1303 return Parser::T_IDENTIFIER;
1334 else if (
s[8] ==
'C') {
1361 else if (
s[0] ==
's') {
1396 else if (
s[0] ==
'u') {
1423 else if (
s[8] ==
'C') {
1450 return Parser::T_IDENTIFIER;
1473 return Parser::T_SAMPLER2DRECTSHADOW;
1493 return Parser::T_IDENTIFIER;
1531 else if (
s[7] ==
'2') {
1565 return Parser::T_IDENTIFIER;
1614 return Parser::T_IDENTIFIER;
1617int Lexer::classify(
const char *
s,
int n) {
static QStringList keywords(int variant)
static int classify15(const char *s)
static int classify2(const char *s)
static int classify4(const char *s)
static int classify17(const char *s)
static int classify14(const char *s)
static int classify16(const char *s)
static int classify19(const char *s)
static int classify9(const char *s)
static int classify22(const char *s)
static int classify5(const char *s)
static int classify3(const char *s)
static int classify13(const char *s)
static int classify20(const char *s)
static int classify8(const char *s)
static int classify12(const char *s)
static int classify7(const char *s)
static int classify10(const char *s)
static int classify6(const char *s)
static int classify11(const char *s)
Combined button and popup list for selecting options.
QLatin1StringView QLatin1String