1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of other Qt classes. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15// This file was generated by qlalr - DO NOT EDIT!
16#ifndef GLSLPARSERTABLE_P_H
17#define GLSLPARSERTABLE_P_H
18
19#include <QtCore/qglobal.h>
20
21QT_BEGIN_NAMESPACE
22
23class GLSLParserTable
24{
25public:
26 enum VariousConstants {
27 EOF_SYMBOL = 0,
28 T_ADD_ASSIGN = 3,
29 T_AMPERSAND = 4,
30 T_AND_ASSIGN = 5,
31 T_AND_OP = 6,
32 T_ATTRIBUTE = 7,
33 T_BANG = 8,
34 T_BOOL = 9,
35 T_BREAK = 10,
36 T_BVEC2 = 11,
37 T_BVEC3 = 12,
38 T_BVEC4 = 13,
39 T_CARET = 14,
40 T_CASE = 15,
41 T_CENTROID = 16,
42 T_COLON = 17,
43 T_COMMA = 18,
44 T_COMMENT = 172,
45 T_CONST = 19,
46 T_CONTINUE = 20,
47 T_DASH = 21,
48 T_DEC_OP = 22,
49 T_DEFAULT = 23,
50 T_DISCARD = 24,
51 T_DIV_ASSIGN = 25,
52 T_DMAT2 = 26,
53 T_DMAT2X2 = 27,
54 T_DMAT2X3 = 28,
55 T_DMAT2X4 = 29,
56 T_DMAT3 = 30,
57 T_DMAT3X2 = 31,
58 T_DMAT3X3 = 32,
59 T_DMAT3X4 = 33,
60 T_DMAT4 = 34,
61 T_DMAT4X2 = 35,
62 T_DMAT4X3 = 36,
63 T_DMAT4X4 = 37,
64 T_DO = 38,
65 T_DOT = 39,
66 T_DOUBLE = 40,
67 T_DVEC2 = 41,
68 T_DVEC3 = 42,
69 T_DVEC4 = 43,
70 T_ELSE = 44,
71 T_EQUAL = 45,
72 T_EQ_OP = 46,
73 T_ERROR = 173,
74 T_FALSE = 170,
75 T_FEED_EXPRESSION = 2,
76 T_FEED_GLSL = 1,
77 T_FLAT = 47,
78 T_FLOAT = 48,
79 T_FOR = 49,
80 T_GE_OP = 50,
81 T_HIGHP = 51,
82 T_IDENTIFIER = 52,
83 T_IF = 53,
84 T_IN = 54,
85 T_INC_OP = 55,
86 T_INOUT = 56,
87 T_INT = 57,
88 T_INVARIANT = 58,
89 T_ISAMPLER1D = 59,
90 T_ISAMPLER1DARRAY = 60,
91 T_ISAMPLER2D = 61,
92 T_ISAMPLER2DARRAY = 62,
93 T_ISAMPLER2DMS = 63,
94 T_ISAMPLER2DMSARRAY = 64,
95 T_ISAMPLER2DRECT = 65,
96 T_ISAMPLER3D = 66,
97 T_ISAMPLERBUFFER = 67,
98 T_ISAMPLERCUBE = 68,
99 T_ISAMPLERCUBEARRAY = 69,
100 T_IVEC2 = 70,
101 T_IVEC3 = 71,
102 T_IVEC4 = 72,
103 T_LAYOUT = 73,
104 T_LEFT_ANGLE = 74,
105 T_LEFT_ASSIGN = 75,
106 T_LEFT_BRACE = 76,
107 T_LEFT_BRACKET = 77,
108 T_LEFT_OP = 78,
109 T_LEFT_PAREN = 79,
110 T_LE_OP = 80,
111 T_LOWP = 81,
112 T_MAT2 = 82,
113 T_MAT2X2 = 83,
114 T_MAT2X3 = 84,
115 T_MAT2X4 = 85,
116 T_MAT3 = 86,
117 T_MAT3X2 = 87,
118 T_MAT3X3 = 88,
119 T_MAT3X4 = 89,
120 T_MAT4 = 90,
121 T_MAT4X2 = 91,
122 T_MAT4X3 = 92,
123 T_MAT4X4 = 93,
124 T_MEDIUMP = 94,
125 T_MOD_ASSIGN = 95,
126 T_MUL_ASSIGN = 96,
127 T_NE_OP = 97,
128 T_NOPERSPECTIVE = 98,
129 T_NUMBER = 99,
130 T_OR_ASSIGN = 100,
131 T_OR_OP = 101,
132 T_OUT = 102,
133 T_PATCH = 103,
134 T_PERCENT = 104,
135 T_PLUS = 105,
136 T_PRECISION = 106,
137 T_PREPROC = 171,
138 T_QUESTION = 107,
139 T_RESERVED = 174,
140 T_RETURN = 108,
141 T_RIGHT_ANGLE = 109,
142 T_RIGHT_ASSIGN = 110,
143 T_RIGHT_BRACE = 111,
144 T_RIGHT_BRACKET = 112,
145 T_RIGHT_OP = 113,
146 T_RIGHT_PAREN = 114,
147 T_SAMPLE = 115,
148 T_SAMPLER1D = 116,
149 T_SAMPLER1DARRAY = 117,
150 T_SAMPLER1DARRAYSHADOW = 118,
151 T_SAMPLER1DSHADOW = 119,
152 T_SAMPLER2D = 120,
153 T_SAMPLER2DARRAY = 121,
154 T_SAMPLER2DARRAYSHADOW = 122,
155 T_SAMPLER2DMS = 123,
156 T_SAMPLER2DMSARRAY = 124,
157 T_SAMPLER2DRECT = 125,
158 T_SAMPLER2DRECTSHADOW = 126,
159 T_SAMPLER2DSHADOW = 127,
160 T_SAMPLER3D = 128,
161 T_SAMPLERBUFFER = 129,
162 T_SAMPLERCUBE = 130,
163 T_SAMPLERCUBEARRAY = 131,
164 T_SAMPLERCUBEARRAYSHADOW = 132,
165 T_SAMPLERCUBESHADOW = 133,
166 T_SEMICOLON = 134,
167 T_SLASH = 135,
168 T_SMOOTH = 136,
169 T_STAR = 137,
170 T_STRUCT = 138,
171 T_SUBROUTINE = 139,
172 T_SUB_ASSIGN = 140,
173 T_SWITCH = 141,
174 T_TILDE = 142,
175 T_TRUE = 169,
176 T_TYPE_NAME = 143,
177 T_UINT = 144,
178 T_UNIFORM = 145,
179 T_USAMPLER1D = 146,
180 T_USAMPLER1DARRAY = 147,
181 T_USAMPLER2D = 148,
182 T_USAMPLER2DARRAY = 149,
183 T_USAMPLER2DMS = 150,
184 T_USAMPLER2DMSARRAY = 151,
185 T_USAMPLER2DRECT = 152,
186 T_USAMPLER3D = 153,
187 T_USAMPLERBUFFER = 154,
188 T_USAMPLERCUBE = 155,
189 T_USAMPLERCUBEARRAY = 156,
190 T_UVEC2 = 157,
191 T_UVEC3 = 158,
192 T_UVEC4 = 159,
193 T_VARYING = 160,
194 T_VEC2 = 161,
195 T_VEC3 = 162,
196 T_VEC4 = 163,
197 T_VERTICAL_BAR = 164,
198 T_VOID = 165,
199 T_WHILE = 166,
200 T_XOR_ASSIGN = 167,
201 T_XOR_OP = 168,
202
203 ACCEPT_STATE = 462,
204 RULE_COUNT = 316,
205 STATE_COUNT = 463,
206 TERMINAL_COUNT = 175,
207 NON_TERMINAL_COUNT = 85,
208
209 GOTO_INDEX_OFFSET = 463,
210 GOTO_INFO_OFFSET = 4670,
211 GOTO_CHECK_OFFSET = 4670
212 };
213
214 static const char *const spell[];
215 static const short lhs[];
216 static const short rhs[];
217 static const short goto_default[];
218 static const short action_default[];
219 static const short action_index[];
220 static const short action_info[];
221 static const short action_check[];
222
223 static inline int nt_action (int state, int nt)
224 {
225 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
226 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
227 return goto_default [nt];
228
229 return action_info [GOTO_INFO_OFFSET + yyn];
230 }
231
232 static inline int t_action (int state, int token)
233 {
234 const int yyn = action_index [state] + token;
235
236 if (yyn < 0 || action_check [yyn] != token)
237 return - action_default [state];
238
239 return action_info [yyn];
240 }
241};
242
243
244QT_END_NAMESPACE
245#endif // GLSLPARSERTABLE_P_H
246
247

source code of qtquick3d/src/glslparser/glslparsertable_p.h