1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
// This file was generated by qlalr - DO NOT EDIT!
#ifndef QMLJSGRAMMAR_P_H
#define QMLJSGRAMMAR_P_H
#include "qmljsglobal_p.h"
class QML_PARSER_EXPORT QmlJSGrammar
{
public:
enum VariousConstants {
EOF_SYMBOL = 0,
REDUCE_HERE = 132,
T_AND = 1,
T_AND_AND = 2,
T_AND_EQ = 3,
T_ARROW = 96,
T_AS = 117,
T_AT = 90,
T_AUTOMATIC_SEMICOLON = 64,
T_BREAK = 4,
T_CASE = 5,
T_CATCH = 6,
T_CLASS = 103,
T_COLON = 7,
T_COMMA = 8,
T_COMMENT = 94,
T_COMPATIBILITY_SEMICOLON = 95,
T_COMPONENT = 109,
T_CONST = 88,
T_CONTINUE = 9,
T_DEBUGGER = 91,
T_DEFAULT = 10,
T_DELETE = 11,
T_DIVIDE_ = 12,
T_DIVIDE_EQ = 13,
T_DO = 14,
T_DOT = 15,
T_ELLIPSIS = 100,
T_ELSE = 16,
T_ENUM = 99,
T_EQ = 17,
T_EQ_EQ = 18,
T_EQ_EQ_EQ = 19,
T_ERROR = 121,
T_EXPORT = 106,
T_EXTENDS = 104,
T_FALSE = 87,
T_FEED_JS_EXPRESSION = 125,
T_FEED_JS_MODULE = 127,
T_FEED_JS_SCRIPT = 126,
T_FEED_JS_STATEMENT = 124,
T_FEED_UI_OBJECT_MEMBER = 123,
T_FEED_UI_PROGRAM = 122,
T_FINALLY = 20,
T_FOR = 21,
T_FORCE_BLOCK = 129,
T_FORCE_DECLARATION = 128,
T_FOR_LOOKAHEAD_OK = 130,
T_FROM = 107,
T_FUNCTION = 23,
T_FUNCTION_STAR = 22,
T_GE = 24,
T_GET = 119,
T_GT = 25,
T_GT_GT = 26,
T_GT_GT_EQ = 27,
T_GT_GT_GT = 28,
T_GT_GT_GT_EQ = 29,
T_IDENTIFIER = 30,
T_IF = 31,
T_IMPORT = 115,
T_IN = 32,
T_INSTANCEOF = 33,
T_LBRACE = 34,
T_LBRACKET = 35,
T_LE = 36,
T_LET = 89,
T_LPAREN = 37,
T_LT = 38,
T_LT_LT = 39,
T_LT_LT_EQ = 40,
T_MINUS = 41,
T_MINUS_EQ = 42,
T_MINUS_MINUS = 43,
T_MULTILINE_STRING_LITERAL = 93,
T_NEW = 44,
T_NOT = 45,
T_NOT_EQ = 46,
T_NOT_EQ_EQ = 47,
T_NO_SUBSTITUTION_TEMPLATE = 110,
T_NULL = 85,
T_NUMERIC_LITERAL = 48,
T_OF = 118,
T_ON = 131,
T_OR = 49,
T_OR_EQ = 51,
T_OR_OR = 52,
T_PLUS = 53,
T_PLUS_EQ = 54,
T_PLUS_PLUS = 55,
T_PRAGMA = 116,
T_PROPERTY = 70,
T_PUBLIC = 114,
T_QUESTION = 56,
T_QUESTION_DOT = 98,
T_QUESTION_QUESTION = 97,
T_RBRACE = 57,
T_RBRACKET = 58,
T_READONLY = 72,
T_REMAINDER = 59,
T_REMAINDER_EQ = 60,
T_REQUIRED = 108,
T_RESERVED_WORD = 92,
T_RETURN = 61,
T_RPAREN = 62,
T_SEMICOLON = 63,
T_SET = 120,
T_SIGNAL = 71,
T_STAR = 65,
T_STAR_EQ = 68,
T_STAR_STAR = 66,
T_STAR_STAR_EQ = 67,
T_STATIC = 105,
T_STRING_LITERAL = 69,
T_SUPER = 102,
T_SWITCH = 73,
T_TEMPLATE_HEAD = 111,
T_TEMPLATE_MIDDLE = 112,
T_TEMPLATE_TAIL = 113,
T_THEN = 133,
T_THIS = 74,
T_THROW = 75,
T_TILDE = 76,
T_TRUE = 86,
T_TRY = 77,
T_TYPEOF = 78,
T_VAR = 79,
T_VERSION_NUMBER = 50,
T_VOID = 80,
T_WHILE = 81,
T_WITH = 82,
T_WITHOUTAS = 134,
T_XOR = 83,
T_XOR_EQ = 84,
T_YIELD = 101,
ACCEPT_STATE = 1087,
RULE_COUNT = 617,
STATE_COUNT = 1088,
TERMINAL_COUNT = 135,
NON_TERMINAL_COUNT = 240,
GOTO_INDEX_OFFSET = 1088,
GOTO_INFO_OFFSET = 7358,
GOTO_CHECK_OFFSET = 7358
};
static const char *const spell[];
static const short lhs[];
static const short rhs[];
#ifndef QLALR_NO_QMLJSGRAMMAR_DEBUG_INFO
static const int rule_index[];
static const int rule_info[];
#endif // QLALR_NO_QMLJSGRAMMAR_DEBUG_INFO
static const short goto_default[];
static const short action_default[];
static const short action_index[];
static const short action_info[];
static const short action_check[];
static inline int nt_action (int state, int nt)
{
const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
return goto_default [nt];
return action_info [GOTO_INFO_OFFSET + yyn];
}
static inline int t_action (int state, int token)
{
const int yyn = action_index [state] + token;
if (yyn < 0 || action_check [yyn] != token)
return - action_default [state];
return action_info [yyn];
}
};
#endif // QMLJSGRAMMAR_P_H
|