summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qxmlstreamgrammar_p.h
blob: 80ee8e929f51b133b3c7310c67b080a83a34186b (plain)
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
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API.  It exists for the convenience
// of other Qt classes.  This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//

// This file was generated by qlalr - DO NOT EDIT!
#ifndef QXMLSTREAMGRAMMAR_P_H
#define QXMLSTREAMGRAMMAR_P_H

#include <QtCore/qglobal.h>

QT_BEGIN_NAMESPACE

class QXmlStreamGrammar
{
public:
    enum VariousConstants {
        EOF_SYMBOL = 0,
        AMPERSAND = 5,
        ANY = 41,
        ATTLIST = 31,
        BANG = 25,
        CDATA = 47,
        CDATA_START = 28,
        COLON = 17,
        COMMA = 19,
        DASH = 20,
        DBLQUOTE = 8,
        DIGIT = 27,
        DOCTYPE = 29,
        DOT = 23,
        ELEMENT = 30,
        EMPTY = 40,
        ENTITIES = 51,
        ENTITY = 32,
        ENTITY_DONE = 45,
        EQ = 14,
        FIXED = 39,
        HASH = 6,
        ID = 48,
        IDREF = 49,
        IDREFS = 50,
        IMPLIED = 38,
        LANGLE = 3,
        LBRACK = 9,
        LETTER = 26,
        LPAREN = 11,
        NDATA = 36,
        NMTOKEN = 52,
        NMTOKENS = 53,
        NOTATION = 33,
        NOTOKEN = 1,
        PARSE_ENTITY = 44,
        PCDATA = 42,
        PERCENT = 15,
        PIPE = 13,
        PLUS = 21,
        PUBLIC = 35,
        QUESTIONMARK = 24,
        QUOTE = 7,
        RANGLE = 4,
        RBRACK = 10,
        REQUIRED = 37,
        RPAREN = 12,
        SEMICOLON = 18,
        SHIFT_THERE = 56,
        SLASH = 16,
        SPACE = 2,
        STAR = 22,
        SYSTEM = 34,
        UNRESOLVED_ENTITY = 46,
        VERSION = 55,
        XML = 54,
        XML_ERROR = 43,

        ACCEPT_STATE = 416,
        RULE_COUNT = 270,
        STATE_COUNT = 427,
        TERMINAL_COUNT = 57,
        NON_TERMINAL_COUNT = 84,

        GOTO_INDEX_OFFSET = 427,
        GOTO_INFO_OFFSET = 1030,
        GOTO_CHECK_OFFSET = 1030
    };

    static const char *const     spell[];
    static const short             lhs[];
    static const short             rhs[];
    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];
    }
};


QT_END_NAMESPACE
#endif // QXMLSTREAMGRAMMAR_P_H