Debian Codegraph @

src/script/parser/qscriptlexer_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 QSCRIPTLEXER_P_H
41 #define QSCRIPTLEXER_P_Hcxx . . $ `src/script/parser/qscriptlexer_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 QT_BEGIN_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:148:10`!
57
58 class QScriptEnginePrivatecxx . . $ QScriptEnginePrivate#;
59 class QScriptNameIdImplcxx . . $ QScriptNameIdImpl#;
60
61 namespace QScriptcxx . . $ QScript/ {
62
63 class Lexercxx . . $ QScript/Lexer#
64 {
65 public:
66 Lexercxx . . $ QScript/Lexer#Lexer(db35ed4eaf341aaa).(QScriptEnginePrivatecxx . . $ QScriptEnginePrivate# *eng);
67 ~cxx . . $ QScript/Lexer#`~Lexer`(49f6e7a06ebc5aa8).Lexercxx . . $ QScript/Lexer#();
68
69 void setCodecxx . . $ QScript/Lexer#setCode(29ed8fcd127906b1).(const QStringcxx . . $ QString# &c, int lineno);
70 int lexcxx . . $ QScript/Lexer#lex(b126dc7c1de90089).();
71
72 int currentLineNocxx . . $ QScript/Lexer#currentLineNo(455f465bc33b4cdf).() const { return yylinenocxx . . $ QScript/Lexer#yylineno.; }
73 int currentColumnNocxx . . $ QScript/Lexer#currentColumnNo(455f465bc33b4cdf).() const { return yycolumncxx . . $ QScript/Lexer#yycolumn.; }
74
75 int startLineNocxx . . $ QScript/Lexer#startLineNo(455f465bc33b4cdf).() const { return startlinenocxx . . $ QScript/Lexer#startlineno.; }
76 int startColumnNocxx . . $ QScript/Lexer#startColumnNo(455f465bc33b4cdf).() const { return startcolumncxx . . $ QScript/Lexer#startcolumn.; }
77
78 int endLineNocxx . . $ QScript/Lexer#endLineNo(455f465bc33b4cdf).() const { return currentLineNocxx . . $ QScript/Lexer#currentLineNo(455f465bc33b4cdf).(); }
79 int endColumnNocxx . . $ QScript/Lexer#endColumnNo(455f465bc33b4cdf).() const
80 { int col = currentColumnNocxx . . $ QScript/Lexer#currentColumnNo(455f465bc33b4cdf).(); return (col > 0) ? col - 1 : col; }
81
82 bool prevTerminatorcxx . . $ QScript/Lexer#prevTerminator(50ce9a9e25b4a850).() const { return terminatorcxx . . $ QScript/Lexer#terminator.; }
83
84 enum Statecxx . . $ QScript/Lexer#State# { Startcxx . . $ QScript/Lexer#Start.,
85 Identifiercxx . . $ QScript/Lexer#Identifier.,
86 InIdentifiercxx . . $ QScript/Lexer#InIdentifier.,
87 InSingleLineCommentcxx . . $ QScript/Lexer#InSingleLineComment.,
88 InMultiLineCommentcxx . . $ QScript/Lexer#InMultiLineComment.,
89 InNumcxx . . $ QScript/Lexer#InNum.,
90 InNum0cxx . . $ QScript/Lexer#InNum0.,
91 InHexcxx . . $ QScript/Lexer#InHex.,
92 InOctalcxx . . $ QScript/Lexer#InOctal.,
93 InDecimalcxx . . $ QScript/Lexer#InDecimal.,
94 InExponentIndicatorcxx . . $ QScript/Lexer#InExponentIndicator.,
95 InExponentcxx . . $ QScript/Lexer#InExponent.,
96 Hexcxx . . $ QScript/Lexer#Hex.,
97 Octalcxx . . $ QScript/Lexer#Octal.,
98 Numbercxx . . $ QScript/Lexer#Number.,
99 Stringcxx . . $ QScript/Lexer#String.,
100 Eofcxx . . $ QScript/Lexer#Eof.,
101 InStringcxx . . $ QScript/Lexer#InString.,
102 InEscapeSequencecxx . . $ QScript/Lexer#InEscapeSequence.,
103 InHexEscapecxx . . $ QScript/Lexer#InHexEscape.,
104 InUnicodeEscapecxx . . $ QScript/Lexer#InUnicodeEscape.,
105 Othercxx . . $ QScript/Lexer#Other.,
106 Badcxx . . $ QScript/Lexer#Bad. };
107
108 enum Errorcxx . . $ QScript/Lexer#Error# {
109 NoErrorcxx . . $ QScript/Lexer#NoError.,
110 IllegalCharactercxx . . $ QScript/Lexer#IllegalCharacter.,
111 UnclosedStringLiteralcxx . . $ QScript/Lexer#UnclosedStringLiteral.,
112 IllegalEscapeSequencecxx . . $ QScript/Lexer#IllegalEscapeSequence.,
113 IllegalUnicodeEscapeSequencecxx . . $ QScript/Lexer#IllegalUnicodeEscapeSequence.,
114 UnclosedCommentcxx . . $ QScript/Lexer#UnclosedComment.,
115 IllegalExponentIndicatorcxx . . $ QScript/Lexer#IllegalExponentIndicator.,
116 IllegalIdentifiercxx . . $ QScript/Lexer#IllegalIdentifier.
117 };
118
119 enum ParenthesesStatecxx . . $ QScript/Lexer#ParenthesesState# {
120 IgnoreParenthesescxx . . $ QScript/Lexer#IgnoreParentheses.,
121 CountParenthesescxx . . $ QScript/Lexer#CountParentheses.,
122 BalancedParenthesescxx . . $ QScript/Lexer#BalancedParentheses.
123 };
124
125 enum RegExpBodyPrefixcxx . . $ QScript/Lexer#RegExpBodyPrefix# {
126 NoPrefixcxx . . $ QScript/Lexer#NoPrefix.,
127 EqualPrefixcxx . . $ QScript/Lexer#EqualPrefix.
128 };
129
130 bool scanRegExpcxx . . $ QScript/Lexer#scanRegExp(2cccee15db90ba46).(RegExpBodyPrefixcxx . . $ QScript/Lexer#RegExpBodyPrefix# prefix = NoPrefixcxx . . $ QScript/Lexer#NoPrefix.);
131
132 QScriptNameIdImplcxx . . $ QScriptNameIdImpl# *patterncxx . . $ QScript/Lexer#pattern.;
133 int flagscxx . . $ QScript/Lexer#flags.;
134
135 Statecxx . . $ QScript/Lexer#State# lexerStatecxx . . $ QScript/Lexer#lexerState(ee63bd04f83fdceb).() const
136 { return statecxx . . $ QScript/Lexer#state.; }
137
138 QStringcxx . . $ QString# errorMessagecxx . . $ QScript/Lexer#errorMessage(6ef7b6c27b00b43d).() const
139 { return errmsgcxx . . $ QString#QString(3520e46b33348bf6).; }
140 void setErrorMessagecxx . . $ QScript/Lexer#setErrorMessage(3520e46b33348bf6).(const QStringcxx . . $ QString# &err)
141 { errmsgcxx . . $ QScript/Lexer#errmsg. =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). err; }
142 void setErrorMessagecxx . . $ QScript/Lexer#setErrorMessage(85c52e162fed56f9).(const char *err)
143 { setErrorMessagecxx . . $ QScript/Lexer#setErrorMessage(3520e46b33348bf6).(QStringcxx . . $ QString#::fromLatin1cxx . . $ QString#fromLatin1(5ac70cc0fa2a874e).(err)); }
144
145 Errorcxx . . $ QScript/Lexer#Error# errorcxx . . $ QScript/Lexer#error(980933249e9d8679).() const
146 { return errcxx . . $ QScript/Lexer#err.; }
147 void clearErrorcxx . . $ QScript/Lexer#clearError(49f6e7a06ebc5aa8).()
148 { errcxx . . $ QScript/Lexer#err. = NoErrorcxx . . $ QScript/Lexer#NoError.; }
149
150 private:
151 QScriptEnginePrivatecxx . . $ QScriptEnginePrivate# *drivercxx . . $ QScript/Lexer#driver.;
152 int yylinenocxx . . $ QScript/Lexer#yylineno.;
153 bool donecxx . . $ QScript/Lexer#done.;
154 char *buffer8cxx . . $ QScript/Lexer#buffer8.;
155 QCharcxx . . $ QChar# *buffer16cxx . . $ QScript/Lexer#buffer16.;
156 uintcxx . . $ uint# size8cxx . . $ QScript/Lexer#size8., size16cxx . . $ QScript/Lexer#size16.;
157 uintcxx . . $ uint# pos8cxx . . $ QScript/Lexer#pos8., pos16cxx . . $ QScript/Lexer#pos16.;
158 bool terminatorcxx . . $ QScript/Lexer#terminator.;
159 bool restrKeywordcxx . . $ QScript/Lexer#restrKeyword.;
160 // encountered delimiter like "'" and "}" on last run
161 bool delimitedcxx . . $ QScript/Lexer#delimited.;
162 int stackTokencxx . . $ QScript/Lexer#stackToken.;
163
164 Statecxx . . $ QScript/Lexer#State# statecxx . . $ QScript/Lexer#state.;
165 void setDonecxx . . $ QScript/Lexer#setDone(4d66f5f9a6b7fc8d).(Statecxx . . $ QScript/Lexer#State# s);
166 uintcxx . . $ uint# poscxx . . $ QScript/Lexer#pos.;
167 void shiftcxx . . $ QScript/Lexer#shift(cb2f890c2fdad230).(uintcxx . . $ uint# p);
168 int lookupKeywordcxx . . $ QScript/Lexer#lookupKeyword(5c4306d8553b3696).(const char *);
169
170 bool isWhiteSpacecxx . . $ QScript/Lexer#isWhiteSpace(50ce9a9e25b4a850).() const;
171 bool isLineTerminatorcxx . . $ QScript/Lexer#isLineTerminator(50ce9a9e25b4a850).() const;
172 bool isHexDigitcxx . . $ QScript/Lexer#isHexDigit(897f8267d825a106).(ushortcxx . . $ ushort# c) const;
173 bool isOctalDigitcxx . . $ QScript/Lexer#isOctalDigit(897f8267d825a106).(ushortcxx . . $ ushort# c) const;
174
175 int matchPunctuatorcxx . . $ QScript/Lexer#matchPunctuator(19e1421a53c95695).(ushortcxx . . $ ushort# c1, ushortcxx . . $ ushort# c2,
176 ushortcxx . . $ ushort# c3, ushortcxx . . $ ushort# c4);
177 ushortcxx . . $ ushort# singleEscapecxx . . $ QScript/Lexer#singleEscape(c1ccd8b0fe723753).(ushortcxx . . $ ushort# c) const;
178 ushortcxx . . $ ushort# convertOctalcxx . . $ QScript/Lexer#convertOctal(da719ce7df13396).(ushortcxx . . $ ushort# c1, ushortcxx . . $ ushort# c2,
179 ushortcxx . . $ ushort# c3) const;
180 public:
181 static unsigned char convertHexcxx . . $ QScript/Lexer#convertHex(6699a9687259e5ab).(ushortcxx . . $ ushort# c1);
182 static unsigned char convertHexcxx . . $ QScript/Lexer#convertHex(7c733f93b82dc514).(ushortcxx . . $ ushort# c1, ushortcxx . . $ ushort# c2);
183 static QCharcxx . . $ QChar# convertUnicodecxx . . $ QScript/Lexer#convertUnicode(3a5baaed78dcabda).(ushortcxx . . $ ushort# c1, ushortcxx . . $ ushort# c2,
184 ushortcxx . . $ ushort# c3, ushortcxx . . $ ushort# c4);
185 static bool isIdentLettercxx . . $ QScript/Lexer#isIdentLetter(3c978dac0e5ee2ad).(ushortcxx . . $ ushort# c);
186 static bool isDecimalDigitcxx . . $ QScript/Lexer#isDecimalDigit(3c978dac0e5ee2ad).(ushortcxx . . $ ushort# c);
187
188 inline int ivalcxx . . $ QScript/Lexer#ival(455f465bc33b4cdf).() const { return qsyylvalcxx . . $ QScript/Lexer#qsyylval..ivalcxx . . $ QScript/Lexer#$anonymous_type_0#ival.; }
189 inline double dvalcxx . . $ QScript/Lexer#dval(21b6c25e127938e2).() const { return qsyylvalcxx . . $ QScript/Lexer#qsyylval..dvalcxx . . $ QScript/Lexer#$anonymous_type_0#dval.; }
190 inline QScriptNameIdImplcxx . . $ QScriptNameIdImpl# *ustrcxx . . $ QScript/Lexer#ustr(94eb99c52a3602d9).() const { return qsyylvalcxx . . $ QScript/Lexer#qsyylval..ustrcxx . . $ QScript/Lexer#$anonymous_type_0#ustr.; }
191
192 const QCharcxx . . $ QChar# *characterBuffercxx . . $ QScript/Lexer#characterBuffer(4b5a7d1cd542e2bb).() const { return buffer16cxx . . $ QScript/Lexer#buffer16.; }
193 int characterCountcxx . . $ QScript/Lexer#characterCount(455f465bc33b4cdf).() const { return pos16cxx . . $ QScript/Lexer#pos16.; }
194
195 private:
196 void record8cxx . . $ QScript/Lexer#record8(ed53e3bbd3fa2f69).(ushortcxx . . $ ushort# c);
197 void record16cxx . . $ QScript/Lexer#record16(f2c90172ce699d92).(QCharcxx . . $ QChar# c);
198 void recordStartPoscxx . . $ QScript/Lexer#recordStartPos(49f6e7a06ebc5aa8).();
199
200 int findReservedWordcxx . . $ QScript/Lexer#findReservedWord(140b01f2c7687a55).(const QCharcxx . . $ QChar# *buffer, int size) const;
201
202 void syncProhibitAutomaticSemicoloncxx . . $ QScript/Lexer#syncProhibitAutomaticSemicolon(49f6e7a06ebc5aa8).();
203
204 const QCharcxx . . $ QChar# *codecxx . . $ QScript/Lexer#code.;
205 uintcxx . . $ uint# lengthcxx . . $ QScript/Lexer#length.;
206 int yycolumncxx . . $ QScript/Lexer#yycolumn.;
207 int startlinenocxx . . $ QScript/Lexer#startlineno.;
208 int startcolumncxx . . $ QScript/Lexer#startcolumn.;
209 int bolcxx . . $ QScript/Lexer#bol.; // begin of line
210
211 unioncxx . . $ QScript/Lexer#$anonymous_type_0# {
212 int ivalcxx . . $ QScript/Lexer#$anonymous_type_0#ival.;
213 double dvalcxx . . $ QScript/Lexer#$anonymous_type_0#dval.;
214 QScriptNameIdImplcxx . . $ QScriptNameIdImpl# *ustrcxx . . $ QScript/Lexer#$anonymous_type_0#ustr.;
215 } qsyylvalcxx . . $ QScript/Lexer#qsyylval.;
216
217 // current and following unicode characters
218 ushortcxx . . $ ushort# currentcxx . . $ QScript/Lexer#current., next1cxx . . $ QScript/Lexer#next1., next2cxx . . $ QScript/Lexer#next2., next3cxx . . $ QScript/Lexer#next3.;
219
220 struct keywordcxx . . $ QScript/Lexer#keyword# {
221 const char *namecxx . . $ QScript/Lexer#keyword#name.;
222 int tokencxx . . $ QScript/Lexer#keyword#token.;
223 };
224
225 QStringcxx . . $ QString# errmsgcxx . . $ QScript/Lexer#errmsg.;
226 Errorcxx . . $ QScript/Lexer#Error# errcxx . . $ QScript/Lexer#err.;
227
228 bool wantRxcxx . . $ QScript/Lexer#wantRx.;
229 bool check_reservedcxx . . $ QScript/Lexer#check_reserved.;
230
231 ParenthesesStatecxx . . $ QScript/Lexer#ParenthesesState# parenthesesStatecxx . . $ QScript/Lexer#parenthesesState.;
232 int parenthesesCountcxx . . $ QScript/Lexer#parenthesesCount.;
233 bool prohibitAutomaticSemicoloncxx . . $ QScript/Lexer#prohibitAutomaticSemicolon.;
234 };
235
236 } // namespace QScript
237
238 QT_END_NAMESPACEcxx . . $ `<external>/15045578679651060896/qglobal.h:149:10`!
239
240 #endif