1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2020 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
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 The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/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 3 as published by the Free Software |
20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
21 | ** packaging of this file. Please review the following information to |
22 | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
24 | ** |
25 | ** GNU General Public License Usage |
26 | ** Alternatively, this file may be used under the terms of the GNU |
27 | ** General Public License version 2.0 or (at your option) the GNU General |
28 | ** Public license version 3 or any later version approved by the KDE Free |
29 | ** Qt Foundation. The licenses are as published by the Free Software |
30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
31 | ** included in the packaging of this file. Please review the following |
32 | ** information to ensure the GNU General Public License requirements will |
33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
35 | ** |
36 | ** $QT_END_LICENSE$ |
37 | ** |
38 | ****************************************************************************/ |
39 | |
40 | // |
41 | // W A R N I N G |
42 | // ------------- |
43 | // |
44 | // This file is not part of the Qt API. It exists for the convenience |
45 | // of other Qt classes. This header file may change from version to |
46 | // version without notice, or even be removed. |
47 | // |
48 | // We mean it. |
49 | // |
50 | |
51 | // This file was generated by qlalr - DO NOT EDIT! |
52 | #ifndef QXMLSTREAMGRAMMAR_P_H |
53 | #define QXMLSTREAMGRAMMAR_P_H |
54 | |
55 | #include <QtCore/qglobal.h> |
56 | |
57 | QT_BEGIN_NAMESPACE |
58 | |
59 | class QXmlStreamGrammar |
60 | { |
61 | public: |
62 | enum VariousConstants { |
63 | EOF_SYMBOL = 0, |
64 | AMPERSAND = 5, |
65 | ANY = 41, |
66 | ATTLIST = 31, |
67 | BANG = 25, |
68 | CDATA = 47, |
69 | CDATA_START = 28, |
70 | COLON = 17, |
71 | COMMA = 19, |
72 | DASH = 20, |
73 | DBLQUOTE = 8, |
74 | DIGIT = 27, |
75 | DOCTYPE = 29, |
76 | DOT = 23, |
77 | ELEMENT = 30, |
78 | EMPTY = 40, |
79 | ENTITIES = 51, |
80 | ENTITY = 32, |
81 | ENTITY_DONE = 45, |
82 | EQ = 14, |
83 | ERROR = 43, |
84 | FIXED = 39, |
85 | HASH = 6, |
86 | ID = 48, |
87 | IDREF = 49, |
88 | IDREFS = 50, |
89 | IMPLIED = 38, |
90 | LANGLE = 3, |
91 | LBRACK = 9, |
92 | LETTER = 26, |
93 | LPAREN = 11, |
94 | NDATA = 36, |
95 | NMTOKEN = 52, |
96 | NMTOKENS = 53, |
97 | NOTATION = 33, |
98 | NOTOKEN = 1, |
99 | PARSE_ENTITY = 44, |
100 | PCDATA = 42, |
101 | PERCENT = 15, |
102 | PIPE = 13, |
103 | PLUS = 21, |
104 | PUBLIC = 35, |
105 | QUESTIONMARK = 24, |
106 | QUOTE = 7, |
107 | RANGLE = 4, |
108 | RBRACK = 10, |
109 | REQUIRED = 37, |
110 | RPAREN = 12, |
111 | SEMICOLON = 18, |
112 | SHIFT_THERE = 56, |
113 | SLASH = 16, |
114 | SPACE = 2, |
115 | STAR = 22, |
116 | SYSTEM = 34, |
117 | UNRESOLVED_ENTITY = 46, |
118 | VERSION = 55, |
119 | XML = 54, |
120 | |
121 | ACCEPT_STATE = 416, |
122 | RULE_COUNT = 270, |
123 | STATE_COUNT = 427, |
124 | TERMINAL_COUNT = 57, |
125 | NON_TERMINAL_COUNT = 84, |
126 | |
127 | GOTO_INDEX_OFFSET = 427, |
128 | GOTO_INFO_OFFSET = 1030, |
129 | GOTO_CHECK_OFFSET = 1030 |
130 | }; |
131 | |
132 | static const char *const spell[]; |
133 | static const short lhs[]; |
134 | static const short rhs[]; |
135 | static const short goto_default[]; |
136 | static const short action_default[]; |
137 | static const short action_index[]; |
138 | static const short action_info[]; |
139 | static const short action_check[]; |
140 | |
141 | static inline int nt_action (int state, int nt) |
142 | { |
143 | const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt; |
144 | if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt) |
145 | return goto_default [nt]; |
146 | |
147 | return action_info [GOTO_INFO_OFFSET + yyn]; |
148 | } |
149 | |
150 | static inline int t_action (int state, int token) |
151 | { |
152 | const int yyn = action_index [state] + token; |
153 | |
154 | if (yyn < 0 || action_check [yyn] != token) |
155 | return - action_default [state]; |
156 | |
157 | return action_info [yyn]; |
158 | } |
159 | }; |
160 | |
161 | |
162 | QT_END_NAMESPACE |
163 | #endif // QXMLSTREAMGRAMMAR_P_H |
164 | |
165 | |