Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qxmlstreamgrammar_p.h
Go to the documentation of this file.
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
19#include <QtCore/qglobal.h>
20
22
24{
25public:
29 ANY = 41,
30 ATTLIST = 31,
31 BANG = 25,
32 CDATA = 47,
34 COLON = 17,
35 COMMA = 19,
36 DASH = 20,
38 DIGIT = 27,
39 DOCTYPE = 29,
40 DOT = 23,
41 ELEMENT = 30,
42 EMPTY = 40,
44 ENTITY = 32,
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,
63 PCDATA = 42,
64 PERCENT = 15,
65 PIPE = 13,
66 PLUS = 21,
67 PUBLIC = 35,
69 QUOTE = 7,
70 RANGLE = 4,
71 RBRACK = 10,
73 RPAREN = 12,
76 SLASH = 16,
77 SPACE = 2,
78 STAR = 22,
79 SYSTEM = 34,
81 VERSION = 55,
82 XML = 54,
84
90
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};
125
127#endif // QXMLSTREAMGRAMMAR_P_H
128
static const short action_check[]
static const short goto_default[]
static int t_action(int state, int token)
static const short lhs[]
static const short rhs[]
static const short action_info[]
static const short action_index[]
static int nt_action(int state, int nt)
static const char *const spell[]
static const short action_default[]
else opt state
[0]
Token token
Definition keywords.cpp:444
Combined button and popup list for selecting options.