Debian Codegraph @

src/script/parser/qscriptparser_p.h

raw symbols SCIP
1 /****************************************************************************
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd.
4 ** Contact: http://www.qt.io/licensing/
5 **
6 ** This file is part of the QtScript module of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
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 Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 3 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL3 included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 3 requirements
23 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
24 **
25 ** GNU General Public License Usage
26 ** Alternatively, this file may be used under the terms of the GNU
27 ** General Public License version 2.0 or (at your option) the GNU General
28 ** Public license version 3 or any later version approved by the KDE Free
29 ** Qt Foundation. The licenses are as published by the Free Software
30 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
31 ** included in the packaging of this file. Please review the following
32 ** information to ensure the GNU General Public License requirements will
33 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
34 ** https://www.gnu.org/licenses/gpl-3.0.html.
35 **
36 ** $QT_END_LICENSE$
37 **
38 ****************************************************************************/
39
40 // This file was generated by qlalr - DO NOT EDIT!
41
42
43 //
44 // W A R N I N G
45 // -------------
46 //
47 // This file is not part of the Qt API. It exists purely as an
48 // implementation detail. This header file may change from version to
49 // version without notice, or even be removed.
50 //
51 // We mean it.
52 //
53
54 //
55 // This file is automatically generated from qscript.g.
56 // Changes will be lost.
57 //
58
59 #ifndef QSCRIPTPARSER_P_H
60 #define QSCRIPTPARSER_P_Hcxx . . $ `src/script/parser/qscriptparser_p.h:60:9`!
61
62 #include "qscriptgrammar_p.h"cxx . . $ `<file>/src/script/parser/qscriptgrammar_p.h`/
63
64 #include "qscriptastfwd_p.h"cxx . . $ `<file>/src/script/parser/qscriptastfwd_p.h`/
65
66 #include <stdlib.h>
67
68 QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`!
69
70 class QStringcxx . . $ QString#;
71 class QScriptEnginePrivatecxx . . $ QScriptEnginePrivate#;
72 class QScriptNameIdImplcxx . . $ QScriptNameIdImpl#;
73
74 class QScriptParsercxx . . $ QScriptParser#: protected QScriptGrammarcxx . . $ QScriptGrammar#
75 {
76 public:
77 union Valuecxx . . $ QScriptParser#Value# {
78 int ivalcxx . . $ QScriptParser#Value#ival.;
79 double dvalcxx . . $ QScriptParser#Value#dval.;
80 QScriptNameIdImplcxx . . $ QScriptNameIdImpl# *svalcxx . . $ QScriptParser#Value#sval.;
81 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::ArgumentListcxx . . $ QScript/AST/ArgumentList# *ArgumentListcxx . . $ QScriptParser#Value#ArgumentList.;
82 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::CaseBlockcxx . . $ QScript/AST/CaseBlock# *CaseBlockcxx . . $ QScriptParser#Value#CaseBlock.;
83 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::CaseClausecxx . . $ QScript/AST/CaseClause# *CaseClausecxx . . $ QScriptParser#Value#CaseClause.;
84 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::CaseClausescxx . . $ QScript/AST/CaseClauses# *CaseClausescxx . . $ QScriptParser#Value#CaseClauses.;
85 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::Catchcxx . . $ QScript/AST/Catch# *Catchcxx . . $ QScriptParser#Value#Catch.;
86 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::DefaultClausecxx . . $ QScript/AST/DefaultClause# *DefaultClausecxx . . $ QScriptParser#Value#DefaultClause.;
87 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::ElementListcxx . . $ QScript/AST/ElementList# *ElementListcxx . . $ QScriptParser#Value#ElementList.;
88 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::Elisioncxx . . $ QScript/AST/Elision# *Elisioncxx . . $ QScriptParser#Value#Elision.;
89 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::ExpressionNodecxx . . $ QScript/AST/ExpressionNode# *Expressioncxx . . $ QScriptParser#Value#Expression.;
90 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::Finallycxx . . $ QScript/AST/Finally# *Finallycxx . . $ QScriptParser#Value#Finally.;
91 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::FormalParameterListcxx . . $ QScript/AST/FormalParameterList# *FormalParameterListcxx . . $ QScriptParser#Value#FormalParameterList.;
92 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::FunctionBodycxx . . $ QScript/AST/FunctionBody# *FunctionBodycxx . . $ QScriptParser#Value#FunctionBody.;
93 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::FunctionDeclarationcxx . . $ QScript/AST/FunctionDeclaration# *FunctionDeclarationcxx . . $ QScriptParser#Value#FunctionDeclaration.;
94 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::Nodecxx . . $ QScript/AST/Node# *Nodecxx . . $ QScriptParser#Value#Node.;
95 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::PropertyNamecxx . . $ QScript/AST/PropertyName# *PropertyNamecxx . . $ QScriptParser#Value#PropertyName.;
96 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::PropertyNameAndValueListcxx . . $ QScript/AST/PropertyNameAndValueList# *PropertyNameAndValueListcxx . . $ QScriptParser#Value#PropertyNameAndValueList.;
97 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::SourceElementcxx . . $ QScript/AST/SourceElement# *SourceElementcxx . . $ QScriptParser#Value#SourceElement.;
98 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::SourceElementscxx . . $ QScript/AST/SourceElements# *SourceElementscxx . . $ QScriptParser#Value#SourceElements.;
99 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::Statementcxx . . $ QScript/AST/Statement# *Statementcxx . . $ QScriptParser#Value#Statement.;
100 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::StatementListcxx . . $ QScript/AST/StatementList# *StatementListcxx . . $ QScriptParser#Value#StatementList.;
101 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::VariableDeclarationcxx . . $ QScript/AST/VariableDeclaration# *VariableDeclarationcxx . . $ QScriptParser#Value#VariableDeclaration.;
102 QScriptcxx . . $ QScript/::ASTcxx . . $ QScript/AST/::VariableDeclarationListcxx . . $ QScript/AST/VariableDeclarationList# *VariableDeclarationListcxx . . $ QScriptParser#Value#VariableDeclarationList.;
103 };
104
105 struct Locationcxx . . $ QScriptParser#Location# {
106 int startLinecxx . . $ QScriptParser#Location#startLine.;
107 int startColumncxx . . $ QScriptParser#Location#startColumn.;
108 int endLinecxx . . $ QScriptParser#Location#endLine.;
109 int endColumncxx . . $ QScriptParser#Location#endColumn.;
110 };
111
112 public:
113 QScriptParsercxx . . $ QScriptParser#QScriptParser(49f6e7a06ebc5aa8).();
114 ~cxx . . $ QScriptParser#`~QScriptParser`(49f6e7a06ebc5aa8).QScriptParsercxx . . $ QScriptParser#();
115
116 bool parsecxx . . $ QScriptParser#parse(38d83615ac6445ca).(QScriptEnginePrivatecxx . . $ QScriptEnginePrivate# *driver);
117
118 inline QStringcxx . . $ QString# errorMessagecxx . . $ QScriptParser#errorMessage(6ef7b6c27b00b43d).() const
119 { return error_messagecxx . . $ QString#QString(3520e46b33348bf6).; }
120 inline int errorLineNumbercxx . . $ QScriptParser#errorLineNumber(455f465bc33b4cdf).() const
121 { return error_linenocxx . . $ QScriptParser#error_lineno.; }
122 inline int errorColumnNumbercxx . . $ QScriptParser#errorColumnNumber(455f465bc33b4cdf).() const
123 { return error_columncxx . . $ QScriptParser#error_column.; }
124
125 protected:
126 inline void reallocateStackcxx . . $ QScriptParser#reallocateStack(49f6e7a06ebc5aa8).();
127
128 inline Valuecxx . . $ QScriptParser#Value# &symcxx . . $ QScriptParser#sym(2221e7039d0ffb70).(int index)
129 { return sym_stackcxx . . $ QScriptParser#sym_stack. [toscxx . . $ QScriptParser#tos. + index - 1]; }
130
131 inline Locationcxx . . $ QScriptParser#Location# &loccxx . . $ QScriptParser#loc(32e1499272cd3f24).(int index)
132 { return location_stackcxx . . $ QScriptParser#location_stack. [toscxx . . $ QScriptParser#tos. + index - 2]; }
133
134 protected:
135 int toscxx . . $ QScriptParser#tos.;
136 int stack_sizecxx . . $ QScriptParser#stack_size.;
137 Valuecxx . . $ QScriptParser#Value# *sym_stackcxx . . $ QScriptParser#sym_stack.;
138 int *state_stackcxx . . $ QScriptParser#state_stack.;
139 Locationcxx . . $ QScriptParser#Location# *location_stackcxx . . $ QScriptParser#location_stack.;
140 QStringcxx . . $ QString# error_messagecxx . . $ QScriptParser#error_message.;
141 int error_linenocxx . . $ QScriptParser#error_lineno.;
142 int error_columncxx . . $ QScriptParser#error_column.;
143 };
144
145 inline void QScriptParsercxx . . $ QScriptParser#::reallocateStackcxx . . $ QScriptParser#reallocateStack(49f6e7a06ebc5aa8).()
146 {
147 if (! stack_sizecxx . . $ QScriptParser#stack_size.)
148 stack_sizecxx . . $ QScriptParser#stack_size. = 128;
149 else
150 stack_sizecxx . . $ QScriptParser#stack_size. <<= 1;
151
152 sym_stackcxx . . $ QScriptParser#sym_stack. = reinterpret_cast<Valuecxx . . $ QScriptParser#Value#*> (realloccxx . . $ realloc(417ab160f6baadc6).(sym_stackcxx . . $ QScriptParser#sym_stack., stack_sizecxx . . $ QScriptParser#stack_size. * sizeof(Valuecxx . . $ QScriptParser#Value#)));
153 state_stackcxx . . $ QScriptParser#state_stack. = reinterpret_cast<int*> (realloccxx . . $ realloc(417ab160f6baadc6).(state_stackcxx . . $ QScriptParser#state_stack., stack_sizecxx . . $ QScriptParser#stack_size. * sizeof(int)));
154 location_stackcxx . . $ QScriptParser#location_stack. = reinterpret_cast<Locationcxx . . $ QScriptParser#Location#*> (realloccxx . . $ realloc(417ab160f6baadc6).(location_stackcxx . . $ QScriptParser#location_stack., stack_sizecxx . . $ QScriptParser#stack_size. * sizeof(Locationcxx . . $ QScriptParser#Location#)));
155 }
156
157
158 #define Q_SCRIPT_REGEXPLITERAL_RULE1cxx . . $ `src/script/parser/qscriptparser_p.h:158:9`! 7
159
160 #define Q_SCRIPT_REGEXPLITERAL_RULE2cxx . . $ `src/script/parser/qscriptparser_p.h:160:9`! 8
161
162 QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`!
163
164 #endif // QSCRIPTPARSER_P_H