0
|
1 |
/****************************************************************************
|
|
2 |
**
|
|
3 |
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
** All rights reserved.
|
|
5 |
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
6 |
**
|
|
7 |
** This file is part of the utils of the Qt Toolkit.
|
|
8 |
**
|
|
9 |
** $QT_BEGIN_LICENSE:LGPL$
|
|
10 |
** No Commercial Usage
|
|
11 |
** This file contains pre-release code and may not be distributed.
|
|
12 |
** You may use this file in accordance with the terms and conditions
|
|
13 |
** contained in the Technology Preview License Agreement accompanying
|
|
14 |
** this package.
|
|
15 |
**
|
|
16 |
** GNU Lesser General Public License Usage
|
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
18 |
** General Public License version 2.1 as published by the Free Software
|
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
20 |
** packaging of this file. Please review the following information to
|
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
23 |
**
|
|
24 |
** In addition, as a special exception, Nokia gives you certain additional
|
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
27 |
**
|
|
28 |
** If you have questions regarding the use of this file, please contact
|
|
29 |
** Nokia at qt-info@nokia.com.
|
|
30 |
**
|
|
31 |
**
|
|
32 |
**
|
|
33 |
**
|
|
34 |
**
|
|
35 |
**
|
|
36 |
**
|
|
37 |
**
|
|
38 |
** $QT_END_LICENSE$
|
|
39 |
**
|
|
40 |
****************************************************************************/
|
|
41 |
|
|
42 |
#include "grammar_p.h"
|
|
43 |
|
|
44 |
const char *const grammar::spell [] = {
|
|
45 |
"end of file", "identifier", "string literal", "%decl", "%expect", "%expect-lr", "%impl", "%left", "%merged_output", "%nonassoc",
|
|
46 |
"%parser", "%prec", "%right", "%start", "%token", "%token_prefix", ":", "|", ";", 0,
|
|
47 |
0, 0};
|
|
48 |
|
|
49 |
const int grammar::lhs [] = {
|
|
50 |
22, 23, 23, 29, 25, 28, 28, 28, 28, 28,
|
|
51 |
28, 28, 24, 24, 31, 32, 32, 33, 33, 34,
|
|
52 |
34, 34, 31, 35, 35, 36, 37, 37, 38, 38,
|
|
53 |
30, 30, 26, 26, 40, 39, 41, 41, 44, 43,
|
|
54 |
43, 42, 42, 27, 45};
|
|
55 |
|
|
56 |
const int grammar:: rhs[] = {
|
|
57 |
4, 1, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
58 |
2, 2, 1, 2, 2, 1, 2, 2, 2, 1,
|
|
59 |
1, 1, 2, 1, 2, 1, 1, 1, 1, 2,
|
|
60 |
0, 1, 1, 2, 2, 4, 3, 6, 0, 0,
|
|
61 |
2, 1, 2, 0, 2};
|
|
62 |
|
|
63 |
const int grammar::action_default [] = {
|
|
64 |
44, 2, 44, 0, 0, 0, 0, 13, 0, 0,
|
|
65 |
3, 0, 0, 0, 8, 10, 11, 9, 7, 6,
|
|
66 |
12, 20, 22, 0, 21, 0, 44, 31, 0, 14,
|
|
67 |
26, 24, 23, 25, 4, 33, 1, 0, 34, 44,
|
|
68 |
35, 42, 39, 40, 0, 31, 44, 40, 43, 0,
|
|
69 |
31, 41, 29, 27, 28, 32, 38, 30, 36, 31,
|
|
70 |
37, 5, 44, 16, 15, 18, 19, 17, 45};
|
|
71 |
|
|
72 |
const int grammar::goto_default [] = {
|
|
73 |
3, 2, 13, 26, 36, 41, 10, 27, 61, 29,
|
|
74 |
64, 63, 23, 32, 31, 52, 55, 38, 39, 42,
|
|
75 |
43, 59, 44, 0};
|
|
76 |
|
|
77 |
const int grammar::action_index [] = {
|
|
78 |
-22, -22, 54, 1, 5, 15, 20, -22, -1, 6,
|
|
79 |
-22, 3, 2, 35, -22, -22, -22, -22, -22, -22,
|
|
80 |
-22, -22, -22, 10, -22, 7, -22, 14, 9, -22,
|
|
81 |
-22, -22, 8, -22, -22, -22, 11, -2, -22, -22,
|
|
82 |
-22, -22, -3, 16, 13, 14, -22, 17, -22, 4,
|
|
83 |
14, -22, -22, -22, -22, 14, -22, -22, -22, 14,
|
|
84 |
-22, -22, 0, -22, 12, -22, -22, -22, -22,
|
|
85 |
|
|
86 |
2, -24, -2, -24, -24, -24, -24, -24, -24, -24,
|
|
87 |
-24, -24, -24, -24, -24, -24, -24, -24, -24, -24,
|
|
88 |
-24, -24, -24, -24, -24, -24, -4, -24, -24, -24,
|
|
89 |
-24, -24, -14, -24, -24, -24, -24, -24, -24, -24,
|
|
90 |
-24, -24, -24, -24, -24, 0, -16, -15, -24, -24,
|
|
91 |
15, -24, -24, -24, -24, -10, -24, -24, -24, 1,
|
|
92 |
-24, -24, -3, -24, -1, -24, -24, -24, -24};
|
|
93 |
|
|
94 |
const int grammar::action_info [] = {
|
|
95 |
17, 68, 66, 20, 19, 51, 14, 18, 34, 30,
|
|
96 |
62, 30, 37, 62, 40, 45, 15, 48, 48, 0,
|
|
97 |
0, 16, 0, 0, 0, 0, 0, 49, 49, 0,
|
|
98 |
46, 0, 0, 53, 54, 0, 0, 0, 0, 0,
|
|
99 |
0, 0, 21, 0, 22, 0, 0, 24, 25, 28,
|
|
100 |
0, 0, 0, 0, 0, 0, 0, 4, 5, 6,
|
|
101 |
8, 0, 9, 0, 11, 0, 0, 0, 0, 12,
|
|
102 |
0, 0, 0, 0, 0, 0,
|
|
103 |
|
|
104 |
33, 35, 65, 7, 47, 57, 50, 1, 58, 60,
|
|
105 |
67, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
106 |
0, 0, 0, 56, 0, 0, 0, 0, 0, 0,
|
|
107 |
0, 0, 0, 0, 0, 0, 0, 0, 0};
|
|
108 |
|
|
109 |
const int grammar::action_check [] = {
|
|
110 |
1, 0, 2, 1, 1, 1, 1, 1, 1, 1,
|
|
111 |
1, 1, 1, 1, 16, 18, 1, 1, 1, -1,
|
|
112 |
-1, 1, -1, -1, -1, -1, -1, 11, 11, -1,
|
|
113 |
17, -1, -1, 19, 20, -1, -1, -1, -1, -1,
|
|
114 |
-1, -1, 7, -1, 9, -1, -1, 12, 13, 14,
|
|
115 |
-1, -1, -1, -1, -1, -1, -1, 3, 4, 5,
|
|
116 |
6, -1, 8, -1, 10, -1, -1, -1, -1, 15,
|
|
117 |
-1, -1, -1, -1, -1, -1,
|
|
118 |
|
|
119 |
14, 5, 5, 5, 20, 15, 21, 5, 8, 8,
|
|
120 |
11, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
121 |
-1, -1, -1, 8, -1, -1, -1, -1, -1, -1,
|
|
122 |
-1, -1, -1, -1, -1, -1, -1, -1, -1};
|
|
123 |
|