4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtScript module of the Qt Toolkit. |
7 ** This file is part of the QtScript module of the Qt Toolkit. |
8 ** |
8 ** |
9 ** $QT_BEGIN_LICENSE:LGPL$ |
9 ** $QT_BEGIN_LICENSE:LGPL-ONLY$ |
10 ** No Commercial Usage |
|
11 ** This file contains pre-release code and may not be distributed. |
|
12 ** You may use this file in accordance with the terms and conditions |
|
13 ** contained in the Technology Preview License Agreement accompanying |
|
14 ** this package. |
|
15 ** |
|
16 ** GNU Lesser General Public License Usage |
10 ** GNU Lesser General Public License Usage |
17 ** Alternatively, this file may be used under the terms of the GNU Lesser |
11 ** This file may be used under the terms of the GNU Lesser |
18 ** General Public License version 2.1 as published by the Free Software |
12 ** General Public License version 2.1 as published by the Free Software |
19 ** Foundation and appearing in the file LICENSE.LGPL included in the |
13 ** Foundation and appearing in the file LICENSE.LGPL included in the |
20 ** packaging of this file. Please review the following information to |
14 ** packaging of this file. Please review the following information to |
21 ** ensure the GNU Lesser General Public License version 2.1 requirements |
15 ** ensure the GNU Lesser General Public License version 2.1 requirements |
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
16 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
23 ** |
17 ** |
24 ** In addition, as a special exception, Nokia gives you certain additional |
|
25 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
27 ** |
|
28 ** If you have questions regarding the use of this file, please contact |
18 ** If you have questions regarding the use of this file, please contact |
29 ** Nokia at qt-info@nokia.com. |
19 ** Nokia at qt-info@nokia.com. |
30 ** |
|
31 ** |
|
32 ** |
|
33 ** |
|
34 ** |
|
35 ** |
|
36 ** |
|
37 ** |
|
38 ** $QT_END_LICENSE$ |
20 ** $QT_END_LICENSE$ |
39 ** |
21 ** |
40 ****************************************************************************/ |
22 ****************************************************************************/ |
41 |
|
42 // This file was generated by qlalr - DO NOT EDIT! |
|
43 |
|
44 #ifndef QSCRIPTGRAMMAR_P_H |
|
45 #define QSCRIPTGRAMMAR_P_H |
|
46 |
23 |
47 // |
24 // |
48 // W A R N I N G |
25 // W A R N I N G |
49 // ------------- |
26 // ------------- |
50 // |
27 // |
52 // of other Qt classes. This header file may change from version to |
29 // of other Qt classes. This header file may change from version to |
53 // version without notice, or even be removed. |
30 // version without notice, or even be removed. |
54 // |
31 // |
55 // We mean it. |
32 // We mean it. |
56 // |
33 // |
|
34 |
|
35 // This file was generated by qlalr - DO NOT EDIT! |
|
36 #ifndef QSCRIPTGRAMMAR_P_H |
|
37 #define QSCRIPTGRAMMAR_P_H |
57 |
38 |
58 #include <QtCore/qglobal.h> |
39 #include <QtCore/qglobal.h> |
59 |
40 |
60 QT_BEGIN_NAMESPACE |
41 QT_BEGIN_NAMESPACE |
61 |
42 |
157 GOTO_INDEX_OFFSET = 468, |
138 GOTO_INDEX_OFFSET = 468, |
158 GOTO_INFO_OFFSET = 1562, |
139 GOTO_INFO_OFFSET = 1562, |
159 GOTO_CHECK_OFFSET = 1562 |
140 GOTO_CHECK_OFFSET = 1562 |
160 }; |
141 }; |
161 |
142 |
162 static const char *const spell []; |
143 static const char *const spell []; |
163 static const int lhs []; |
144 static const short lhs []; |
164 static const int rhs []; |
145 static const short rhs []; |
165 |
146 |
166 #ifndef QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO |
147 #ifndef QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO |
167 static const int rule_index []; |
148 static const int rule_index []; |
168 static const int rule_info []; |
149 static const int rule_info []; |
169 #endif // QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO |
150 #endif // QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO |
170 |
151 |
171 static const int goto_default []; |
152 static const short goto_default []; |
172 static const int action_default []; |
153 static const short action_default []; |
173 static const int action_index []; |
154 static const short action_index []; |
174 static const int action_info []; |
155 static const short action_info []; |
175 static const int action_check []; |
156 static const short action_check []; |
176 |
157 |
177 static inline int nt_action (int state, int nt) |
158 static inline int nt_action (int state, int nt) |
178 { |
159 { |
179 const int *const goto_index = &action_index [GOTO_INDEX_OFFSET]; |
160 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt; |
180 const int *const goto_check = &action_check [GOTO_CHECK_OFFSET]; |
161 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt) |
181 |
|
182 const int yyn = goto_index [state] + nt; |
|
183 |
|
184 if (yyn < 0 || goto_check [yyn] != nt) |
|
185 return goto_default [nt]; |
162 return goto_default [nt]; |
186 |
163 |
187 const int *const goto_info = &action_info [GOTO_INFO_OFFSET]; |
164 return action_info [GOTO_INFO_OFFSET + yyn]; |
188 return goto_info [yyn]; |
|
189 } |
165 } |
190 |
166 |
191 static inline int t_action (int state, int token) |
167 static inline int t_action (int state, int token) |
192 { |
168 { |
193 const int yyn = action_index [state] + token; |
169 const int yyn = action_index [state] + token; |