1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of other Qt classes. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15// This file was generated by qlalr - DO NOT EDIT!
16#ifndef QXMLSTREAMGRAMMAR_P_H
17#define QXMLSTREAMGRAMMAR_P_H
18
19#include <QtCore/qglobal.h>
20
21QT_BEGIN_NAMESPACE
22
23class QXmlStreamGrammar
24{
25public:
26 enum VariousConstants {
27 EOF_SYMBOL = 0,
28 AMPERSAND = 5,
29 ANY = 41,
30 ATTLIST = 31,
31 BANG = 25,
32 CDATA = 47,
33 CDATA_START = 28,
34 COLON = 17,
35 COMMA = 19,
36 DASH = 20,
37 DBLQUOTE = 8,
38 DIGIT = 27,
39 DOCTYPE = 29,
40 DOT = 23,
41 ELEMENT = 30,
42 EMPTY = 40,
43 ENTITIES = 51,
44 ENTITY = 32,
45 ENTITY_DONE = 45,
46 EQ = 14,
47 FIXED = 39,
48 HASH = 6,
49 ID = 48,
50 IDREF = 49,
51 IDREFS = 50,
52 IMPLIED = 38,
53 LANGLE = 3,
54 LBRACK = 9,
55 LETTER = 26,
56 LPAREN = 11,
57 NDATA = 36,
58 NMTOKEN = 52,
59 NMTOKENS = 53,
60 NOTATION = 33,
61 NOTOKEN = 1,
62 PARSE_ENTITY = 44,
63 PCDATA = 42,
64 PERCENT = 15,
65 PIPE = 13,
66 PLUS = 21,
67 PUBLIC = 35,
68 QUESTIONMARK = 24,
69 QUOTE = 7,
70 RANGLE = 4,
71 RBRACK = 10,
72 REQUIRED = 37,
73 RPAREN = 12,
74 SEMICOLON = 18,
75 SHIFT_THERE = 56,
76 SLASH = 16,
77 SPACE = 2,
78 STAR = 22,
79 SYSTEM = 34,
80 UNRESOLVED_ENTITY = 46,
81 VERSION = 55,
82 XML = 54,
83 XML_ERROR = 43,
84
85 ACCEPT_STATE = 416,
86 RULE_COUNT = 270,
87 STATE_COUNT = 427,
88 TERMINAL_COUNT = 57,
89 NON_TERMINAL_COUNT = 84,
90
91 GOTO_INDEX_OFFSET = 427,
92 GOTO_INFO_OFFSET = 1030,
93 GOTO_CHECK_OFFSET = 1030
94 };
95
96 static const char *const spell[];
97 static const short lhs[];
98 static const short rhs[];
99 static const short goto_default[];
100 static const short action_default[];
101 static const short action_index[];
102 static const short action_info[];
103 static const short action_check[];
104
105 static inline int nt_action (int state, int nt)
106 {
107 const int yyn = action_index [GOTO_INDEX_OFFSET + state] + nt;
108 if (yyn < 0 || action_check [GOTO_CHECK_OFFSET + yyn] != nt)
109 return goto_default [nt];
110
111 return action_info [GOTO_INFO_OFFSET + yyn];
112 }
113
114 static inline int t_action (int state, int token)
115 {
116 const int yyn = action_index [state] + token;
117
118 if (yyn < 0 || action_check [yyn] != token)
119 return - action_default [state];
120
121 return action_info [yyn];
122 }
123};
124
125
126QT_END_NAMESPACE
127#endif // QXMLSTREAMGRAMMAR_P_H
128
129

source code of qtbase/src/corelib/serialization/qxmlstreamgrammar_p.h