Qt 4.8
qt-4.8.6
src
declarative
qml
parser
qdeclarativejsgrammar_p.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4
** Contact: http://www.qt-project.org/legal
5
**
6
** This file is part of the QtCore module of the Qt Toolkit.
7
**
8
** $QT_BEGIN_LICENSE:LGPL$
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 Digia. For licensing terms and
14
** conditions see http://qt.digia.com/licensing. For further information
15
** use the contact form at http://qt.digia.com/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 as published by the Free Software
20
** Foundation and appearing in the file LICENSE.LGPL included in the
21
** packaging of this file. Please review the following information to
22
** ensure the GNU Lesser General Public License version 2.1 requirements
23
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24
**
25
** In addition, as a special exception, Digia gives you certain additional
26
** rights. These rights are described in the Digia Qt LGPL Exception
27
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28
**
29
** GNU General Public License Usage
30
** Alternatively, this file may be used under the terms of the GNU
31
** General Public License version 3.0 as published by the Free Software
32
** Foundation and appearing in the file LICENSE.GPL included in the
33
** packaging of this file. Please review the following information to
34
** ensure the GNU General Public License version 3.0 requirements will be
35
** met: http://www.gnu.org/copyleft/gpl.html.
36
**
37
**
38
** $QT_END_LICENSE$
39
**
40
****************************************************************************/
41
42
//
43
// W A R N I N G
44
// -------------
45
//
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.
49
//
50
// We mean it.
51
//
52
53
// This file was generated by qlalr - DO NOT EDIT!
54
#ifndef QDECLARATIVEJSGRAMMAR_P_H
55
#define QDECLARATIVEJSGRAMMAR_P_H
56
57
#include <QtCore/qglobal.h>
58
59
QT_BEGIN_NAMESPACE
60
61
class
QDeclarativeJSGrammar
62
{
63
public
:
64
enum
VariousConstants
{
65
EOF_SYMBOL
= 0,
66
REDUCE_HERE
= 100,
67
SHIFT_THERE
= 99,
68
T_AND
= 1,
69
T_AND_AND
= 2,
70
T_AND_EQ
= 3,
71
T_AS
= 91,
72
T_AUTOMATIC_SEMICOLON
= 62,
73
T_BREAK
= 4,
74
T_CASE
= 5,
75
T_CATCH
= 6,
76
T_COLON
= 7,
77
T_COMMA
= 8,
78
T_COMMENT
= 88,
79
T_CONST
= 84,
80
T_CONTINUE
= 9,
81
T_DEBUGGER
= 85,
82
T_DEFAULT
= 10,
83
T_DELETE
= 11,
84
T_DIVIDE_
= 12,
85
T_DIVIDE_EQ
= 13,
86
T_DO
= 14,
87
T_DOT
= 15,
88
T_ELSE
= 16,
89
T_EQ
= 17,
90
T_EQ_EQ
= 18,
91
T_EQ_EQ_EQ
= 19,
92
T_FALSE
= 83,
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,
99
T_FINALLY
= 20,
100
T_FOR
= 21,
101
T_FUNCTION
= 22,
102
T_GE
= 23,
103
T_GT
= 24,
104
T_GT_GT
= 25,
105
T_GT_GT_EQ
= 26,
106
T_GT_GT_GT
= 27,
107
T_GT_GT_GT_EQ
= 28,
108
T_IDENTIFIER
= 29,
109
T_IF
= 30,
110
T_IMPORT
= 90,
111
T_IN
= 31,
112
T_INSTANCEOF
= 32,
113
T_LBRACE
= 33,
114
T_LBRACKET
= 34,
115
T_LE
= 35,
116
T_LPAREN
= 36,
117
T_LT
= 37,
118
T_LT_LT
= 38,
119
T_LT_LT_EQ
= 39,
120
T_MINUS
= 40,
121
T_MINUS_EQ
= 41,
122
T_MINUS_MINUS
= 42,
123
T_MULTILINE_STRING_LITERAL
= 87,
124
T_NEW
= 43,
125
T_NOT
= 44,
126
T_NOT_EQ
= 45,
127
T_NOT_EQ_EQ
= 46,
128
T_NULL
= 81,
129
T_NUMERIC_LITERAL
= 47,
130
T_ON
= 92,
131
T_OR
= 48,
132
T_OR_EQ
= 49,
133
T_OR_OR
= 50,
134
T_PLUS
= 51,
135
T_PLUS_EQ
= 52,
136
T_PLUS_PLUS
= 53,
137
T_PROPERTY
= 66,
138
T_PUBLIC
= 89,
139
T_QUESTION
= 54,
140
T_RBRACE
= 55,
141
T_RBRACKET
= 56,
142
T_READONLY
= 68,
143
T_REMAINDER
= 57,
144
T_REMAINDER_EQ
= 58,
145
T_RESERVED_WORD
= 86,
146
T_RETURN
= 59,
147
T_RPAREN
= 60,
148
T_SEMICOLON
= 61,
149
T_SIGNAL
= 67,
150
T_STAR
= 63,
151
T_STAR_EQ
= 64,
152
T_STRING_LITERAL
= 65,
153
T_SWITCH
= 69,
154
T_THIS
= 70,
155
T_THROW
= 71,
156
T_TILDE
= 72,
157
T_TRUE
= 82,
158
T_TRY
= 73,
159
T_TYPEOF
= 74,
160
T_VAR
= 75,
161
T_VOID
= 76,
162
T_WHILE
= 77,
163
T_WITH
= 78,
164
T_XOR
= 79,
165
T_XOR_EQ
= 80,
166
167
ACCEPT_STATE
= 645,
168
RULE_COUNT
= 347,
169
STATE_COUNT
= 646,
170
TERMINAL_COUNT
= 101,
171
NON_TERMINAL_COUNT
= 106,
172
173
GOTO_INDEX_OFFSET
= 646,
174
GOTO_INFO_OFFSET
= 2714,
175
GOTO_CHECK_OFFSET
= 2714
176
};
177
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
[];
186
187
static
inline
int
nt_action
(
int
state,
int
nt
)
188
{
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
];
192
193
return
action_info [
GOTO_INFO_OFFSET
+ yyn];
194
}
195
196
static
inline
int
t_action
(
int
state,
int
token)
197
{
198
const
int
yyn = action_index [state] + token;
199
200
if
(yyn < 0 || action_check [yyn] != token)
201
return
- action_default [state];
202
203
return
action_info [yyn];
204
}
205
};
206
207
208
QT_END_NAMESPACE
209
#endif // QDECLARATIVEJSGRAMMAR_P_H
210
QDeclarativeJSGrammar::action_info
static const short action_info[]
Definition:
qdeclarativejsgrammar_p.h:184
QDeclarativeJSGrammar::T_GT_GT
Definition:
qdeclarativejsgrammar_p.h:104
QDeclarativeJSGrammar::T_FEED_JS_PROGRAM
Definition:
qdeclarativejsgrammar_p.h:94
QT_END_NAMESPACE
#define QT_END_NAMESPACE
This macro expands to.
Definition:
qglobal.h:90
QDeclarativeJSGrammar::action_default
static const short action_default[]
Definition:
qdeclarativejsgrammar_p.h:182
QDeclarativeJSGrammar::T_IF
Definition:
qdeclarativejsgrammar_p.h:109
QDeclarativeJSGrammar::T_IDENTIFIER
Definition:
qdeclarativejsgrammar_p.h:108
QDeclarativeJSGrammar::T_REMAINDER
Definition:
qdeclarativejsgrammar_p.h:143
QDeclarativeJSGrammar::T_DIVIDE_EQ
Definition:
qdeclarativejsgrammar_p.h:85
QDeclarativeJSGrammar::T_IN
Definition:
qdeclarativejsgrammar_p.h:111
QDeclarativeJSGrammar::T_DELETE
Definition:
qdeclarativejsgrammar_p.h:83
QDeclarativeJSGrammar::T_DEBUGGER
Definition:
qdeclarativejsgrammar_p.h:81
QDeclarativeJSGrammar::T_COLON
Definition:
qdeclarativejsgrammar_p.h:76
QDeclarativeJSGrammar::T_STAR_EQ
Definition:
qdeclarativejsgrammar_p.h:151
QDeclarativeJSGrammar::RULE_COUNT
Definition:
qdeclarativejsgrammar_p.h:168
QDeclarativeJSGrammar::T_DEFAULT
Definition:
qdeclarativejsgrammar_p.h:82
QDeclarativeJSGrammar::T_BREAK
Definition:
qdeclarativejsgrammar_p.h:73
QDeclarativeJSGrammar::T_FEED_UI_OBJECT_MEMBER
Definition:
qdeclarativejsgrammar_p.h:97
QDeclarativeJSGrammar::goto_default
static const short goto_default[]
Definition:
qdeclarativejsgrammar_p.h:181
QDeclarativeJSGrammar::T_ELSE
Definition:
qdeclarativejsgrammar_p.h:88
QDeclarativeJSGrammar::GOTO_INFO_OFFSET
Definition:
qdeclarativejsgrammar_p.h:174
QDeclarativeJSGrammar::T_INSTANCEOF
Definition:
qdeclarativejsgrammar_p.h:112
QDeclarativeJSGrammar::rhs
static const short rhs[]
Definition:
qdeclarativejsgrammar_p.h:180
QDeclarativeJSGrammar::T_REMAINDER_EQ
Definition:
qdeclarativejsgrammar_p.h:144
QDeclarativeJSGrammar::T_EQ_EQ
Definition:
qdeclarativejsgrammar_p.h:90
QDeclarativeJSGrammar::T_LT
Definition:
qdeclarativejsgrammar_p.h:117
QDeclarativeJSGrammar::EOF_SYMBOL
Definition:
qdeclarativejsgrammar_p.h:65
QDeclarativeJSGrammar::T_WITH
Definition:
qdeclarativejsgrammar_p.h:163
QDeclarativeJSGrammar::T_FINALLY
Definition:
qdeclarativejsgrammar_p.h:99
QDeclarativeJSGrammar::T_CONTINUE
Definition:
qdeclarativejsgrammar_p.h:80
QDeclarativeJSGrammar::lhs
static const short lhs[]
Definition:
qdeclarativejsgrammar_p.h:179
QDeclarativeJSGrammar::T_GT_GT_GT_EQ
Definition:
qdeclarativejsgrammar_p.h:107
QDeclarativeJSGrammar::GOTO_CHECK_OFFSET
Definition:
qdeclarativejsgrammar_p.h:175
QDeclarativeJSGrammar::T_PLUS
Definition:
qdeclarativejsgrammar_p.h:134
QDeclarativeJSGrammar::T_IMPORT
Definition:
qdeclarativejsgrammar_p.h:110
QDeclarativeJSGrammar::T_VAR
Definition:
qdeclarativejsgrammar_p.h:160
QDeclarativeJSGrammar::T_NOT_EQ_EQ
Definition:
qdeclarativejsgrammar_p.h:127
QDeclarativeJSGrammar::T_AUTOMATIC_SEMICOLON
Definition:
qdeclarativejsgrammar_p.h:72
QDeclarativeJSGrammar::T_LT_LT
Definition:
qdeclarativejsgrammar_p.h:118
QDeclarativeJSGrammar::T_RBRACE
Definition:
qdeclarativejsgrammar_p.h:140
QDeclarativeJSGrammar::T_CONST
Definition:
qdeclarativejsgrammar_p.h:79
QT_BEGIN_NAMESPACE
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition:
qglobal.h:89
QDeclarativeJSGrammar::T_EQ_EQ_EQ
Definition:
qdeclarativejsgrammar_p.h:91
QDeclarativeJSGrammar::T_GT_GT_GT
Definition:
qdeclarativejsgrammar_p.h:106
QDeclarativeJSGrammar::T_DIVIDE_
Definition:
qdeclarativejsgrammar_p.h:84
QDeclarativeJSGrammar::spell
static const char *const spell[]
Definition:
qdeclarativejsgrammar_p.h:178
QDeclarativeJSGrammar::T_VOID
Definition:
qdeclarativejsgrammar_p.h:161
QDeclarativeJSGrammar::SHIFT_THERE
Definition:
qdeclarativejsgrammar_p.h:67
QDeclarativeJSGrammar::T_READONLY
Definition:
qdeclarativejsgrammar_p.h:142
QDeclarativeJSGrammar::T_COMMA
Definition:
qdeclarativejsgrammar_p.h:77
QDeclarativeJSGrammar::T_EQ
Definition:
qdeclarativejsgrammar_p.h:89
QDeclarativeJSGrammar::T_TILDE
Definition:
qdeclarativejsgrammar_p.h:156
QDeclarativeJSGrammar::T_FEED_JS_EXPRESSION
Definition:
qdeclarativejsgrammar_p.h:93
QDeclarativeJSGrammar::T_NOT
Definition:
qdeclarativejsgrammar_p.h:125
QDeclarativeJSGrammar::T_LE
Definition:
qdeclarativejsgrammar_p.h:115
QDeclarativeJSGrammar::T_STAR
Definition:
qdeclarativejsgrammar_p.h:150
QDeclarativeJSGrammar::REDUCE_HERE
Definition:
qdeclarativejsgrammar_p.h:66
QDeclarativeJSGrammar::T_NUMERIC_LITERAL
Definition:
qdeclarativejsgrammar_p.h:129
QDeclarativeJSGrammar::T_MINUS
Definition:
qdeclarativejsgrammar_p.h:120
QDeclarativeJSGrammar::T_RETURN
Definition:
qdeclarativejsgrammar_p.h:146
QDeclarativeJSGrammar::T_ON
Definition:
qdeclarativejsgrammar_p.h:130
QDeclarativeJSGrammar::T_LT_LT_EQ
Definition:
qdeclarativejsgrammar_p.h:119
QDeclarativeJSGrammar::T_THIS
Definition:
qdeclarativejsgrammar_p.h:154
QDeclarativeJSGrammar::T_LPAREN
Definition:
qdeclarativejsgrammar_p.h:116
QDeclarativeJSGrammar::T_LBRACE
Definition:
qdeclarativejsgrammar_p.h:113
QDeclarativeJSGrammar::T_XOR_EQ
Definition:
qdeclarativejsgrammar_p.h:165
QDeclarativeJSGrammar::T_FEED_JS_STATEMENT
Definition:
qdeclarativejsgrammar_p.h:96
QDeclarativeJSGrammar::T_SEMICOLON
Definition:
qdeclarativejsgrammar_p.h:148
QDeclarativeJSGrammar::T_MULTILINE_STRING_LITERAL
Definition:
qdeclarativejsgrammar_p.h:123
nt
#define nt(var, enu)
QDeclarativeJSGrammar::T_STRING_LITERAL
Definition:
qdeclarativejsgrammar_p.h:152
QDeclarativeJSGrammar::ACCEPT_STATE
Definition:
qdeclarativejsgrammar_p.h:167
QDeclarativeJSGrammar::T_DOT
Definition:
qdeclarativejsgrammar_p.h:87
QDeclarativeJSGrammar::T_TRUE
Definition:
qdeclarativejsgrammar_p.h:157
QDeclarativeJSGrammar::nt_action
static int nt_action(int state, int nt)
Definition:
qdeclarativejsgrammar_p.h:187
QDeclarativeJSGrammar::T_COMMENT
Definition:
qdeclarativejsgrammar_p.h:78
QDeclarativeJSGrammar::T_GT_GT_EQ
Definition:
qdeclarativejsgrammar_p.h:105
QDeclarativeJSGrammar
Definition:
qdeclarativejsgrammar_p.h:61
QDeclarativeJSGrammar::t_action
static int t_action(int state, int token)
Definition:
qdeclarativejsgrammar_p.h:196
QDeclarativeJSGrammar::T_SWITCH
Definition:
qdeclarativejsgrammar_p.h:153
QDeclarativeJSGrammar::T_MINUS_EQ
Definition:
qdeclarativejsgrammar_p.h:121
QDeclarativeJSGrammar::STATE_COUNT
Definition:
qdeclarativejsgrammar_p.h:169
QDeclarativeJSGrammar::T_FOR
Definition:
qdeclarativejsgrammar_p.h:100
QDeclarativeJSGrammar::T_DO
Definition:
qdeclarativejsgrammar_p.h:86
QDeclarativeJSGrammar::T_AND
Definition:
qdeclarativejsgrammar_p.h:68
QDeclarativeJSGrammar::T_AS
Definition:
qdeclarativejsgrammar_p.h:71
QDeclarativeJSGrammar::T_PLUS_PLUS
Definition:
qdeclarativejsgrammar_p.h:136
QDeclarativeJSGrammar::T_FUNCTION
Definition:
qdeclarativejsgrammar_p.h:101
QDeclarativeJSGrammar::T_PUBLIC
Definition:
qdeclarativejsgrammar_p.h:138
QDeclarativeJSGrammar::T_OR_EQ
Definition:
qdeclarativejsgrammar_p.h:132
QDeclarativeJSGrammar::T_WHILE
Definition:
qdeclarativejsgrammar_p.h:162
QDeclarativeJSGrammar::T_GE
Definition:
qdeclarativejsgrammar_p.h:102
QDeclarativeJSGrammar::T_OR
Definition:
qdeclarativejsgrammar_p.h:131
QDeclarativeJSGrammar::T_SIGNAL
Definition:
qdeclarativejsgrammar_p.h:149
QDeclarativeJSGrammar::T_THROW
Definition:
qdeclarativejsgrammar_p.h:155
QDeclarativeJSGrammar::T_CASE
Definition:
qdeclarativejsgrammar_p.h:74
QDeclarativeJSGrammar::T_AND_EQ
Definition:
qdeclarativejsgrammar_p.h:70
QDeclarativeJSGrammar::T_GT
Definition:
qdeclarativejsgrammar_p.h:103
QDeclarativeJSGrammar::T_PLUS_EQ
Definition:
qdeclarativejsgrammar_p.h:135
QDeclarativeJSGrammar::T_NEW
Definition:
qdeclarativejsgrammar_p.h:124
QDeclarativeJSGrammar::GOTO_INDEX_OFFSET
Definition:
qdeclarativejsgrammar_p.h:173
QDeclarativeJSGrammar::VariousConstants
VariousConstants
Definition:
qdeclarativejsgrammar_p.h:64
QDeclarativeJSGrammar::TERMINAL_COUNT
Definition:
qdeclarativejsgrammar_p.h:170
QDeclarativeJSGrammar::T_LBRACKET
Definition:
qdeclarativejsgrammar_p.h:114
QDeclarativeJSGrammar::T_CATCH
Definition:
qdeclarativejsgrammar_p.h:75
QDeclarativeJSGrammar::T_FEED_JS_SOURCE_ELEMENT
Definition:
qdeclarativejsgrammar_p.h:95
QDeclarativeJSGrammar::T_FEED_UI_PROGRAM
Definition:
qdeclarativejsgrammar_p.h:98
QDeclarativeJSGrammar::T_NULL
Definition:
qdeclarativejsgrammar_p.h:128
QDeclarativeJSGrammar::T_OR_OR
Definition:
qdeclarativejsgrammar_p.h:133
QDeclarativeJSGrammar::T_AND_AND
Definition:
qdeclarativejsgrammar_p.h:69
QDeclarativeJSGrammar::T_NOT_EQ
Definition:
qdeclarativejsgrammar_p.h:126
QDeclarativeJSGrammar::T_XOR
Definition:
qdeclarativejsgrammar_p.h:164
QDeclarativeJSGrammar::action_index
static const short action_index[]
Definition:
qdeclarativejsgrammar_p.h:183
QDeclarativeJSGrammar::action_check
static const short action_check[]
Definition:
qdeclarativejsgrammar_p.h:185
QDeclarativeJSGrammar::T_TYPEOF
Definition:
qdeclarativejsgrammar_p.h:159
QDeclarativeJSGrammar::T_PROPERTY
Definition:
qdeclarativejsgrammar_p.h:137
QDeclarativeJSGrammar::T_MINUS_MINUS
Definition:
qdeclarativejsgrammar_p.h:122
QDeclarativeJSGrammar::NON_TERMINAL_COUNT
Definition:
qdeclarativejsgrammar_p.h:171
QDeclarativeJSGrammar::T_FALSE
Definition:
qdeclarativejsgrammar_p.h:92
QDeclarativeJSGrammar::T_RESERVED_WORD
Definition:
qdeclarativejsgrammar_p.h:145
QDeclarativeJSGrammar::T_RBRACKET
Definition:
qdeclarativejsgrammar_p.h:141
QDeclarativeJSGrammar::T_TRY
Definition:
qdeclarativejsgrammar_p.h:158
QDeclarativeJSGrammar::T_QUESTION
Definition:
qdeclarativejsgrammar_p.h:139
QDeclarativeJSGrammar::T_RPAREN
Definition:
qdeclarativejsgrammar_p.h:147
Qt 4.8 Source Code Browser