Debian Codegraph @

src/script/parser/qscriptsyntaxchecker_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 #ifndef QSCRIPTSYNTAXCHECKER_H
41 #define QSCRIPTSYNTAXCHECKER_Hcxx . . $ `src/script/parser/qscriptsyntaxchecker_p.h:41:9`!
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 #include <QtCore/qstring.h>
55
56 #include "qscriptgrammar_p.h"cxx . . $ `<file>/src/script/parser/qscriptgrammar_p.h`/
57
58 #include <stdlib.h>
59
60 QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`!
61
62 namespace QScriptcxx . . $ QScript/ {
63
64 class Lexercxx . . $ QScript/Lexer#;
65
66 class SyntaxCheckercxx . . $ QScript/SyntaxChecker#: protected QScriptGrammarcxx . . $ QScriptGrammar#
67 {
68 public:
69 enum Statecxx . . $ QScript/SyntaxChecker#State# {
70 Errorcxx . . $ QScript/SyntaxChecker#Error.,
71 Intermediatecxx . . $ QScript/SyntaxChecker#Intermediate.,
72 Validcxx . . $ QScript/SyntaxChecker#Valid.,
73 };
74
75 struct Resultcxx . . $ QScript/SyntaxChecker#Result# {
76 Resultcxx . . $ QScript/SyntaxChecker#Result#Result(3b6f3d3f1a8743f1).(Statecxx . . $ QScript/SyntaxChecker#State# s, int ln, int col, const QStringcxx . . $ QString# &msg)
77 : statecxx . . $ QScript/SyntaxChecker#Result#state.(s), errorLineNumbercxx . . $ QScript/SyntaxChecker#Result#errorLineNumber.(ln), errorColumnNumbercxx . . $ QScript/SyntaxChecker#Result#errorColumnNumber.(col),
78 errorMessagecxx . . $ QString#QString(3520e46b33348bf6).(msg) {}
79 Statecxx . . $ QScript/SyntaxChecker#State# statecxx . . $ QScript/SyntaxChecker#Result#state.;
80 int errorLineNumbercxx . . $ QScript/SyntaxChecker#Result#errorLineNumber.;
81 int errorColumnNumbercxx . . $ QScript/SyntaxChecker#Result#errorColumnNumber.;
82 QStringcxx . . $ QString# errorMessagecxx . . $ QScript/SyntaxChecker#Result#errorMessage.;
83 };
84
85 SyntaxCheckercxx . . $ QScript/SyntaxChecker#SyntaxChecker(49f6e7a06ebc5aa8).();
86 ~cxx . . $ QScript/SyntaxChecker#`~SyntaxChecker`(49f6e7a06ebc5aa8).SyntaxCheckercxx . . $ QScript/SyntaxChecker#();
87
88 Resultcxx . . $ QScript/SyntaxChecker#Result# checkSyntaxcxx . . $ QScript/SyntaxChecker#checkSyntax(d85f745830e75066).(const QStringcxx . . $ QString# &code);
89
90 protected:
91 bool automaticcxx . . $ QScript/SyntaxChecker#automatic(eb0312c6a213be5).(QScriptcxx . . $ QScript/::Lexercxx . . $ QScript/Lexer# *lexer, int token) const;
92 inline void reallocateStackcxx . . $ QScript/SyntaxChecker#reallocateStack(49f6e7a06ebc5aa8).();
93
94 protected:
95 int toscxx . . $ QScript/SyntaxChecker#tos.;
96 int stack_sizecxx . . $ QScript/SyntaxChecker#stack_size.;
97 int *state_stackcxx . . $ QScript/SyntaxChecker#state_stack.;
98 };
99
100 inline void SyntaxCheckercxx . . $ QScript/SyntaxChecker#::reallocateStackcxx . . $ QScript/SyntaxChecker#reallocateStack(49f6e7a06ebc5aa8).()
101 {
102 if (! stack_sizecxx . . $ QScript/SyntaxChecker#stack_size.)
103 stack_sizecxx . . $ QScript/SyntaxChecker#stack_size. = 128;
104 else
105 stack_sizecxx . . $ QScript/SyntaxChecker#stack_size. <<= 1;
106
107 state_stackcxx . . $ QScript/SyntaxChecker#state_stack. = reinterpret_cast<int*> (realloccxx . . $ realloc(417ab160f6baadc6).(state_stackcxx . . $ QScript/SyntaxChecker#state_stack., stack_sizecxx . . $ QScript/SyntaxChecker#stack_size. * sizeof(int)));
108 }
109
110 } // namespace QScript
111
112 QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`!
113
114 #endif