1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:GPL-EXCEPT$
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 General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU
19** General Public License version 3 as published by the Free Software
20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21** included in the packaging of this file. Please review the following
22** information to ensure the GNU General Public License requirements will
23** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24**
25** $QT_END_LICENSE$
26**
27****************************************************************************/
28
29// This file was generated by qlalr - DO NOT EDIT!
30#include "grammar_p.h"
31
32QT_BEGIN_NAMESPACE
33
34const char *const grammar::spell [] = {
35 "end of file", "identifier", "string literal", "%decl", "%expect", "%expect-lr", "%impl", "%left", "%merged_output", "%nonassoc",
36 "%parser", "%prec", "%right", "%start", "%token", "%token_prefix", ":", "|", ";", 0,
37 0, 0
38};
39
40const short grammar::lhs [] = {
41 22, 23, 23, 29, 25, 28, 28, 28, 28, 28,
42 28, 28, 24, 24, 31, 32, 32, 33, 33, 34,
43 34, 34, 31, 35, 35, 36, 37, 37, 38, 38,
44 30, 30, 26, 26, 40, 39, 41, 41, 44, 43,
45 43, 42, 42, 27, 45
46};
47
48const short grammar::rhs [] = {
49 4, 1, 2, 2, 2, 2, 2, 2, 2, 2,
50 2, 2, 1, 2, 2, 1, 2, 2, 2, 1,
51 1, 1, 2, 1, 2, 1, 1, 1, 1, 2,
52 0, 1, 1, 2, 2, 4, 3, 6, 0, 0,
53 2, 1, 2, 0, 2
54};
55
56const short grammar::action_default [] = {
57 44, 2, 44, 0, 0, 0, 0, 13, 0, 0,
58 3, 0, 0, 0, 8, 10, 11, 9, 7, 6,
59 12, 20, 22, 0, 21, 0, 44, 31, 0, 14,
60 26, 24, 23, 25, 4, 33, 1, 0, 34, 44,
61 35, 42, 39, 40, 0, 31, 44, 40, 43, 0,
62 31, 41, 29, 27, 28, 32, 38, 30, 36, 31,
63 37, 5, 44, 16, 15, 18, 19, 17, 45
64};
65
66const short grammar::goto_default [] = {
67 3, 2, 13, 26, 36, 41, 10, 27, 61, 29,
68 64, 63, 23, 32, 31, 52, 55, 38, 39, 42,
69 43, 59, 44, 0
70};
71
72const short grammar::action_index [] = {
73 -22, -22, 30, 1, 2, 3, 4, -22, 5, 6,
74 -22, 8, -1, 35, -22, -22, -22, -22, -22, -22,
75 -22, -22, -22, 13, -22, 7, -22, -2, 20, -22,
76 -22, -22, 11, -22, -22, -22, 15, -6, -22, -22,
77 -22, -22, -3, 19, -4, 12, -22, 18, -22, 10,
78 -2, -22, -22, -22, -22, -2, -22, -22, -22, -2,
79 -22, -22, 0, -22, 20, -22, -22, -22, -22,
80
81 0, -24, 3, -24, -24, -24, -24, -24, -24, -24,
82 -24, -24, -24, -24, -24, -24, -24, -24, -24, -24,
83 -24, -24, -24, -24, -24, -24, -2, -24, -24, -24,
84 -24, -24, -7, -24, -24, -24, -24, -24, -24, -24,
85 -24, -24, -24, -24, -24, 17, -19, -11, -24, -24,
86 1, -24, -24, -24, -24, -15, -24, -24, -24, -6,
87 -24, -24, -1, -24, -5, -24, -24, -24, -24
88};
89
90const short grammar::action_info [] = {
91 20, 68, 66, 14, 15, 16, 17, 18, 34, 19,
92 40, 51, 30, 46, 30, 45, 37, 53, 54, 48,
93 48, 62, 0, 0, 0, 0, 0, 0, 0, 49,
94 49, 53, 54, 4, 5, 6, 8, 0, 9, 0,
95 11, 0, 21, 0, 22, 12, 0, 24, 25, 28,
96 0, 0, 0, 0, 0, 0, 0,
97
98 57, 47, 60, 35, 65, 1, 67, 33, 7, 56,
99 50, 0, 0, 0, 0, 0, 0, 0, 0, 0,
100 0, 0, 0, 0, 0, 58, 0, 0, 0, 0,
101 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
102 0
103};
104
105const short grammar::action_check [] = {
106 1, 0, 2, 1, 1, 1, 1, 1, 1, 1,
107 16, 1, 1, 17, 1, 18, 1, 19, 20, 1,
108 1, 1, -1, -1, -1, -1, -1, -1, -1, 11,
109 11, 19, 20, 3, 4, 5, 6, -1, 8, -1,
110 10, -1, 7, -1, 9, 15, -1, 12, 13, 14,
111 -1, -1, -1, -1, -1, -1, -1,
112
113 15, 20, 8, 5, 5, 5, 11, 14, 5, 8,
114 21, -1, -1, -1, -1, -1, -1, -1, -1, -1,
115 -1, -1, -1, -1, -1, 8, -1, -1, -1, -1,
116 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
117 -1
118};
119
120QT_END_NAMESPACE
121

source code of qtbase/src/tools/qlalr/grammar.cpp