Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
glslparsertable_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists for the convenience
11// of other Qt classes. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17// This file was generated by qlalr - DO NOT EDIT!
18#ifndef GLSLPARSERTABLE_P_H
19#define GLSLPARSERTABLE_P_H
20
21#include <QtCore/qglobal.h>
22
24
26{
27public:
66 T_DO = 38,
169 T_SLASH = 135,
170 T_SMOOTH = 136,
171 T_STAR = 137,
172 T_STRUCT = 138,
175 T_SWITCH = 141,
176 T_TILDE = 142,
177 T_TRUE = 169,
179 T_UINT = 144,
192 T_UVEC2 = 157,
193 T_UVEC3 = 158,
194 T_UVEC4 = 159,
196 T_VEC2 = 161,
197 T_VEC3 = 162,
198 T_VEC4 = 163,
200 T_VOID = 165,
201 T_WHILE = 166,
203 T_XOR_OP = 168,
204
210
214 };
215
216 static const char *const spell[];
217 static const short lhs[];
218 static const short rhs[];
219 static const short goto_default[];
220 static const short action_default[];
221 static const short action_index[];
222 static const short action_info[];
223 static const short action_check[];
224
225 static inline int nt_action (int state, int nt)
226 {
227 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
228 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
229 return goto_default [nt];
230
231 return action_info [GOTO_INFO_OFFSET + yyn];
232 }
233
234 static inline int t_action (int state, int token)
235 {
236 const int yyn = action_index [state] + token;
237
238 if (yyn < 0 || action_check [yyn] != token)
239 return - action_default [state];
240
241 return action_info [yyn];
242 }
243};
244
245
246QT_END_NAMESPACE
247#endif // GLSLPARSERTABLE_P_H
static const short lhs[]
static const short action_index[]
static int t_action(int state, int token)
static int nt_action(int state, int nt)
static const short action_info[]
static const short rhs[]
static const short goto_default[]
static const short action_default[]
static const short action_check[]
static const char *const spell[]
Combined button and popup list for selecting options.