1 /****************************************************************************
3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 ** This file is part of the QtCore module of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:LGPL$
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
16 ** GNU Lesser General Public License Usage
17 ** Alternatively, 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
19 ** Foundation and appearing in the file LICENSE.LGPL included in the
20 ** packaging of this file. Please review the following information to
21 ** 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.
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.
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
40 ****************************************************************************/
46 // This file is not part of the Qt API. It exists for the convenience
47 // of other Qt classes. This header file may change from version to
48 // version without notice, or even be removed.
53 // This file was generated by qlalr - DO NOT EDIT!
54 #ifndef QDECLARATIVEJSGRAMMAR_P_H
55 #define QDECLARATIVEJSGRAMMAR_P_H
57 #include <QtCore/qglobal.h>
61 class QDeclarativeJSGrammar
64 enum VariousConstants {
72 T_AUTOMATIC_SEMICOLON = 62,
93 T_FEED_JS_EXPRESSION = 96,
94 T_FEED_JS_PROGRAM = 98,
95 T_FEED_JS_SOURCE_ELEMENT = 97,
96 T_FEED_JS_STATEMENT = 95,
97 T_FEED_UI_OBJECT_MEMBER = 94,
98 T_FEED_UI_PROGRAM = 93,
123 T_MULTILINE_STRING_LITERAL = 87,
129 T_NUMERIC_LITERAL = 47,
145 T_RESERVED_WORD = 86,
152 T_STRING_LITERAL = 65,
170 TERMINAL_COUNT = 101,
171 NON_TERMINAL_COUNT = 107,
173 GOTO_INDEX_OFFSET = 641,
174 GOTO_INFO_OFFSET = 2787,
175 GOTO_CHECK_OFFSET = 2787
178 static const char *const spell [];
179 static const short lhs [];
180 static const short rhs [];
181 static const short goto_default [];
182 static const short action_default [];
183 static const short action_index [];
184 static const short action_info [];
185 static const short action_check [];
187 static inline int nt_action (int state, int nt)
189 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
190 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
191 return goto_default [nt];
193 return action_info [GOTO_INFO_OFFSET + yyn];
196 static inline int t_action (int state, int token)
198 const int yyn = action_index [state] + token;
200 if (yyn < 0 || action_check [yyn] != token)
201 return - action_default [state];
203 return action_info [yyn];
209 #endif // QDECLARATIVEJSGRAMMAR_P_H