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