author | Claus Gittinger <cg@exept.de> |
Mon, 15 Jul 2019 15:38:51 +0200 | |
changeset 4458 | 458a1ac0701d |
parent 4449 | 25db115428a7 |
child 4461 | 204091b9d849 |
permissions | -rw-r--r-- |
4406 | 1 |
"{ Encoding: utf8 }" |
2 |
||
1634 | 3 |
" |
4 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
5 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
4256 | 6 |
All Rights Reserved |
1634 | 7 |
|
8 |
This software is furnished under a license and may be used |
|
9 |
only in accordance with the terms of that license and with the |
|
10 |
inclusion of the above copyright notice. This software may not |
|
11 |
be provided or otherwise made available to, or used by, any |
|
12 |
other person. No title to or ownership of the software is |
|
13 |
hereby transferred. |
|
14 |
" |
|
3576 | 15 |
"{ Package: 'stx:libcomp' }" |
16 |
||
17 |
"{ NameSpace: Smalltalk }" |
|
18 |
||
19 |
Object subclass:#ParserFlags |
|
4256 | 20 |
instanceVariableNames:'warnings warnUnusedVars warnUndeclared warnST80Directives |
21 |
warnSTXHereExtensionUsed warnSTXSpecialComment |
|
22 |
warnUnderscoreInIdentifier warnOldStyleAssignment |
|
23 |
warnCommonMistakes warnSTXNameSpaceUse |
|
24 |
warnPossibleIncompatibilities warnDollarInIdentifier |
|
25 |
warnParagraphInIdentifier warnHiddenVariables |
|
26 |
warnAboutVariableNameConventions warnAboutWrongVariableNames |
|
27 |
warnAboutBadComments warnInconsistentReturnValues |
|
28 |
warnAboutNonLowercaseLocalVariableNames |
|
29 |
warnAboutPossibleSTCCompilationProblems |
|
30 |
warnAboutReferenceToPrivateClass warnAboutShortLocalVariableNames |
|
31 |
warnAboutPossiblyUnimplementedSelectors |
|
32 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
|
33 |
warnPlausibilityChecks allowLiteralNameSpaceSymbols |
|
34 |
allowUnderscoreInIdentifier allowDollarInIdentifier |
|
35 |
allowParagraphInIdentifier allowOldStyleAssignment |
|
36 |
allowSqueakExtensions allowDolphinExtensions |
|
37 |
allowExtendedBinarySelectors allowQualifiedNames |
|
38 |
allowFunctionCallSyntaxForBlockEvaluation |
|
39 |
allowLocalVariableDeclarationWithInitializerExpression |
|
40 |
allowDomainVariables allowArrayIndexSyntaxExtension |
|
41 |
allowReservedWordsAsSelectors allowVariableReferences |
|
42 |
allowLazyValueExtension allowFixedPointLiterals |
|
43 |
allowExtendedSTXSyntax allowVisualAgeESSymbolLiterals |
|
44 |
allowExtensionsToPrivateClasses allowSqueakPrimitives |
|
45 |
allowVisualAgePrimitives allowSTVPrimitives allowSTVExtensions |
|
46 |
allowNationalCharactersInIdentifier allowHashAsBinarySelector |
|
47 |
allowSTXEOLComments allowEmptyStatements |
|
48 |
allowVisualWorksMethodAnnotations |
|
49 |
allowPossibleSTCCompilationProblems arraysAreImmutable |
|
50 |
stringsAreImmutable implicitSelfSends stcKeepCIntermediate |
|
51 |
stcKeepOIntermediate stcKeepSTIntermediate stcModulePath |
|
52 |
stcCompilation stcCompilationIncludes stcCompilationDefines |
|
53 |
stcCompilationOptions stcPath ccCompilationOptions ccPath |
|
54 |
linkArgs linkSharedArgs linkCommand libPath searchedLibraries |
|
55 |
warnAboutPeriodInSymbol allowPeriodInSymbol allowCaretAsBinop |
|
56 |
allowUnicodeStrings allowUnicodeCharacters allowCharacterEscapes |
|
57 |
allowStringEscapes allowAssignmentToBlockArgument |
|
58 |
allowAssignmentToMethodArgument allowAssignmentToPoolVariable |
|
59 |
lineNumberInfo allowSTXDelimiterComments |
|
60 |
allowSTXExtendedArrayLiterals warnAssignmentToBlockArgument |
|
61 |
warnAssignmentToMethodArgument warnAssignmentToPoolVariable |
|
62 |
allowSignedByteArrayElements allowSymbolsStartingWithDigit |
|
4333 | 63 |
allowJavaScriptConst allowPeriodAsNameSpaceSeparator |
4421 | 64 |
allowCStrings warnAboutPossiblyUninitializedLocals allowEStrings |
4436 | 65 |
singlePrecisionFloatF allowRStrings |
66 |
allowGreekCharactersInIdentifier' |
|
4256 | 67 |
classVariableNames:'AllowArrayIndexSyntaxExtension AllowAssignmentToBlockArgument |
68 |
AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable |
|
69 |
AllowCaretAsBinop AllowCharacterEscapes AllowDollarInIdentifier |
|
70 |
AllowDolphinExtensions AllowDomainVariables AllowEmptyStatements |
|
71 |
AllowExtendedBinarySelectors AllowExtendedSTXSyntax |
|
72 |
AllowExtensionsToPrivateClasses AllowFixedPointLiterals |
|
73 |
AllowFunctionCallSyntaxForBlockEvaluation |
|
74 |
AllowHashAsBinarySelector AllowLazyValueExtension |
|
75 |
AllowLiteralNameSpaceSymbols |
|
76 |
AllowLocalVariableDeclarationWithInitializerExpression |
|
77 |
AllowNationalCharactersInIdentifier AllowOldStyleAssignment |
|
78 |
AllowParagraphInIdentifier AllowPeriodInSymbol |
|
79 |
AllowPossibleSTCCompilationProblems AllowQualifiedNames |
|
80 |
AllowReservedWordsAsSelectors AllowSTVExtensions |
|
81 |
AllowSTVPrimitives AllowSTXDelimiterComments AllowSTXEOLComments |
|
82 |
AllowSTXExtendedArrayLiterals AllowSqueakExtensions |
|
83 |
AllowSqueakPrimitives AllowStringEscapes |
|
84 |
AllowUnderscoreInIdentifier AllowUnicodeCharacters |
|
85 |
AllowUnicodeStrings AllowVariableReferences |
|
86 |
AllowVisualAgeESSymbolLiterals AllowVisualAgePrimitives |
|
87 |
AllowVisualWorksMethodAnnotations ArraysAreImmutable BCCTop |
|
88 |
CCCompilationOptions CCPath DefineForBorlandC DefineForCLANG |
|
89 |
DefineForGNUC DefineForMINGW DefineForMINGW32 DefineForMINGW64 |
|
90 |
DefineForMSC DefineForVisualC ForcedCompiler ImplicitSelfSends |
|
91 |
LibDirectory LibPath LineNumberInfo LinkArgs LinkCommand |
|
92 |
LinkSharedArgs MakeCommand MingwTop PerMethodFlags SDKTop |
|
93 |
STCCompilation STCCompilationDefines STCCompilationIncludes |
|
94 |
STCCompilationOptions STCKeepCIntermediate STCKeepOIntermediate |
|
95 |
STCKeepSTIntermediate STCModulePath STCPath SearchedLibraries |
|
96 |
StringsAreImmutable VCTop WarnAboutBadComments |
|
97 |
WarnAboutNonLowercaseLocalVariableNames WarnAboutPeriodInSymbol |
|
98 |
WarnAboutPossibleSTCCompilationProblems |
|
99 |
WarnAboutPossiblyUnimplementedSelectors |
|
100 |
WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames |
|
101 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
|
102 |
WarnAboutVariableNameConventions WarnAboutWrongVariableNames |
|
103 |
WarnAssignmentToBlockArgument WarnAssignmentToMethodArgument |
|
104 |
WarnAssignmentToPoolVariable WarnCommonMistakes |
|
105 |
WarnDollarInIdentifier WarnHiddenVariables |
|
106 |
WarnInconsistentReturnValues WarnOldStyleAssignment |
|
107 |
WarnParagraphInIdentifier WarnPlausibilityChecks |
|
108 |
WarnPossibleIncompatibilities WarnST80Directives WarnSTXSpecials |
|
109 |
WarnUndeclared WarnUnderscoreInIdentifier WarnUnusedVars Warnings |
|
110 |
AutoDefineVariables AllowSignedByteArrayElements |
|
111 |
AllowSymbolsStartingWithDigit AllowJavaScriptConst |
|
4406 | 112 |
AllowJavaScriptLet AllowPeriodAsNameSpaceSeparator AllowCStrings |
4421 | 113 |
WarnAboutPossiblyUninitializedLocals AllowEStrings |
4436 | 114 |
SinglePrecisionFloatF AllowRStrings |
115 |
AllowGreekCharactersInIdentifier' |
|
4256 | 116 |
poolDictionaries:'' |
117 |
category:'System-Compiler' |
|
3576 | 118 |
! |
1634 | 119 |
|
120 |
!ParserFlags class methodsFor:'documentation'! |
|
121 |
||
122 |
copyright |
|
123 |
" |
|
124 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
125 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
4256 | 126 |
All Rights Reserved |
1634 | 127 |
|
128 |
This software is furnished under a license and may be used |
|
129 |
only in accordance with the terms of that license and with the |
|
130 |
inclusion of the above copyright notice. This software may not |
|
131 |
be provided or otherwise made available to, or used by, any |
|
132 |
other person. No title to or ownership of the software is |
|
133 |
hereby transferred. |
|
134 |
" |
|
135 |
! |
|
136 |
||
137 |
documentation |
|
138 |
" |
|
139 |
compiler flags (used to be defined in Scanner and Parser) have been extracted for easier |
|
140 |
individual-method customization (using ST as scripting). |
|
1711 | 141 |
|
3945 | 142 |
The class side provides correspondingly-named variables, which hold the default values. |
143 |
||
1712 | 144 |
howTo_fileInVSE: |
3945 | 145 |
ParserFlags allowSTVExtensions:true. |
146 |
ParserFlags allowSTVPrimitives:true. |
|
147 |
ParserFlags allowSTXEOLComments:false. |
|
2488 | 148 |
|
149 |
for stx debugging: |
|
3945 | 150 |
STCKeepCIntermediate := true |
2488 | 151 |
|
4333 | 152 |
the flags control: |
153 |
Warnings -- enable/disable any warnings from the compiler |
|
154 |
WarnUndeclared -- warn about undeclared variables |
|
155 |
WarnUnusedVars -- warn about unused variables |
|
156 |
WarnST80Directives -- warn when ST80 (visualworks) directives (primitives) are used |
|
157 |
WarnAboutWrongVariableNames -- conventions / style |
|
158 |
WarnAboutVariableNameConventions |
|
159 |
WarnAboutNonLowercaseLocalVariableNames |
|
160 |
WarnAboutShortLocalVariableNames |
|
161 |
WarnAboutBadComments |
|
162 |
WarnCommonMistakes |
|
163 |
WarnAboutReferenceToPrivateClass |
|
164 |
WarnPossibleIncompatibilities |
|
165 |
WarnSTXSpecials -- warn when special ST/X syntax extensions are used |
|
166 |
WarnUnderscoreInIdentifier -- underscores in identifier (not all Smalltalk dialects support this) |
|
167 |
WarnDollarInIdentifier -- dollar in identifier (not all Smalltalk dialects support this) |
|
168 |
WarnParagraphInIdentifier -- paragraph character in identifier |
|
169 |
WarnOldStyleAssignment -- assignment with _ - character |
|
170 |
WarnHiddenVariables -- locals shadowing outer/instvars |
|
171 |
WarnInconsistentReturnValues -- boolean/non-boolean return values |
|
172 |
WarnAboutPeriodInSymbol |
|
173 |
WarnAboutPossibleSTCCompilationProblems |
|
174 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
|
175 |
WarnAssignmentToBlockArgument |
|
176 |
WarnAssignmentToMethodArgument |
|
177 |
WarnAssignmentToPoolVariable |
|
178 |
WarnPlausibilityChecks |
|
179 |
WarnAboutPossiblyUnimplementedSelectors |
|
180 |
||
181 |
AllowReservedWordsAsSelectors |
|
182 |
AllowUnderscoreInIdentifier |
|
183 |
AllowParagraphInIdentifier |
|
184 |
AllowDollarInIdentifier -- st80-vms dollars in identifiers |
|
185 |
AllowOldStyleAssignment -- st80 underscore as assignment |
|
186 |
AllowDolphinExtensions -- dolphin computed literal |
|
187 |
AllowQualifiedNames -- vw3 qualified names |
|
188 |
AllowExtendedBinarySelectors -- vw5.4 extended binary selectors (plus/minus, center-dot etc.) |
|
189 |
AllowCaretAsBinop -- too dangerous |
|
190 |
AllowLiteralNameSpaceSymbols -- st/x literal nameSpace-symbols (#foo::bar) |
|
191 |
AllowArrayIndexSyntaxExtension |
|
192 |
AllowFunctionCallSyntaxForBlockEvaluation |
|
193 |
AllowLocalVariableDeclarationWithInitializerExpression |
|
194 |
AllowDomainVariables |
|
195 |
AllowArrayIndexSyntaxExtension |
|
196 |
AllowReservedWordsAsSelectors |
|
197 |
AllowVariableReferences |
|
198 |
AllowLazyValueExtension |
|
199 |
AllowFixedPointLiterals |
|
200 |
AllowExtendedSTXSyntax |
|
201 |
AllowVisualAgeESSymbolLiterals |
|
202 |
AllowExtensionsToPrivateClasses |
|
203 |
AllowVisualAgePrimitives |
|
204 |
AllowSqueakExtensions -- squeak computed array |
|
205 |
AllowSqueakPrimitives |
|
206 |
AllowSTVPrimitives -- number-sign syntax |
|
207 |
AllowSTVExtensions |
|
208 |
AllowNationalCharactersInIdentifier |
|
209 |
AllowHashAsBinarySelector |
|
210 |
AllowSTXEOLComments -- DQuote/ EOL comments |
|
211 |
AllowSTXDelimiterComments -- DQuote<<END delimiter comments |
|
212 |
AllowVisualWorksMethodAnnotations |
|
213 |
AllowPossibleSTCCompilationProblems -- must be true, to allow fileIn |
|
214 |
AllowEmptyStatements |
|
215 |
AllowPeriodInSymbol |
|
216 |
AllowPeriodAsNameSpaceSeparator |
|
217 |
||
218 |
AllowCStrings -- c'....' is a string with C-escapes |
|
219 |
AllowUnicodeStrings |
|
220 |
AllowUnicodeCharacters |
|
221 |
AllowCharacterEscapes |
|
222 |
AllowStringEscapes |
|
223 |
AllowAssignmentToBlockArgument |
|
224 |
AllowAssignmentToMethodArgument |
|
225 |
AllowAssignmentToPoolVariable |
|
226 |
AllowSignedByteArrayElements |
|
227 |
AllowSymbolsStartingWithDigit |
|
228 |
||
229 |
AllowJavaScriptConst |
|
230 |
||
231 |
ArraysAreImmutable -- still care for ST-80 compatibility |
|
232 |
StringsAreImmutable -- still care for ST-80 compatibility |
|
233 |
ImplicitSelfSends |
|
234 |
||
1711 | 235 |
" |
1634 | 236 |
! ! |
237 |
||
238 |
!ParserFlags class methodsFor:'instance creation'! |
|
239 |
||
240 |
new |
|
241 |
^ self basicNew initialize |
|
242 |
! ! |
|
243 |
||
244 |
!ParserFlags class methodsFor:'accessing-compilation control'! |
|
245 |
||
1668 | 246 |
allowExtensionsToPrivateClasses |
247 |
^ AllowExtensionsToPrivateClasses |
|
248 |
! |
|
249 |
||
250 |
allowExtensionsToPrivateClasses:aBoolean |
|
251 |
AllowExtensionsToPrivateClasses := aBoolean |
|
252 |
! |
|
253 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
254 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
255 |
^ AllowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
256 |
|
3546 | 257 |
" |
258 |
self allowPossibleSTCCompilationProblems:true |
|
259 |
self allowPossibleSTCCompilationProblems:false |
|
260 |
||
261 |
self warnAboutPossibleSTCCompilationProblems |
|
262 |
" |
|
263 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
264 |
"Created: / 16-11-2006 / 14:31:36 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
265 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
266 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
267 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
268 |
AllowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
269 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
270 |
"Created: / 16-11-2006 / 14:31:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
271 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
272 |
|
1634 | 273 |
arraysAreImmutable |
3219 | 274 |
"return true if arrays and byteArrays are compiled as immutable literals" |
1634 | 275 |
|
276 |
^ ArraysAreImmutable |
|
277 |
! |
|
278 |
||
279 |
arraysAreImmutable:aBoolean |
|
3219 | 280 |
"turn on/off immutable array and byteArrays literals - default is false for ST-80 compatibilty." |
1634 | 281 |
|
282 |
ArraysAreImmutable := aBoolean. |
|
283 |
||
284 |
" |
|
285 |
can be added to your private.rc file: |
|
286 |
||
3396 | 287 |
ParserFlags arraysAreImmutable:true |
288 |
ParserFlags arraysAreImmutable:false |
|
1634 | 289 |
" |
290 |
! |
|
291 |
||
2927 | 292 |
fullLineNumberInfo |
293 |
^ (self lineNumberInfo == #full) |
|
294 |
||
295 |
"Created: / 26-09-2012 / 14:16:09 / cg" |
|
296 |
! |
|
297 |
||
1634 | 298 |
implicitSelfSends |
299 |
"return true if undefined variables with |
|
300 |
lowercase first character are to be turned |
|
301 |
into implicit self sends" |
|
302 |
||
303 |
^ ImplicitSelfSends |
|
304 |
! |
|
305 |
||
306 |
implicitSelfSends:aBoolean |
|
307 |
"turn on/off implicit self sends" |
|
308 |
||
309 |
ImplicitSelfSends := aBoolean |
|
310 |
||
311 |
" |
|
312 |
Compiler implicitSelfSends:true |
|
3396 | 313 |
Compiler implicitSelfSends:false |
1634 | 314 |
" |
315 |
! |
|
316 |
||
2927 | 317 |
lineNumberInfo |
318 |
^ LineNumberInfo |
|
319 |
||
320 |
"Created: / 26-09-2012 / 13:27:34 / cg" |
|
321 |
! |
|
322 |
||
323 |
lineNumberInfo:aSymbol |
|
324 |
LineNumberInfo := aSymbol. |
|
325 |
||
326 |
"Created: / 26-09-2012 / 13:27:54 / cg" |
|
327 |
! |
|
328 |
||
1634 | 329 |
stringsAreImmutable |
330 |
"return true if strings are immutable literals" |
|
331 |
||
332 |
^ StringsAreImmutable |
|
333 |
||
334 |
"Created: / 3.8.1998 / 14:53:25 / cg" |
|
335 |
! |
|
336 |
||
337 |
stringsAreImmutable:aBoolean |
|
338 |
"turn on/off immutable string literals - default is false for ST-80 compatibilty." |
|
339 |
||
340 |
StringsAreImmutable := aBoolean. |
|
341 |
||
342 |
" |
|
343 |
can be added to your private.rc file: |
|
344 |
||
3396 | 345 |
ParserFlags stringsAreImmutable:true |
346 |
ParserFlags stringsAreImmutable:false |
|
1634 | 347 |
" |
348 |
||
349 |
"Created: / 3.8.1998 / 14:53:28 / cg" |
|
350 |
! ! |
|
351 |
||
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
352 |
!ParserFlags class methodsFor:'accessing-per method flags'! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
353 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
354 |
disableFlag:flagName forClass:class selector:selector |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
355 |
"remember that warnings named flagName (such as #warnUnusedVars) |
3396 | 356 |
are disabled for a particular method. |
357 |
Sent if user wants to disable warnings in the future |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
358 |
(try defining a method with an unused var, to see)" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
359 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
360 |
|key| |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
361 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
362 |
PerMethodFlags isNil ifTrue:[ |
4256 | 363 |
PerMethodFlags := Dictionary new. |
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
364 |
]. |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
365 |
key := class name, '>>',selector. |
2852 | 366 |
PerMethodFlags at:key put:(Timestamp now + self perMethodDisableWarningTimeDuration). |
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
367 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
368 |
"Created: / 28-02-2012 / 12:57:45 / cg" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
369 |
! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
370 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
371 |
isFlag:flagName enabledForClass:class selector:selector |
3295 | 372 |
"return true, if warnings named <flagName> (such as #warnUnusedVars) |
2852 | 373 |
are to be suppressed for a particular method." |
374 |
||
375 |
|key endTime| |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
376 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
377 |
PerMethodFlags isNil ifTrue:[^ true]. |
2830 | 378 |
class isNil ifTrue:[^ true]. |
379 |
selector isNil ifTrue:[^ true]. |
|
380 |
||
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
381 |
key := class name, '>>',selector. |
2852 | 382 |
endTime := PerMethodFlags at:key ifAbsent:nil. |
383 |
endTime isNil ifTrue:[^ true]. |
|
384 |
endTime > Timestamp now ifTrue:[^ false]. |
|
385 |
PerMethodFlags removeKey:key. |
|
386 |
^ true |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
387 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
388 |
"Created: / 28-02-2012 / 12:57:30 / cg" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
389 |
! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
390 |
|
2852 | 391 |
perMethodDisableWarningTimeDuration |
392 |
"when the user wants to suppress a particular warning for a particular |
|
393 |
method, it will be only suppressed for some time duration. |
|
394 |
After that, the suppress will automatically be removed, and normal warnings |
|
395 |
are issued again." |
|
396 |
||
397 |
^ 30 minutes |
|
398 |
||
399 |
"Created: / 08-03-2012 / 10:22:57 / cg" |
|
400 |
! |
|
401 |
||
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
402 |
reenableAllSuppressedFlags |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
403 |
"turn off any suppressed warnings" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
404 |
|
2830 | 405 |
PerMethodFlags := nil |
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
406 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
407 |
"Created: / 28-02-2012 / 12:59:08 / cg" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
408 |
! ! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
409 |
|
1658 | 410 |
!ParserFlags class methodsFor:'accessing-stc compilation control'! |
411 |
||
2645 | 412 |
bccTop:aPath |
413 |
"windows only: define the borland-C installation directory. |
|
414 |
must contain bin\bcc32.exe and include. |
|
415 |
Typically, something like 'C:\borland\bcc55'" |
|
416 |
||
417 |
BCCTop := aPath |
|
418 |
||
419 |
"Created: / 08-08-2011 / 22:41:48 / cg" |
|
420 |
! |
|
421 |
||
1658 | 422 |
ccCompilationOptions |
1668 | 423 |
^ CCCompilationOptions ? '' |
1658 | 424 |
! |
425 |
||
426 |
ccCompilationOptions:aString |
|
427 |
CCCompilationOptions := aString |
|
428 |
! |
|
429 |
||
430 |
ccPath |
|
431 |
^ CCPath |
|
432 |
! |
|
433 |
||
434 |
ccPath:aSymbol |
|
435 |
CCPath := aSymbol |
|
436 |
! |
|
437 |
||
2626 | 438 |
libDirectory |
439 |
^ LibDirectory |
|
440 |
||
441 |
"Created: / 07-08-2011 / 14:01:21 / cg" |
|
442 |
! |
|
443 |
||
444 |
libDirectory:aString |
|
445 |
LibDirectory := aString |
|
446 |
||
447 |
"Created: / 07-08-2011 / 14:01:28 / cg" |
|
448 |
! |
|
449 |
||
1658 | 450 |
libPath |
451 |
^ LibPath |
|
452 |
! |
|
453 |
||
454 |
libPath:aString |
|
455 |
LibPath := aString |
|
456 |
! |
|
457 |
||
458 |
linkArgs |
|
459 |
^ LinkArgs |
|
460 |
! |
|
461 |
||
462 |
linkArgs:aString |
|
463 |
LinkArgs := aString |
|
464 |
! |
|
465 |
||
466 |
linkCommand |
|
467 |
^ LinkCommand |
|
468 |
! |
|
469 |
||
470 |
linkCommand:aString |
|
471 |
LinkCommand := aString |
|
472 |
! |
|
473 |
||
1898 | 474 |
linkSharedArgs |
475 |
^ LinkSharedArgs |
|
476 |
! |
|
477 |
||
478 |
linkSharedArgs:aString |
|
479 |
LinkSharedArgs := aString |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
480 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
481 |
"Modified (format): / 28-02-2012 / 13:34:58 / cg" |
1898 | 482 |
! |
483 |
||
1814 | 484 |
makeCommand |
485 |
^ MakeCommand |
|
486 |
||
487 |
"Created: / 09-08-2006 / 18:45:04 / fm" |
|
488 |
! |
|
489 |
||
490 |
makeCommand:aString |
|
491 |
MakeCommand := aString |
|
492 |
||
493 |
"Created: / 09-08-2006 / 18:45:12 / fm" |
|
494 |
! |
|
495 |
||
2645 | 496 |
sdkTop:aPath |
497 |
"windows only: define the SDK top directory. |
|
498 |
must include folder with windows header files. |
|
499 |
Typically something like 'C:\Program Files\Microsoft SDKs\Windows\v6.0A'" |
|
500 |
||
501 |
SDKTop := aPath |
|
502 |
||
503 |
"Created: / 08-08-2011 / 22:39:24 / cg" |
|
504 |
! |
|
505 |
||
1658 | 506 |
searchedLibraries |
507 |
^ SearchedLibraries |
|
508 |
! |
|
509 |
||
510 |
searchedLibraries:aString |
|
511 |
SearchedLibraries := aString |
|
512 |
! |
|
513 |
||
514 |
stcCompilation |
|
515 |
^ STCCompilation |
|
516 |
! |
|
517 |
||
518 |
stcCompilation:aSymbol |
|
519 |
STCCompilation := aSymbol |
|
520 |
! |
|
521 |
||
522 |
stcCompilationDefines |
|
523 |
^ STCCompilationDefines |
|
524 |
! |
|
525 |
||
526 |
stcCompilationDefines:aString |
|
527 |
STCCompilationDefines := aString |
|
528 |
! |
|
529 |
||
530 |
stcCompilationIncludes |
|
531 |
^ STCCompilationIncludes |
|
532 |
! |
|
533 |
||
534 |
stcCompilationIncludes:aString |
|
535 |
STCCompilationIncludes := aString |
|
536 |
! |
|
537 |
||
538 |
stcCompilationOptions |
|
539 |
^ STCCompilationOptions |
|
540 |
! |
|
541 |
||
542 |
stcCompilationOptions:aString |
|
543 |
STCCompilationOptions := aString |
|
544 |
! |
|
545 |
||
546 |
stcKeepCIntermediate |
|
2701
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
547 |
^ STCKeepCIntermediate ? false |
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
548 |
|
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
549 |
"Modified: / 16-09-2011 / 19:56:18 / cg" |
1658 | 550 |
! |
551 |
||
4089 | 552 |
stcKeepCIntermediate:aBoolean |
553 |
STCKeepCIntermediate := aBoolean. |
|
1940 | 554 |
|
555 |
" |
|
556 |
STCKeepCIntermediate := true. |
|
557 |
STCKeepCIntermediate := false. |
|
558 |
" |
|
559 |
||
560 |
"Modified: / 07-11-2006 / 10:58:42 / cg" |
|
1658 | 561 |
! |
562 |
||
563 |
stcKeepOIntermediate |
|
2702 | 564 |
^ STCKeepOIntermediate ? false |
565 |
||
566 |
"Modified: / 16-09-2011 / 19:56:49 / cg" |
|
1658 | 567 |
! |
568 |
||
4089 | 569 |
stcKeepOIntermediate:aBoolean |
570 |
STCKeepOIntermediate := aBoolean. |
|
571 |
||
572 |
" |
|
573 |
STCKeepOIntermediate := true. |
|
574 |
STCKeepOIntermediate := false. |
|
575 |
" |
|
1658 | 576 |
! |
577 |
||
578 |
stcKeepSTIntermediate |
|
2702 | 579 |
^ STCKeepSTIntermediate ? false |
2142 | 580 |
|
581 |
" |
|
582 |
STCKeepSTIntermediate := true. |
|
583 |
STCKeepSTIntermediate := false. |
|
584 |
" |
|
2702 | 585 |
|
586 |
"Modified: / 16-09-2011 / 19:57:17 / cg" |
|
1658 | 587 |
! |
588 |
||
4089 | 589 |
stcKeepSTIntermediate:aBoolean |
590 |
STCKeepSTIntermediate := aBoolean. |
|
1940 | 591 |
|
592 |
" |
|
593 |
STCKeepSTIntermediate := true. |
|
594 |
STCKeepSTIntermediate := false. |
|
595 |
" |
|
596 |
||
597 |
"Modified: / 07-11-2006 / 10:58:54 / cg" |
|
1658 | 598 |
! |
599 |
||
600 |
stcModulePath |
|
4012 | 601 |
"the folder, where temporarily compiled modules are created by stc. |
602 |
Used to be inside the bin-directory, but that did not work for readonly/shared |
|
603 |
st/x installations (i.e. running stx from a mounted dbg). |
|
604 |
Therefore, this is now in the workspace (where the snapshot image resudes as well) |
|
605 |
||
606 |
Notice: |
|
607 |
this ought to be a persistent folder (at least as along as any |
|
608 |
snapshot image is present, which refers to any module there. |
|
609 |
As we cannot (currently) scan snapshots, this is somewhat tricky." |
|
610 |
||
611 |
STCModulePath notNil ifTrue:[^ STCModulePath]. |
|
612 |
^ UserPreferences current workspaceDirectory / 'modules' |
|
1658 | 613 |
! |
614 |
||
4089 | 615 |
stcModulePath:aPath |
4013 | 616 |
"set the path to the directory, where temporary modules are created. |
617 |
Obsolete now, as this should not be set from the outside, |
|
618 |
but instead rely totally on the userPreferences." |
|
619 |
||
4089 | 620 |
STCModulePath := aPath. |
1658 | 621 |
! |
622 |
||
623 |
stcPath |
|
624 |
^ STCPath |
|
625 |
! |
|
626 |
||
4017 | 627 |
stcPath:aPath |
628 |
STCPath := aPath |
|
1658 | 629 |
! |
630 |
||
2011 | 631 |
useBorlandC |
2803 | 632 |
"true if borland compiler should be used" |
633 |
||
2888 | 634 |
^ self usedCompilerDefine = DefineForBorlandC |
2011 | 635 |
|
636 |
"Created: / 15-03-2007 / 13:33:32 / cg" |
|
637 |
! |
|
638 |
||
3653 | 639 |
useClang |
640 |
"true if clang compiler should be used" |
|
641 |
||
642 |
^ self usedCompilerDefine = DefineForCLANG |
|
643 |
! |
|
644 |
||
2888 | 645 |
useCompilerDefine: aCompilerDefine |
2803 | 646 |
"enforce a particular compiler to be used (independent from |
647 |
what the system was compiled with)" |
|
648 |
||
649 |
ForcedCompiler := aCompilerDefine. |
|
650 |
||
2804 | 651 |
" |
652 |
self useCompiler: DefineForBorlandC |
|
653 |
self useCompiler: DefineForVisualC |
|
3719 | 654 |
self useCompiler: DefineForMINGW32 |
2804 | 655 |
" |
656 |
||
2888 | 657 |
"Created: / 20-07-2012 / 13:10:30 / cg" |
2803 | 658 |
! |
659 |
||
2011 | 660 |
useGnuC |
2803 | 661 |
"true if gnu-c compiler should be used" |
662 |
||
2888 | 663 |
^ self usedCompilerDefine = DefineForGNUC |
2011 | 664 |
|
665 |
"Created: / 15-03-2007 / 13:34:49 / cg" |
|
666 |
! |
|
667 |
||
3009
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
668 |
useMingw32 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
669 |
"true if mingw compiler should be used" |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
670 |
|
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
671 |
^ self usedCompilerDefine = DefineForMINGW32 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
672 |
! |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
673 |
|
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
674 |
useMingw64 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
675 |
"true if mingw compiler should be used" |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
676 |
|
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
677 |
^ self usedCompilerDefine = DefineForMINGW64 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
678 |
! |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
679 |
|
2645 | 680 |
useVisualC |
2803 | 681 |
"true if visual-c compiler should be used" |
682 |
||
2888 | 683 |
|def| |
684 |
||
685 |
^ (def := self usedCompilerDefine) = DefineForVisualC |
|
686 |
or:[ def = DefineForMSC ] |
|
2645 | 687 |
|
688 |
"Created: / 08-08-2011 / 22:50:25 / cg" |
|
689 |
! |
|
690 |
||
2803 | 691 |
usedCompiler |
2888 | 692 |
|dfn| |
693 |
||
694 |
dfn := self usedCompilerDefine. |
|
695 |
||
696 |
dfn = DefineForGNUC ifTrue:[ ^'gcc']. |
|
697 |
dfn = DefineForBorlandC ifTrue:[ ^'bcc']. |
|
698 |
dfn = DefineForMSC ifTrue:[ ^'vc']. |
|
699 |
dfn = DefineForVisualC ifTrue:[ ^'vc']. |
|
3160 | 700 |
dfn = DefineForMINGW64 ifTrue:[ ^'mingw']. |
701 |
dfn = DefineForMINGW32 ifTrue:[ ^'mingw']. |
|
702 |
dfn = DefineForMINGW ifTrue:[ ^'mingw']. |
|
2888 | 703 |
"/ dfn = DefineForLCC ifTrue:[ ^'lcc']. |
704 |
||
705 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
4256 | 706 |
^ 'bcc' |
2888 | 707 |
]. |
708 |
^ 'gcc' |
|
2803 | 709 |
|
2805 | 710 |
" |
711 |
self usedCompiler |
|
712 |
" |
|
713 |
||
2803 | 714 |
"Created: / 31-01-2012 / 12:05:30 / cg" |
715 |
! |
|
716 |
||
2888 | 717 |
usedCompilerDefine |
4017 | 718 |
"return the define to be used for the compiler toolchain. |
719 |
By default, the toolchain with which stx itself was compiled is used (getCCDefine); |
|
720 |
can be overwritten by setting ForcedCompiler" |
|
4251 | 721 |
|
722 |
^ ForcedCompiler ? STCCompilerInterface getCCDefine. |
|
2888 | 723 |
|
4017 | 724 |
" |
725 |
ForcedCompiler := DefineForCLANG. |
|
726 |
self usedCompilerDefine. |
|
727 |
||
728 |
ForcedCompiler := nil. |
|
729 |
self usedCompilerDefine. |
|
730 |
" |
|
4251 | 731 |
|
2888 | 732 |
"Created: / 20-07-2012 / 13:11:22 / cg" |
4251 | 733 |
"Modified: / 11-05-2018 / 09:44:34 / stefan" |
2888 | 734 |
! |
735 |
||
2645 | 736 |
vcTop:aPath |
737 |
"windows only: define the visual-C top directory. |
|
738 |
must contain bin\cl.exe and include. |
|
739 |
Typically, something like 'C:\Program Files\Microsoft Visual Studio 10.0\VC'" |
|
740 |
||
741 |
VCTop := aPath |
|
742 |
||
743 |
"Created: / 08-08-2011 / 22:39:15 / cg" |
|
744 |
! |
|
745 |
||
1658 | 746 |
withSTCCompilation:howSymbol do:aBlock |
747 |
|prev| |
|
748 |
||
749 |
prev := self stcCompilation. |
|
750 |
self stcCompilation:howSymbol. |
|
751 |
aBlock ensure:[ self stcCompilation:prev ] |
|
752 |
! ! |
|
753 |
||
1634 | 754 |
!ParserFlags class methodsFor:'accessing-syntax-control'! |
755 |
||
756 |
allowArrayIndexSyntaxExtension |
|
4301 | 757 |
"experimental syntax: var[idx-expr]" |
1634 | 758 |
|
759 |
^ AllowArrayIndexSyntaxExtension ? false |
|
3190 | 760 |
|
761 |
" |
|
762 |
self allowArrayIndexSyntaxExtension:true |
|
763 |
self allowArrayIndexSyntaxExtension:false |
|
764 |
self allowArrayIndexSyntaxExtension |
|
765 |
" |
|
4301 | 766 |
|
767 |
"Modified (comment): / 23-09-2018 / 00:42:11 / Claus Gittinger" |
|
1634 | 768 |
! |
769 |
||
770 |
allowArrayIndexSyntaxExtension:aBoolean |
|
4301 | 771 |
"experimental syntax: var[idx-expr]" |
1634 | 772 |
|
773 |
AllowArrayIndexSyntaxExtension := aBoolean. |
|
774 |
||
775 |
" |
|
776 |
self allowArrayIndexSyntaxExtension:true |
|
777 |
self allowArrayIndexSyntaxExtension:false |
|
778 |
" |
|
4301 | 779 |
|
780 |
"Modified (comment): / 23-09-2018 / 00:42:15 / Claus Gittinger" |
|
1634 | 781 |
! |
782 |
||
2685 | 783 |
allowAssignmentToBlockArgument |
784 |
^ AllowAssignmentToBlockArgument |
|
785 |
||
786 |
"Created: / 08-09-2011 / 14:49:46 / cg" |
|
787 |
! |
|
788 |
||
789 |
allowAssignmentToBlockArgument:aBoolean |
|
790 |
AllowAssignmentToBlockArgument := aBoolean |
|
791 |
||
792 |
"Created: / 08-09-2011 / 14:50:23 / cg" |
|
793 |
! |
|
794 |
||
795 |
allowAssignmentToMethodArgument |
|
796 |
^ AllowAssignmentToMethodArgument |
|
797 |
||
798 |
"Created: / 08-09-2011 / 14:49:57 / cg" |
|
799 |
! |
|
800 |
||
801 |
allowAssignmentToMethodArgument:aBoolean |
|
802 |
AllowAssignmentToMethodArgument := aBoolean |
|
803 |
||
804 |
"Created: / 08-09-2011 / 14:50:34 / cg" |
|
805 |
! |
|
806 |
||
807 |
allowAssignmentToPoolVariable |
|
808 |
^ AllowAssignmentToPoolVariable |
|
809 |
||
810 |
"Created: / 08-09-2011 / 14:50:06 / cg" |
|
811 |
! |
|
812 |
||
813 |
allowAssignmentToPoolVariable:aBoolean |
|
814 |
AllowAssignmentToPoolVariable := aBoolean |
|
815 |
||
816 |
"Created: / 08-09-2011 / 14:50:48 / cg" |
|
817 |
! |
|
818 |
||
4333 | 819 |
allowCStrings |
4412 | 820 |
"allow c-style strings of the form: |
821 |
c'...' containing c-language character escapes" |
|
822 |
||
4333 | 823 |
^ AllowCStrings |
824 |
||
825 |
"Created: / 08-02-2019 / 18:42:15 / Claus Gittinger" |
|
4412 | 826 |
"Modified (comment): / 23-05-2019 / 08:57:46 / Claus Gittinger" |
4333 | 827 |
! |
828 |
||
829 |
allowCStrings:aBoolean |
|
4412 | 830 |
"allow c-style strings of the form: |
831 |
c'...' containing c-language character escapes" |
|
832 |
||
4333 | 833 |
AllowCStrings := aBoolean. |
834 |
||
4335 | 835 |
" |
836 |
ParserFlags allowCStrings:true |
|
837 |
ParserFlags allowCStrings |
|
838 |
" |
|
839 |
||
4333 | 840 |
"Created: / 08-02-2019 / 18:42:30 / Claus Gittinger" |
4412 | 841 |
"Modified (comment): / 23-05-2019 / 08:57:50 / Claus Gittinger" |
4333 | 842 |
! |
843 |
||
4335 | 844 |
allowCaretAsBinop |
4412 | 845 |
"allow '^' to be used as a binary operator" |
846 |
||
4335 | 847 |
^ AllowCaretAsBinop |
848 |
||
849 |
"Created: / 08-02-2019 / 18:49:12 / Claus Gittinger" |
|
4412 | 850 |
"Modified (comment): / 23-05-2019 / 08:58:11 / Claus Gittinger" |
4335 | 851 |
! |
852 |
||
853 |
allowCaretAsBinop:aBoolean |
|
4412 | 854 |
"allow '^' to be used as a binary operator" |
855 |
||
4335 | 856 |
AllowCaretAsBinop := aBoolean |
857 |
||
858 |
"Created: / 08-02-2019 / 18:49:21 / Claus Gittinger" |
|
4412 | 859 |
"Modified (comment): / 23-05-2019 / 08:58:14 / Claus Gittinger" |
4335 | 860 |
! |
861 |
||
1634 | 862 |
allowDollarInIdentifier |
863 |
"return true, if $-characters are allowed in identifiers. |
|
4041 | 864 |
Notice, that dollars are NEVER allowed as the first character in an identifier |
4412 | 865 |
(because they are interpreted as character-constant then). |
866 |
Dollars in identifiers were used in VMS versions of VW-Smalltalk" |
|
1634 | 867 |
|
868 |
^ AllowDollarInIdentifier |
|
869 |
||
4041 | 870 |
"Created: / 07-09-1997 / 01:32:18 / cg" |
871 |
"Modified (comment): / 16-11-2016 / 22:25:59 / cg" |
|
4412 | 872 |
"Modified (comment): / 23-05-2019 / 08:59:03 / Claus Gittinger" |
1634 | 873 |
! |
874 |
||
875 |
allowDollarInIdentifier:aBoolean |
|
876 |
"this allows turning on/off $-characters in identifiers. |
|
877 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
878 |
If turned off (the default), dollars are not allowed in identifiers, |
|
879 |
but instead are scanned as character-constant prefix. |
|
4041 | 880 |
If turned on, dollars in identifiers are allowed, while extra |
1634 | 881 |
dollars are still scanned as constant character prefix. |
882 |
If you have to fileIn old VW-Vsn2.x classes, turn this off |
|
883 |
before filing them in; i.e.: |
|
4041 | 884 |
Compiler allowDollarInIdentifiers:false |
4412 | 885 |
Dollars in identifiers were used in VMS versions of VW-Smalltalk. |
4041 | 886 |
" |
1634 | 887 |
|
888 |
AllowDollarInIdentifier := aBoolean. |
|
889 |
||
4041 | 890 |
"Created: / 07-09-1997 / 01:34:49 / cg" |
891 |
"Modified (comment): / 16-11-2016 / 22:26:38 / cg" |
|
4412 | 892 |
"Modified (comment): / 23-05-2019 / 09:00:00 / Claus Gittinger" |
1634 | 893 |
! |
894 |
||
895 |
allowDolphinExtensions |
|
896 |
"return true, if ##(..) computed literals are allowed" |
|
897 |
||
898 |
^ AllowDolphinExtensions |
|
899 |
! |
|
900 |
||
901 |
allowDolphinExtensions:aBoolean |
|
902 |
"this allows turning on/off support for computed arrays ##(..) as in dolphin. |
|
903 |
If you want to fileIn Dolphin classes, enable this with: |
|
4256 | 904 |
Compiler allowDolphinComputedArrays:true" |
1634 | 905 |
|
906 |
AllowDolphinExtensions := aBoolean. |
|
907 |
||
908 |
" |
|
909 |
self allowDolphinExtensions:true |
|
910 |
self allowDolphinExtensions:false |
|
911 |
" |
|
912 |
! |
|
913 |
||
4412 | 914 |
allowEStrings |
915 |
"allow extended strings with embedded expressions of the form: |
|
916 |
e'...' containing c-language character escapes |
|
917 |
and embedded expressions {expr} which are sliced in" |
|
918 |
||
919 |
^ AllowEStrings |
|
920 |
||
921 |
"Created: / 23-05-2019 / 10:28:17 / Claus Gittinger" |
|
922 |
! |
|
923 |
||
924 |
allowEStrings:aBoolean |
|
925 |
"allow extended strings with embedded expressions of the form: |
|
926 |
e'...' containing c-language character escapes |
|
927 |
and embedded expressions {expr} which are sliced in" |
|
928 |
||
929 |
AllowEStrings := aBoolean |
|
930 |
||
931 |
"Created: / 23-05-2019 / 10:28:29 / Claus Gittinger" |
|
932 |
! |
|
933 |
||
1950 | 934 |
allowEmptyStatements |
935 |
"return true, if empty statements are allowed (two .'s in a row). |
|
936 |
Notice, that stc cannot (yet) handle those." |
|
937 |
||
938 |
^ AllowEmptyStatements |
|
939 |
||
940 |
"Created: / 20-11-2006 / 14:29:02 / cg" |
|
941 |
! |
|
942 |
||
943 |
allowEmptyStatements:aBoolean |
|
944 |
"turn on/off, if empty statements are allowed (two .'s in a row). |
|
945 |
Notice, that stc cannot (yet) handle those." |
|
946 |
||
947 |
AllowEmptyStatements := aBoolean |
|
948 |
||
949 |
"Created: / 20-11-2006 / 14:29:15 / cg" |
|
950 |
! |
|
951 |
||
2145 | 952 |
allowExtendedBinarySelectors |
953 |
"experimental extended selectors extensions" |
|
954 |
||
955 |
^ AllowExtendedBinarySelectors |
|
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
956 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
957 |
" |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
958 |
ParserFlags allowExtendedBinarySelectors |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
959 |
ParserFlags allowExtendedBinarySelectors:false |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
960 |
ParserFlags allowExtendedBinarySelectors:true |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
961 |
" |
2145 | 962 |
! |
963 |
||
964 |
allowExtendedBinarySelectors:aBoolean |
|
4413 | 965 |
"experimental syntax extensions" |
2145 | 966 |
|
967 |
AllowExtendedBinarySelectors := aBoolean |
|
4413 | 968 |
|
969 |
"Modified (comment): / 23-05-2019 / 10:40:47 / Claus Gittinger" |
|
2145 | 970 |
! |
971 |
||
1682 | 972 |
allowExtendedSTXSyntax |
4413 | 973 |
"Enables ALL of the ST/X extensions. |
974 |
Do not use for now, as stc does not support all of them" |
|
1682 | 975 |
|
976 |
^ AllowExtendedSTXSyntax |
|
4413 | 977 |
|
978 |
"Modified (comment): / 23-05-2019 / 10:41:53 / Claus Gittinger" |
|
1682 | 979 |
! |
980 |
||
981 |
allowExtendedSTXSyntax:aBoolean |
|
4413 | 982 |
"Enables ALL of the ST/X extensions. |
983 |
Do not use for now, as stc does not support all of them" |
|
1682 | 984 |
|
985 |
AllowExtendedSTXSyntax := aBoolean |
|
986 |
||
987 |
" |
|
988 |
self allowExtendedSTXSyntax:true |
|
989 |
'a\tb' inspect. |
|
990 |
'a\u1616b' inspect. |
|
3396 | 991 |
self allowExtendedSTXSyntax:false |
1682 | 992 |
" |
4413 | 993 |
|
994 |
"Modified (comment): / 23-05-2019 / 10:41:57 / Claus Gittinger" |
|
1682 | 995 |
! |
996 |
||
1677 | 997 |
allowFixedPointLiterals |
4412 | 998 |
"return true, if nnnsn (FixedPoint) literals are allowed. |
999 |
The default is true." |
|
1677 | 1000 |
|
1001 |
^ AllowFixedPointLiterals |
|
4412 | 1002 |
|
1003 |
"Modified (comment): / 23-05-2019 / 09:00:40 / Claus Gittinger" |
|
1677 | 1004 |
! |
1005 |
||
1006 |
allowFixedPointLiterals:aBoolean |
|
4412 | 1007 |
"enable/disable, if nnnsn (FixedPoint) literals are allowed. |
1008 |
The default is true." |
|
1677 | 1009 |
|
1010 |
AllowFixedPointLiterals := aBoolean |
|
4412 | 1011 |
|
1012 |
"Modified (comment): / 23-05-2019 / 09:00:44 / Claus Gittinger" |
|
1677 | 1013 |
! |
1014 |
||
1634 | 1015 |
allowFunctionCallSyntaxForBlockEvaluation |
1016 |
"experimental" |
|
1017 |
||
1018 |
^ AllowFunctionCallSyntaxForBlockEvaluation |
|
1721 | 1019 |
|
1020 |
" |
|
1021 |
AllowFunctionCallSyntaxForBlockEvaluation := true |
|
1022 |
" |
|
1634 | 1023 |
! |
1024 |
||
1025 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
1026 |
"experimental" |
|
1027 |
||
1028 |
AllowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
1029 |
! |
|
1030 |
||
4436 | 1031 |
allowGreekCharactersInIdentifier |
1032 |
"return true, if greek characters (alpha, beta etc.) are allowed in identifiers" |
|
1033 |
||
1034 |
^ AllowGreekCharactersInIdentifier |
|
1035 |
||
1036 |
"Created: / 08-06-2019 / 14:52:29 / Claus Gittinger" |
|
1037 |
! |
|
1038 |
||
1039 |
allowGreekCharactersInIdentifier:aBoolean |
|
1040 |
"are greek characters (alpha, beta etc.) are allowed in identifiers. |
|
1041 |
Use this ONLY to file in some non-ANSI ST code" |
|
1042 |
||
1043 |
AllowGreekCharactersInIdentifier := aBoolean |
|
1044 |
||
1045 |
"Created: / 08-06-2019 / 14:54:04 / Claus Gittinger" |
|
1046 |
! |
|
1047 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1048 |
allowHashAsBinarySelector |
4412 | 1049 |
"if true, a free-standing single '#' is allowed as a binary selector. |
1050 |
The default is true." |
|
1051 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1052 |
^ AllowHashAsBinarySelector |
4412 | 1053 |
|
1054 |
"Modified (comment): / 23-05-2019 / 09:01:57 / Claus Gittinger" |
|
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1055 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1056 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1057 |
allowHashAsBinarySelector:aBoolean |
4412 | 1058 |
"if true, a free-standing single '#' is allowed as a binary selector. |
1059 |
The default is true." |
|
1060 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1061 |
AllowHashAsBinarySelector := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1062 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1063 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1064 |
self allowHashAsBinarySelector:true |
3396 | 1065 |
self allowHashAsBinarySelector:false |
4412 | 1066 |
123 # 234 |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1067 |
" |
4412 | 1068 |
|
1069 |
"Modified (comment): / 23-05-2019 / 09:01:54 / Claus Gittinger" |
|
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1070 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1071 |
|
4185 | 1072 |
allowJavaScriptConst |
1073 |
"return true, if const is allowed and treated as a keyword (in JavaScript)" |
|
1074 |
||
1075 |
^ AllowJavaScriptConst |
|
1076 |
||
1077 |
"Created: / 08-08-2017 / 23:48:48 / cg" |
|
1078 |
! |
|
1079 |
||
1080 |
allowJavaScriptConst:aBoolean |
|
1081 |
"true, if const is allowed and treated as a keyword (in JavaScript)" |
|
1082 |
||
1083 |
AllowJavaScriptConst := aBoolean |
|
1084 |
||
1085 |
"Created: / 08-08-2017 / 23:49:07 / cg" |
|
1086 |
! |
|
1087 |
||
4428 | 1088 |
allowLazyValueExtension |
1089 |
"allow !![...] to generate a lazy value" |
|
1090 |
||
1091 |
^ AllowLazyValueExtension |
|
1092 |
||
1093 |
"Created: / 03-06-2019 / 10:57:42 / Claus Gittinger" |
|
1094 |
! |
|
1095 |
||
1096 |
allowLazyValueExtension:aBoolean |
|
1097 |
"allow !![...] to generate a lazy value" |
|
1098 |
||
1099 |
AllowLazyValueExtension := aBoolean |
|
1100 |
||
1101 |
"Created: / 03-06-2019 / 10:57:50 / Claus Gittinger" |
|
1102 |
! |
|
1103 |
||
1634 | 1104 |
allowLiteralNameSpaceSymbols |
1105 |
"return true, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
1106 |
||
1107 |
^ AllowLiteralNameSpaceSymbols |
|
4412 | 1108 |
|
1109 |
" |
|
1110 |
#foo - ok |
|
1111 |
#foo::bar - ok |
|
1112 |
#foo.bar - not allowed |
|
1113 |
" |
|
1114 |
||
1115 |
"Modified (comment): / 23-05-2019 / 09:03:47 / Claus Gittinger" |
|
1634 | 1116 |
! |
1117 |
||
1118 |
allowLiteralNameSpaceSymbols:aBoolean |
|
1119 |
"controls, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
1120 |
||
1121 |
AllowLiteralNameSpaceSymbols := aBoolean |
|
4412 | 1122 |
|
1123 |
" |
|
1124 |
#foo - ok |
|
1125 |
#foo::bar - ok |
|
1126 |
#foo.bar - not allowed |
|
1127 |
" |
|
1128 |
||
1129 |
"Modified (comment): / 23-05-2019 / 09:03:43 / Claus Gittinger" |
|
1634 | 1130 |
! |
1131 |
||
1132 |
allowLocalVariableDeclarationWithInitializerExpression |
|
4301 | 1133 |
"experimental: | var := expr |" |
1634 | 1134 |
|
1135 |
^ AllowLocalVariableDeclarationWithInitializerExpression |
|
4301 | 1136 |
|
4412 | 1137 |
" |
1138 |
self allowLocalVariableDeclarationWithInitializerExpression:true |
|
1139 |
self allowLocalVariableDeclarationWithInitializerExpression:false |
|
1140 |
||
1141 |
|a := 0 . b := 1 | |
|
1142 |
Transcript showCR:'a is',a,' b is ',b |
|
1143 |
" |
|
1144 |
||
1145 |
"Modified (comment): / 23-05-2019 / 09:07:42 / Claus Gittinger" |
|
1634 | 1146 |
! |
1147 |
||
1148 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
4301 | 1149 |
"experimental: | var := expr |" |
1634 | 1150 |
|
1151 |
AllowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
4301 | 1152 |
|
1153 |
"Modified (comment): / 23-09-2018 / 00:44:04 / Claus Gittinger" |
|
1634 | 1154 |
! |
1155 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1156 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1157 |
"return true, if national characters (diaresis etc.) are allowed in identifiers" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1158 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1159 |
^ AllowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1160 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1161 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1162 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1163 |
"this allows turning on/off recognition of national characters (diaresis etc.) in identifiers. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1164 |
Use this ONLY to file in some non-ANSI ST/V code" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1165 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1166 |
AllowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1167 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1168 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1169 |
ParserFlags allowNationalCharactersInIdentifier:true |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1170 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1171 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1172 |
|
1634 | 1173 |
allowOldStyleAssignment |
1174 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
|
1175 |
||
1176 |
^ AllowOldStyleAssignment |
|
1177 |
! |
|
1178 |
||
1179 |
allowOldStyleAssignment:aBoolean |
|
1180 |
"this allows turning on/off recognition of underscore-assignment (pre ST-80v4 syntax). |
|
1181 |
You must turn this off, if code with variables named '_' is to be filedIn" |
|
1182 |
||
1183 |
AllowOldStyleAssignment := aBoolean |
|
1184 |
! |
|
1185 |
||
4041 | 1186 |
allowParagraphInIdentifier |
4406 | 1187 |
"return true, if §-characters are allowed in identifiers (treated as letter)" |
4041 | 1188 |
|
1189 |
^ AllowParagraphInIdentifier |
|
1190 |
||
1191 |
"Created: / 16-11-2016 / 22:24:32 / cg" |
|
1192 |
! |
|
1193 |
||
1194 |
allowParagraphInIdentifier:aBoolean |
|
4406 | 1195 |
"this allows turning on/off §-characters in identifiers." |
4041 | 1196 |
|
1197 |
AllowParagraphInIdentifier := aBoolean. |
|
1198 |
||
1199 |
"Created: / 16-11-2016 / 22:28:49 / cg" |
|
1200 |
! |
|
1201 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1202 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1203 |
"return true, if periods are allowed in a symbol literal #foo.bar. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1204 |
Needed to parse some old ST80/Squeak code" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1205 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1206 |
^ AllowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1207 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1208 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1209 |
allowPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1210 |
"control, if periods are allowed in a symbol literal #foo.bar. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1211 |
Needed to parse some old ST80/Squeak code" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1212 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1213 |
AllowPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1214 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1215 |
" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1216 |
self allowPeriodInSymbol:true. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1217 |
self assert:( Parser parseExpression:' #foo.bar.baz. ' ) value == #'foo.bar.baz'. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1218 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1219 |
self allowPeriodInSymbol:false. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1220 |
self assert:( Parser parseExpression:' #foo.bar.baz. ' ) value == #'foo'. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1221 |
" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1222 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1223 |
|
3576 | 1224 |
allowQualifiedNames |
4302 | 1225 |
"return true, if '#{..}' and 'namespace.varName' qualified names are allowed" |
3576 | 1226 |
|
1227 |
^ AllowQualifiedNames |
|
4302 | 1228 |
|
1229 |
"Modified (comment): / 23-09-2018 / 01:08:29 / Claus Gittinger" |
|
3576 | 1230 |
! |
1231 |
||
1232 |
allowQualifiedNames:aBoolean |
|
1233 |
"this allows turning on/off support for qualifiedNames #{ .., } as in vw3. |
|
1234 |
If you want to fileIn vw3 or later classes, enable this with: |
|
4256 | 1235 |
Compiler allowQualifiedNames:true |
3576 | 1236 |
Notice, that qualified names are not really supported semantically |
1237 |
(they are parsed, but treated like regular globals) |
|
1238 |
" |
|
1239 |
||
1240 |
AllowQualifiedNames := aBoolean. |
|
1241 |
||
1242 |
" |
|
1243 |
self allowQualifiedNames:true |
|
1244 |
self allowQualifiedNames:false |
|
1245 |
" |
|
1246 |
! |
|
1634 | 1247 |
|
4430 | 1248 |
allowRStrings |
1249 |
"rstrings have the syntax: |
|
1250 |
r'...' |
|
1251 |
which generates a regex" |
|
1252 |
||
1253 |
^ AllowRStrings |
|
1254 |
||
1255 |
"Created: / 03-06-2019 / 11:12:11 / Claus Gittinger" |
|
1256 |
! |
|
1257 |
||
1258 |
allowRStrings:aBoolean |
|
1259 |
"rstrings have the syntax: |
|
1260 |
r'...' |
|
1261 |
which generates a regex" |
|
1262 |
||
1263 |
AllowRStrings := aBoolean |
|
1264 |
||
1265 |
"Created: / 03-06-2019 / 11:12:37 / Claus Gittinger" |
|
1266 |
! |
|
1267 |
||
1634 | 1268 |
allowReservedWordsAsSelectors |
4449 | 1269 |
"if true, 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are allowed |
1634 | 1270 |
as unary message selectors." |
1271 |
||
1272 |
^ AllowReservedWordsAsSelectors ? false |
|
4449 | 1273 |
|
1274 |
"Modified (format): / 25-06-2019 / 11:17:15 / Claus Gittinger" |
|
1634 | 1275 |
! |
1276 |
||
1277 |
allowReservedWordsAsSelectors:aBoolean |
|
4449 | 1278 |
"enable/disable, if 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are to be allowed |
1634 | 1279 |
as unary message selectors." |
1280 |
||
1281 |
AllowReservedWordsAsSelectors := aBoolean. |
|
1282 |
||
1283 |
" |
|
1284 |
self allowReservedWordsAsSelectors:true |
|
1285 |
self allowReservedWordsAsSelectors:false |
|
1286 |
" |
|
4449 | 1287 |
|
1288 |
"Modified (comment): / 25-06-2019 / 11:18:13 / Claus Gittinger" |
|
1634 | 1289 |
! |
1290 |
||
1702 | 1291 |
allowSTVExtensions |
1292 |
"return true, if support for ST/V syntax extensions is enabled." |
|
1293 |
||
1294 |
^ AllowSTVExtensions |
|
1295 |
! |
|
1296 |
||
1297 |
allowSTVExtensions:aBoolean |
|
1298 |
"this allows turning on/off support for ST/V extensions: |
|
1299 |
If you want to fileIn ST/V classes, enable this with: |
|
4256 | 1300 |
Compiler allowSTVComputedArrays:true" |
1702 | 1301 |
|
1302 |
AllowSTVExtensions := aBoolean. |
|
1303 |
||
1304 |
" |
|
1704 | 1305 |
ParserFlags allowSTVExtensions:true |
1306 |
ParserFlags allowSTVExtensions:false |
|
1702 | 1307 |
" |
1308 |
! |
|
1309 |
||
1700 | 1310 |
allowSTVPrimitives |
1311 |
"return true, if support for ST/V primitives is enabled." |
|
1312 |
||
1313 |
^ AllowSTVPrimitives |
|
1314 |
! |
|
1315 |
||
1316 |
allowSTVPrimitives:aBoolean |
|
1317 |
"this allows turning on/off support for ST/V primitives" |
|
1318 |
||
1319 |
AllowSTVPrimitives := aBoolean |
|
1704 | 1320 |
|
1321 |
" |
|
1322 |
ParserFlags allowSTVPrimitives:true |
|
1323 |
" |
|
1700 | 1324 |
! |
1325 |
||
2984 | 1326 |
allowSTXDelimiterComments |
3455 | 1327 |
"token delimited comments; |
1328 |
these are multiline comments of the form: |
|
4174 | 1329 |
''>>TOKEN |
1330 |
... anything, including double quotes |
|
1331 |
TOKEN>>'' |
|
3455 | 1332 |
(the '' being a double quote in the above) |
1333 |
Such comments are especially useful to comment pieces of sample code, which may |
|
1334 |
contain another comment in it, but you don't want to make them all EOL comments |
|
1335 |
(which are an ST/X speciality also, by the way). |
|
1336 |
Be aware, that no other smalltalk supports this, so your code becomes harder to port, if you use it. |
|
1337 |
" |
|
1338 |
||
2984 | 1339 |
^ AllowSTXDelimiterComments |
4174 | 1340 |
|
1341 |
"Modified (comment): / 28-07-2017 / 10:32:54 / cg" |
|
2984 | 1342 |
! |
1343 |
||
1344 |
allowSTXDelimiterComments:aBoolean |
|
3455 | 1345 |
"enable token delimited comments; |
1346 |
these are multiline comments of the form: |
|
4256 | 1347 |
''>>TOKEN |
1348 |
... anything, including double quotes |
|
1349 |
TOKEN>>'' |
|
3455 | 1350 |
(the '' being a double quote in the above) |
1351 |
Such comments are especially useful to comment pieces of sample code, which may |
|
1352 |
contain another comment in it, but you don't want to make them all EOL comments |
|
1353 |
(which are an ST/X speciality also, by the way). |
|
1354 |
Be aware, that no other smalltalk supports this, so your code becomes harder to port, if you use it. |
|
1355 |
" |
|
1356 |
||
2984 | 1357 |
AllowSTXDelimiterComments := aBoolean. |
1358 |
||
1359 |
" |
|
1360 |
self allowSTXDelimiterComments:true |
|
1361 |
self allowSTXDelimiterComments:false |
|
1362 |
" |
|
1363 |
! |
|
1364 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1365 |
allowSTXEOLComments |
3946 | 1366 |
"are ST/X end-of-line comments allowed?" |
1367 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1368 |
^ AllowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1369 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1370 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1371 |
allowSTXEOLComments:aBoolean |
3946 | 1372 |
"are ST/X end-of-line comments allowed?" |
1373 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1374 |
AllowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1375 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1376 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1377 |
self allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1378 |
self allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1379 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1380 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1381 |
|
3945 | 1382 |
allowSTXExtendedArrayLiterals |
3946 | 1383 |
"are scheme-style typed literal arrays allowed?" |
1384 |
||
3945 | 1385 |
^ AllowSTXExtendedArrayLiterals ? false |
1386 |
! |
|
1387 |
||
1388 |
allowSTXExtendedArrayLiterals:aBoolean |
|
3946 | 1389 |
"are scheme-style typed literal arrays allowed?" |
1390 |
||
3945 | 1391 |
AllowSTXExtendedArrayLiterals := aBoolean. |
1392 |
||
1393 |
" |
|
1394 |
self allowSTXExtendedArrayLiterals:true |
|
1395 |
self allowSTXExtendedArrayLiterals:false |
|
1396 |
" |
|
1397 |
! |
|
1398 |
||
4085 | 1399 |
allowSignedByteArrayElements |
1400 |
"return true, if byteArray elements are allowed to be negative." |
|
1401 |
||
1402 |
^ AllowSignedByteArrayElements |
|
1403 |
! |
|
1404 |
||
1405 |
allowSignedByteArrayElements:aBoolean |
|
1406 |
"controls, if byteArray elements are allowed to be negative." |
|
1407 |
||
1408 |
AllowSignedByteArrayElements := aBoolean |
|
1409 |
! |
|
1410 |
||
3576 | 1411 |
allowSqueakExtensions |
1412 |
"return true, if support for squeak extensions |
|
4256 | 1413 |
computed arrays { .., } |
1414 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
3576 | 1415 |
is enabled." |
1416 |
||
1417 |
^ AllowSqueakExtensions |
|
1418 |
! |
|
1419 |
||
1420 |
allowSqueakExtensions:aBoolean |
|
1421 |
"this allows turning on/off support for squeak extensions: |
|
4256 | 1422 |
computed arrays { .., } |
1423 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
3576 | 1424 |
|
1425 |
If you want to fileIn Squeak classes, enable this with: |
|
4256 | 1426 |
Compiler allowSqueakComputedArrays:true" |
3576 | 1427 |
|
1428 |
AllowSqueakExtensions := aBoolean. |
|
1429 |
||
1430 |
" |
|
1431 |
self allowSqueakExtensions:true |
|
1432 |
self allowSqueakExtensions:false |
|
1433 |
" |
|
1434 |
! |
|
1634 | 1435 |
|
1689 | 1436 |
allowSqueakPrimitives |
1437 |
"return true, if support for squeak primitives is enabled." |
|
1438 |
||
1439 |
^ AllowSqueakPrimitives |
|
1440 |
! |
|
1441 |
||
1442 |
allowSqueakPrimitives:aBoolean |
|
1443 |
"this allows turning on/off support for squeak primitives" |
|
1444 |
||
1445 |
AllowSqueakPrimitives := aBoolean |
|
1446 |
! |
|
1447 |
||
4149 | 1448 |
allowSymbolsStartingWithDigit |
1449 |
"return true, if a symbol is allowed to start with a digit |
|
1450 |
i.e. as in #2D. |
|
1451 |
This seems to be ok in new Squeak/Pharo versions" |
|
1452 |
||
1453 |
^ AllowSymbolsStartingWithDigit |
|
1454 |
||
1455 |
"Created: / 18-06-2017 / 16:23:20 / cg" |
|
1456 |
! |
|
1457 |
||
1458 |
allowSymbolsStartingWithDigit:aBoolean |
|
1459 |
"controls if a symbol is allowed to start with a digit |
|
1460 |
i.e. as in #2D. |
|
1461 |
This seems to be ok in new Squeak/Pharo versions" |
|
1462 |
||
1463 |
AllowSymbolsStartingWithDigit := aBoolean |
|
1464 |
||
1465 |
"Created: / 18-06-2017 / 16:24:47 / cg" |
|
1466 |
! |
|
1467 |
||
1634 | 1468 |
allowUnderscoreInIdentifier |
1469 |
"return true, if underscores are allowed in identifiers" |
|
1470 |
||
1471 |
^ AllowUnderscoreInIdentifier |
|
1472 |
! |
|
1473 |
||
1474 |
allowUnderscoreInIdentifier:aBoolean |
|
1475 |
"this allows turning on/off underscores in identifiers. |
|
1476 |
If turned off (the default), underscores are not allowed in identifiers, |
|
1477 |
but instead scanned as assignment character (old ST/80 syntax). |
|
1478 |
If turned on, underscores are in identifiers are allowed, while extra |
|
1479 |
underscores are still scanned as assignment. |
|
3396 | 1480 |
If you have to fileIn old VW-Vsn2.x classes, |
1634 | 1481 |
turn them off with: |
4256 | 1482 |
Compiler allowUnderscoreInIdentifiers:false" |
1634 | 1483 |
|
1484 |
AllowUnderscoreInIdentifier := aBoolean. |
|
1485 |
||
1486 |
"Modified: 7.9.1997 / 01:35:19 / cg" |
|
1655 | 1487 |
! |
1488 |
||
2310 | 1489 |
allowUnicodeCharacters |
1490 |
^ AllowUnicodeCharacters |
|
1491 |
! |
|
1492 |
||
1493 |
allowUnicodeCharacters:aBoolean |
|
1494 |
AllowUnicodeCharacters := aBoolean. |
|
1495 |
! |
|
1496 |
||
2307 | 1497 |
allowUnicodeStrings |
1498 |
^ AllowUnicodeStrings |
|
1499 |
! |
|
1500 |
||
1501 |
allowUnicodeStrings:aBoolean |
|
1502 |
AllowUnicodeStrings := aBoolean. |
|
1503 |
! |
|
1504 |
||
1655 | 1505 |
allowVisualAgeESSymbolLiterals |
1506 |
"return true, if ##symbols are allowed (treated like symbols)" |
|
1507 |
||
1508 |
^ AllowVisualAgeESSymbolLiterals |
|
1509 |
! |
|
1510 |
||
1511 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
1512 |
"if on, visualAge's ##symbols are allowed (treated like symbols)" |
|
1513 |
||
1514 |
AllowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 1515 |
! |
1516 |
||
1517 |
allowVisualAgePrimitives |
|
1518 |
"return true, if support for V'Age primitives is enabled." |
|
1519 |
||
3396 | 1520 |
^ AllowVisualAgePrimitives |
2747 | 1521 |
|
1522 |
" |
|
1523 |
AllowVisualAgePrimitives := true |
|
1524 |
AllowVisualAgePrimitives := false |
|
1525 |
" |
|
1526 |
||
1527 |
"Modified (comment): / 18-10-2011 / 16:49:12 / cg" |
|
1689 | 1528 |
! |
1529 |
||
1530 |
allowVisualAgePrimitives:aBoolean |
|
1531 |
"this allows turning on/off support for V'Age primitives" |
|
1532 |
||
1533 |
AllowVisualAgePrimitives := aBoolean |
|
1773 | 1534 |
! |
1535 |
||
1536 |
allowVisualWorksMethodAnnotations |
|
1537 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
1538 |
||
1539 |
^ AllowVisualWorksMethodAnnotations |
|
1540 |
||
1541 |
"Created: / 07-07-2006 / 15:49:32 / cg" |
|
1542 |
! |
|
1543 |
||
1544 |
allowVisualWorksMethodAnnotations:aBoolean |
|
1545 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
1546 |
||
1547 |
AllowVisualWorksMethodAnnotations := aBoolean |
|
1548 |
||
1549 |
"Created: / 07-07-2006 / 15:49:27 / cg" |
|
3220 | 1550 |
! |
1551 |
||
4421 | 1552 |
singlePrecisionFloatF |
1553 |
"by default, the 'f'-character in a float literal will generate |
|
1554 |
double-precision Float instances. |
|
1555 |
With allowSinglePrecisionFloats, it will generate single precision ShortFloat instances. |
|
1556 |
Notice, that there is some confusion among Smalltalk systems, whether a float has |
|
1557 |
single or double precision (VW vs. V'age). |
|
1558 |
In ST/X, floats have double-precision by default." |
|
1559 |
||
1560 |
^ SinglePrecisionFloatF |
|
1561 |
||
1562 |
"Created: / 26-05-2019 / 11:32:38 / Claus Gittinger" |
|
1563 |
! |
|
1564 |
||
1565 |
singlePrecisionFloatF:aBoolean |
|
1566 |
"by default, the 'f'-character in a float literal will generate |
|
1567 |
double-precision Float instances. |
|
1568 |
With allowSinglePrecisionFloats, it will generate single precision ShortFloat instances. |
|
1569 |
Notice, that there is some confusion among Smalltalk systems, whether a float has |
|
1570 |
single or double precision (VW vs. V'age). |
|
1571 |
In ST/X, floats have double-precision by default." |
|
1572 |
||
1573 |
SinglePrecisionFloatF := aBoolean |
|
1574 |
||
1575 |
"Created: / 26-05-2019 / 11:32:29 / Claus Gittinger" |
|
1576 |
! |
|
1577 |
||
3220 | 1578 |
warnAssignmentToBlockArgument |
1579 |
^ WarnAssignmentToBlockArgument |
|
1580 |
! |
|
1581 |
||
1582 |
warnAssignmentToBlockArgument:aBoolean |
|
1583 |
WarnAssignmentToBlockArgument := aBoolean |
|
1584 |
! |
|
1585 |
||
1586 |
warnAssignmentToMethodArgument |
|
1587 |
^ WarnAssignmentToMethodArgument |
|
1588 |
! |
|
1589 |
||
1590 |
warnAssignmentToMethodArgument:aBoolean |
|
1591 |
WarnAssignmentToMethodArgument := aBoolean |
|
1592 |
! |
|
1593 |
||
1594 |
warnAssignmentToPoolVariable |
|
1595 |
^ WarnAssignmentToPoolVariable |
|
1596 |
! |
|
1597 |
||
1598 |
warnAssignmentToPoolVariable:aBoolean |
|
1599 |
WarnAssignmentToPoolVariable := aBoolean |
|
1634 | 1600 |
! ! |
1601 |
||
1602 |
!ParserFlags class methodsFor:'accessing-warning-control'! |
|
1603 |
||
1652 | 1604 |
warnAboutBadComments |
1605 |
"controls generation of warning messages about empty comments" |
|
3396 | 1606 |
|
1652 | 1607 |
^ WarnAboutBadComments |
1608 |
! |
|
1609 |
||
1610 |
warnAboutBadComments:aBoolean |
|
1611 |
"controls generation of warning messages about empty comments" |
|
3396 | 1612 |
|
1652 | 1613 |
WarnAboutBadComments := aBoolean |
1614 |
! |
|
1615 |
||
1811 | 1616 |
warnAboutNonLowercaseLocalVariableNames |
1740 | 1617 |
"controls generation of warning messages about wrong variable names" |
3396 | 1618 |
|
1811 | 1619 |
^ WarnAboutNonLowercaseLocalVariableNames |
1740 | 1620 |
! |
1621 |
||
3396 | 1622 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
1740 | 1623 |
"controls generation of warning messages about wrong variable names" |
3396 | 1624 |
|
1811 | 1625 |
WarnAboutNonLowercaseLocalVariableNames := aBoolean |
1740 | 1626 |
! |
1627 |
||
3396 | 1628 |
warnAboutPeriodInSymbol |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1629 |
^ WarnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1630 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1631 |
|
3396 | 1632 |
warnAboutPeriodInSymbol:aBoolean |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1633 |
WarnAboutPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1634 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1635 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1636 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1637 |
^ WarnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1638 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1639 |
"Created: / 16-11-2006 / 14:31:52 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1640 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1641 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1642 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1643 |
WarnAboutPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1644 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1645 |
"Created: / 16-11-2006 / 14:31:57 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1646 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1647 |
|
2121 | 1648 |
warnAboutPossiblyUnimplementedSelectors |
1649 |
^ WarnAboutPossiblyUnimplementedSelectors |
|
1650 |
! |
|
1651 |
||
1652 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
1653 |
WarnAboutPossiblyUnimplementedSelectors := aBoolean |
|
1654 |
! |
|
1655 |
||
4406 | 1656 |
warnAboutPossiblyUninitializedLocals |
1657 |
^ WarnAboutPossiblyUninitializedLocals |
|
1658 |
||
1659 |
"Created: / 23-04-2019 / 23:09:08 / Claus Gittinger" |
|
1660 |
! |
|
1661 |
||
1662 |
warnAboutPossiblyUninitializedLocals:aBoolean |
|
1663 |
WarnAboutPossiblyUninitializedLocals := aBoolean |
|
1664 |
||
1665 |
"Created: / 23-04-2019 / 23:09:20 / Claus Gittinger" |
|
1666 |
! |
|
1667 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1668 |
warnAboutReferenceToPrivateClass |
3396 | 1669 |
"controls generation of warning messages when a private class is referenced" |
1670 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1671 |
^ WarnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1672 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1673 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1674 |
warnAboutReferenceToPrivateClass:aBoolean |
3396 | 1675 |
"controls generation of warning messages when a private class is referenced" |
1676 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1677 |
WarnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1678 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1679 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1680 |
warnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1681 |
"controls generation of warning messages about short variable names" |
3396 | 1682 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1683 |
^ WarnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1684 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1685 |
|
3396 | 1686 |
warnAboutShortLocalVariableNames:aBoolean |
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1687 |
"controls generation of warning messages about short variable names" |
3396 | 1688 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1689 |
WarnAboutShortLocalVariableNames := aBoolean |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1690 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1691 |
|
2739 | 1692 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
1693 |
"things like '\c:foo' instead of '\\c:foo' " |
|
3396 | 1694 |
|
2739 | 1695 |
^ WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
1696 |
||
1697 |
"Created: / 04-10-2011 / 19:54:57 / cg" |
|
1698 |
! |
|
1699 |
||
1700 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean |
|
1701 |
"things like '\c:foo' instead of '\\c:foo' " |
|
3396 | 1702 |
|
2739 | 1703 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean |
1704 |
||
1705 |
"Created: / 04-10-2011 / 19:54:42 / cg" |
|
1706 |
! |
|
1707 |
||
3396 | 1708 |
warnAboutVariableNameConventions |
1634 | 1709 |
"controls generation of warning messages about wrong variable names" |
3396 | 1710 |
|
1634 | 1711 |
^ WarnAboutVariableNameConventions |
1712 |
! |
|
1713 |
||
3396 | 1714 |
warnAboutVariableNameConventions:aBoolean |
1634 | 1715 |
"controls generation of warning messages about wrong variable names" |
3396 | 1716 |
|
1634 | 1717 |
WarnAboutVariableNameConventions := aBoolean |
1718 |
! |
|
1719 |
||
1720 |
warnAboutWrongVariableNames |
|
1721 |
"controls generation of warning messages about wrong variable names" |
|
3396 | 1722 |
|
1634 | 1723 |
^ WarnAboutWrongVariableNames |
1724 |
! |
|
1725 |
||
1726 |
warnAboutWrongVariableNames:aBoolean |
|
1727 |
"controls generation of warning messages about wrong variable names" |
|
3396 | 1728 |
|
1634 | 1729 |
WarnAboutWrongVariableNames := aBoolean |
1730 |
! |
|
1731 |
||
1732 |
warnCommonMistakes |
|
1733 |
"return true, if common beginners mistakes are to be warned about" |
|
1734 |
||
1754 | 1735 |
^ WarnCommonMistakes |
1634 | 1736 |
! |
1737 |
||
1738 |
warnCommonMistakes:aBoolean |
|
1739 |
"this allows turning on/off warnings about common beginners mistakes. |
|
1740 |
Those are not really errors in the strict sense, but often lead to |
|
1741 |
run time errors later. |
|
1742 |
Examples are: expr or:expr2, where expr2 is not a block. |
|
1743 |
If you get bored by those warnings, turn them off by adding |
|
1744 |
a line as: |
|
4256 | 1745 |
ParserFlags warnCommonMistakes:false |
1634 | 1746 |
in your 'private.rc' file" |
1747 |
||
1748 |
WarnCommonMistakes := aBoolean |
|
1902 | 1749 |
|
1750 |
"Modified: / 05-09-2006 / 11:46:26 / cg" |
|
1634 | 1751 |
! |
1752 |
||
1753 |
warnDollarInIdentifier |
|
1754 |
"return true, if $-characters in identifiers are to be warned about" |
|
1755 |
||
1756 |
^ Warnings and:[WarnDollarInIdentifier] |
|
1757 |
||
1758 |
"Created: 7.9.1997 / 01:36:17 / cg" |
|
1759 |
! |
|
1760 |
||
1761 |
warnDollarInIdentifier:aBoolean |
|
1762 |
"this allows turning on/off warnings about $-characters in identifiers. |
|
1763 |
You may find those warnings useful, to make certain that your code |
|
4041 | 1764 |
is portable to other Smalltalk versions, which do not allow this |
1634 | 1765 |
(i.e. VW releases 2.x and maybe others). |
1766 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
1767 |
If you get bored by those warnings, turn them off by adding |
|
1768 |
a line as: |
|
4041 | 1769 |
ParserFlags warnDollarInIdentifier:false |
1634 | 1770 |
in your 'private.rc' file" |
1771 |
||
1772 |
WarnDollarInIdentifier := aBoolean |
|
1773 |
||
1902 | 1774 |
"Created: / 07-09-1997 / 01:37:42 / cg" |
1775 |
"Modified: / 05-09-2006 / 11:46:23 / cg" |
|
4041 | 1776 |
"Modified (comment): / 16-11-2016 / 22:31:06 / cg" |
1634 | 1777 |
! |
1778 |
||
1682 | 1779 |
warnHiddenVariables |
1780 |
"controls generation of warning messages about hiding variables by locals" |
|
3396 | 1781 |
|
1682 | 1782 |
^ WarnHiddenVariables |
1783 |
! |
|
1784 |
||
1785 |
warnHiddenVariables:aBoolean |
|
1786 |
"controls generation of warning messages about hiding variables by locals" |
|
1787 |
||
1788 |
WarnHiddenVariables := aBoolean |
|
1789 |
! |
|
1790 |
||
1791 |
warnInconsistentReturnValues |
|
1792 |
"return true, if compiler should warn about inconsitent (boolean / non-boolean) |
|
1793 |
return values" |
|
1794 |
||
1795 |
^ WarnInconsistentReturnValues |
|
1796 |
! |
|
1797 |
||
1798 |
warnInconsistentReturnValues:aBoolean |
|
1799 |
"constrols if the compiler should warn about inconsitent (boolean / non-boolean) |
|
1800 |
return values" |
|
1801 |
||
1802 |
WarnInconsistentReturnValues := aBoolean |
|
1803 |
! |
|
1804 |
||
1634 | 1805 |
warnOldStyleAssignment |
1806 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be warned about" |
|
1807 |
||
1808 |
^ Warnings and:[WarnOldStyleAssignment] |
|
1809 |
! |
|
1810 |
||
1811 |
warnOldStyleAssignment:aBoolean |
|
1812 |
"this allows turning on/off warnings about underscore-assignment (pre ST-80v4 syntax). |
|
1813 |
If you get bored by those warnings, turn them off by adding |
|
1814 |
a line as: |
|
4256 | 1815 |
ParserFlags warnOldStyleAssignment:false |
1634 | 1816 |
in your 'private.rc' file" |
1817 |
||
1818 |
WarnOldStyleAssignment := aBoolean |
|
1902 | 1819 |
|
1820 |
"Modified: / 05-09-2006 / 11:46:17 / cg" |
|
1634 | 1821 |
! |
1822 |
||
4041 | 1823 |
warnParagraphInIdentifier |
4406 | 1824 |
"return true, if §-characters in identifiers are to be warned about" |
4041 | 1825 |
|
1826 |
^ Warnings and:[WarnParagraphInIdentifier] |
|
1827 |
||
1828 |
"Created: / 16-11-2016 / 22:30:01 / cg" |
|
1829 |
! |
|
1830 |
||
1831 |
warnParagraphInIdentifier:aBoolean |
|
4406 | 1832 |
"this allows turning on/off warnings about §-characters in identifiers. |
4041 | 1833 |
You may find those warnings useful, to make certain that your code |
1834 |
is portable to other Smalltalk versions, which do not allow this" |
|
1835 |
||
1836 |
WarnParagraphInIdentifier := aBoolean |
|
1837 |
||
1838 |
"Created: / 16-11-2016 / 22:30:45 / cg" |
|
1839 |
! |
|
1840 |
||
2787 | 1841 |
warnPlausibilityChecks |
1842 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
1843 |
||
1844 |
^ WarnPlausibilityChecks |
|
1845 |
||
1846 |
"Created: / 19-01-2012 / 10:38:20 / cg" |
|
1847 |
! |
|
1848 |
||
1849 |
warnPlausibilityChecks:aBoolean |
|
1850 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
1851 |
||
1852 |
WarnPlausibilityChecks := aBoolean |
|
1853 |
||
1854 |
"Created: / 19-01-2012 / 10:38:39 / cg" |
|
1855 |
! |
|
1856 |
||
1634 | 1857 |
warnPossibleIncompatibilities |
1858 |
"return true, if possible incompatibilities (with other ST systems) |
|
1859 |
are to be warned about" |
|
1860 |
||
1861 |
^ Warnings and:[WarnPossibleIncompatibilities] |
|
1862 |
||
1863 |
"Modified: 23.5.1997 / 12:02:02 / cg" |
|
1864 |
! |
|
1865 |
||
1866 |
warnPossibleIncompatibilities:aBoolean |
|
1867 |
"this turns warnings about possible incompatibilities (with other ST systems) |
|
1868 |
on or off. |
|
1869 |
If you get bored by those warnings, turn them off by adding |
|
1870 |
a line as: |
|
4256 | 1871 |
ParserFlags warnPossibleIncompatibilities:false |
1634 | 1872 |
in your 'private.rc' file." |
1873 |
||
1874 |
WarnPossibleIncompatibilities := aBoolean |
|
1875 |
||
1902 | 1876 |
"Created: / 23-05-1997 / 12:02:45 / cg" |
1877 |
"Modified: / 05-09-2006 / 11:46:14 / cg" |
|
1634 | 1878 |
! |
1879 |
||
1880 |
warnSTXSpecials |
|
1881 |
"return true, if ST/X specials are to be warned about" |
|
1882 |
||
1883 |
^ Warnings and:[WarnSTXSpecials] |
|
1884 |
! |
|
1885 |
||
1886 |
warnSTXSpecials:aBoolean |
|
1887 |
"this allows turning on/off warnings about stx specials. |
|
1888 |
If you get bored by those warnings, turn them off by adding |
|
1889 |
a line as: |
|
4256 | 1890 |
ParserFlags warnSTXSpecials:false |
1634 | 1891 |
in your 'private.rc' file" |
1892 |
||
1893 |
WarnSTXSpecials := aBoolean |
|
1902 | 1894 |
|
1895 |
"Modified: / 05-09-2006 / 11:46:11 / cg" |
|
1634 | 1896 |
! |
1897 |
||
1898 |
warnUnderscoreInIdentifier |
|
1899 |
"return true, if underscores in identifiers are to be warned about" |
|
1900 |
||
1901 |
^ Warnings and:[WarnUnderscoreInIdentifier] |
|
1902 |
! |
|
1903 |
||
1904 |
warnUnderscoreInIdentifier:aBoolean |
|
1905 |
"this allows turning on/off warnings about underscores in identifiers. |
|
1906 |
You may find those warnings useful, to make certain that your code |
|
1907 |
is portable to other smalltalk versions, which do not allow this |
|
1908 |
(i.e. VW releases 2.x). |
|
1909 |
If you get bored by those warnings, turn them off by adding |
|
1910 |
a line as: |
|
4256 | 1911 |
ParserFlags warnUnderscoreInIdentifier:false |
1634 | 1912 |
in your 'private.rc' file" |
1913 |
||
1914 |
WarnUnderscoreInIdentifier := aBoolean |
|
1915 |
||
1902 | 1916 |
"Modified: / 05-09-2006 / 11:46:08 / cg" |
1634 | 1917 |
! |
1918 |
||
1919 |
warnUnusedVars |
|
1920 |
"controls generation of warning messages about unued method variables" |
|
1921 |
||
1922 |
^ WarnUnusedVars |
|
1923 |
! |
|
1924 |
||
1925 |
warnUnusedVars:aBoolean |
|
1926 |
"controls generation of warning messages about unued method variables" |
|
1927 |
||
1928 |
WarnUnusedVars := aBoolean |
|
1929 |
! |
|
1930 |
||
1931 |
warnings |
|
1932 |
"return true, if any warnings are to be shown" |
|
1933 |
||
1934 |
^ Warnings |
|
1935 |
! |
|
1936 |
||
1937 |
warnings:aBoolean |
|
1938 |
"this allows turning on/off all warnings; the default is on. |
|
1939 |
You can turn off warnings in your 'private.rc' file with |
|
4256 | 1940 |
ParserFlags warnings:false |
1634 | 1941 |
" |
1942 |
||
1943 |
Warnings := aBoolean |
|
1944 |
||
1902 | 1945 |
" |
1946 |
ParserFlags warnings |
|
1947 |
ParserFlags warnings:true |
|
1948 |
ParserFlags warnings:false |
|
1949 |
" |
|
1950 |
||
1951 |
"Modified: / 05-09-2006 / 11:46:47 / cg" |
|
1634 | 1952 |
! ! |
1953 |
||
1954 |
!ParserFlags class methodsFor:'class initialization'! |
|
1955 |
||
3576 | 1956 |
initialize |
4017 | 1957 |
|executablePath topDir| |
3576 | 1958 |
|
4421 | 1959 |
SinglePrecisionFloatF := false. |
1960 |
||
3576 | 1961 |
Warnings := true. |
1962 |
WarnUndeclared := true. |
|
1963 |
WarnUnusedVars := true. |
|
1964 |
WarnSTXSpecials := false. |
|
1965 |
WarnST80Directives := false. |
|
1966 |
WarnAboutWrongVariableNames := true. |
|
1967 |
WarnAboutVariableNameConventions := true. |
|
1968 |
WarnAboutBadComments := true. |
|
4406 | 1969 |
WarnAboutPossiblyUninitializedLocals := true. |
3576 | 1970 |
WarnUnderscoreInIdentifier := false. |
1971 |
WarnDollarInIdentifier := true. |
|
4041 | 1972 |
WarnParagraphInIdentifier := true. |
3576 | 1973 |
WarnOldStyleAssignment := true. |
1974 |
WarnCommonMistakes := true. |
|
1975 |
WarnPossibleIncompatibilities := false. |
|
1976 |
WarnHiddenVariables := true. |
|
1977 |
WarnInconsistentReturnValues := true. |
|
1978 |
WarnAboutNonLowercaseLocalVariableNames := true. |
|
1979 |
WarnAboutShortLocalVariableNames := false. |
|
1980 |
WarnAboutPossibleSTCCompilationProblems := true. |
|
1981 |
WarnAboutReferenceToPrivateClass := true. |
|
1982 |
WarnAboutPossiblyUnimplementedSelectors := true. |
|
1983 |
WarnAboutPeriodInSymbol := true. |
|
1984 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := false. |
|
1985 |
WarnPlausibilityChecks := true. |
|
1986 |
WarnAssignmentToBlockArgument := true. |
|
1987 |
WarnAssignmentToMethodArgument := true. |
|
1988 |
WarnAssignmentToPoolVariable := true. |
|
1989 |
||
1990 |
AllowReservedWordsAsSelectors := false. |
|
1991 |
AllowUnderscoreInIdentifier := true. |
|
4041 | 1992 |
AllowParagraphInIdentifier := false. |
3576 | 1993 |
AllowDollarInIdentifier := false. "/ st80-vms dollars in identifiers |
1994 |
AllowOldStyleAssignment := true. "/ st80 underscore as assignment |
|
1995 |
AllowDolphinExtensions := false. "/ dolphin computed literal |
|
1996 |
AllowQualifiedNames := false. "/ vw3 qualified names |
|
1997 |
AllowExtendedBinarySelectors := false. "/ vw5.4 extended binary selectors (plus/minus, center-dot etc.) |
|
1998 |
AllowCaretAsBinop := false. "/ too dangerous |
|
1999 |
AllowLiteralNameSpaceSymbols := true. "/ st/x literal nameSpace-symbols (#foo::bar) |
|
2000 |
AllowArrayIndexSyntaxExtension := false. |
|
2001 |
AllowFunctionCallSyntaxForBlockEvaluation := false. |
|
2002 |
AllowLocalVariableDeclarationWithInitializerExpression := false. |
|
2003 |
AllowDomainVariables := false. |
|
2004 |
AllowArrayIndexSyntaxExtension := false. |
|
2005 |
AllowReservedWordsAsSelectors := true. |
|
2006 |
AllowVariableReferences := false. |
|
2007 |
AllowLazyValueExtension := false. |
|
2008 |
AllowFixedPointLiterals := true "false". |
|
2009 |
AllowExtendedSTXSyntax := false. |
|
2010 |
AllowVisualAgeESSymbolLiterals := false. |
|
2011 |
AllowExtensionsToPrivateClasses := true. |
|
2012 |
AllowVisualAgePrimitives := false. |
|
2013 |
AllowSqueakExtensions := true. "/ squeak computed array |
|
2014 |
AllowSqueakPrimitives := false. |
|
2015 |
AllowSTVPrimitives := false. "/ number-sign syntax |
|
2016 |
AllowSTVExtensions := false. |
|
2017 |
AllowNationalCharactersInIdentifier := false. |
|
4436 | 2018 |
AllowGreekCharactersInIdentifier := false. |
3576 | 2019 |
AllowHashAsBinarySelector := true. |
2020 |
AllowSTXEOLComments := true. |
|
2021 |
AllowSTXDelimiterComments := true. "/ until stc and RBScanner support it also |
|
2022 |
AllowVisualWorksMethodAnnotations := false. |
|
2023 |
AllowPossibleSTCCompilationProblems := true. "/ must be true, to allow fileIn!! |
|
2024 |
AllowEmptyStatements := false. |
|
2025 |
AllowPeriodInSymbol := false. |
|
4301 | 2026 |
AllowPeriodAsNameSpaceSeparator := false. |
3576 | 2027 |
"/ these are only used by the new compiler |
4346 | 2028 |
AllowCStrings := true. "/ c'...' syntax |
4412 | 2029 |
AllowEStrings := false. "/ e'...' syntax |
4430 | 2030 |
AllowRStrings := false. "/ r'...' syntax |
3576 | 2031 |
AllowUnicodeStrings := false. |
2032 |
AllowUnicodeCharacters := false. |
|
2033 |
AllowCharacterEscapes := false. |
|
2034 |
AllowStringEscapes := false. |
|
2035 |
AllowAssignmentToBlockArgument := false. |
|
2036 |
AllowAssignmentToMethodArgument := false. |
|
2037 |
AllowAssignmentToPoolVariable := false. |
|
2038 |
"/ AllowAssignmentToPoolVariable := true. |
|
4085 | 2039 |
AllowSignedByteArrayElements := false. |
4149 | 2040 |
AllowSymbolsStartingWithDigit := false. |
4185 | 2041 |
|
2042 |
AllowJavaScriptConst := true. |
|
4149 | 2043 |
|
3576 | 2044 |
ArraysAreImmutable := false. "/ still care for ST-80 compatibility |
2045 |
StringsAreImmutable := false. "/ still care for ST-80 compatibility |
|
2046 |
"/ ArraysAreImmutable := true. "/ do not care for ST-80 compatibility |
|
2047 |
"/ StringsAreImmutable := true. "/ do not care for ST-80 compatibility |
|
2048 |
ImplicitSelfSends := false. |
|
4050 | 2049 |
|
3576 | 2050 |
STCKeepCIntermediate := false. |
2051 |
STCKeepOIntermediate := false. |
|
2052 |
STCKeepSTIntermediate := false. |
|
2053 |
STCCompilation := #default. |
|
2054 |
||
2055 |
DefineForBorlandC := '__BORLANDC__'. |
|
2056 |
DefineForVisualC := '__VISUALC__'. |
|
2057 |
DefineForMSC := '__MSC__'. |
|
4255 | 2058 |
"/ https://expeccoalm.exept.de/D252306 |
2059 |
"/ must not redefine __GNUC__, because gcc defines this anyway with the gcc version |
|
2060 |
"/ contained in this macro (which is used by glibc includes). |
|
2061 |
"/ also defined in STCCompilerInterface class >> #getCCDefine |
|
2062 |
DefineForGNUC := 'STX__GNUC__'. |
|
3576 | 2063 |
DefineForMINGW := '__MINGW__'. |
2064 |
DefineForMINGW32 := '__MINGW32__'. |
|
2065 |
DefineForMINGW64 := '__MINGW64__'. |
|
3945 | 2066 |
DefineForCLANG := '__CLANG__'. |
3576 | 2067 |
|
4017 | 2068 |
"/ try along the executable's path itself |
3576 | 2069 |
(executablePath := OperatingSystem pathOfSTXExecutable) notNil ifTrue:[ |
4017 | 2070 |
|parentDir| |
2071 |
||
2072 |
parentDir := executablePath asFilename directory. |
|
2073 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
2074 |
topDir := parentDir. |
|
2075 |
] ifFalse:[ |
|
2076 |
parentDir := parentDir directory. |
|
2077 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
2078 |
topDir := parentDir. |
|
2079 |
] ifFalse:[ |
|
2080 |
parentDir := parentDir directory. |
|
2081 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
2082 |
topDir := parentDir. |
|
2083 |
] |
|
2084 |
] |
|
2085 |
]. |
|
2086 |
]. |
|
2087 |
||
2088 |
topDir isNil ifTrue:[ |
|
4048 | 2089 |
"/ try standard installation paths... |
4017 | 2090 |
OperatingSystem isOSXlike ifTrue:[ |
2091 |
|appDir parentDir| |
|
2092 |
||
2093 |
(appDir := '/Applications/SmalltalkX.app' asFilename) exists ifTrue:[ |
|
2094 |
(parentDir := appDir / 'Packages/stx') exists ifTrue:[ |
|
2095 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
2096 |
topDir := parentDir. |
|
2097 |
]. |
|
2098 |
]. |
|
2099 |
]. |
|
2100 |
(appDir := Filename homeDirectory / 'Applications/SmalltalkX.app') exists ifTrue:[ |
|
2101 |
(parentDir := appDir / 'Packages/stx') exists ifTrue:[ |
|
2102 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
2103 |
topDir := parentDir. |
|
2104 |
]. |
|
2105 |
]. |
|
2106 |
]. |
|
2107 |
]. |
|
2108 |
]. |
|
2109 |
||
2110 |
topDir notNil ifTrue:[ |
|
2111 |
self initializeSTCFlagsForTopDirectory:topDir. |
|
3576 | 2112 |
]. |
2113 |
||
2114 |
" |
|
2115 |
ParserFlags initialize |
|
2116 |
" |
|
2117 |
||
2118 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
|
4185 | 2119 |
"Modified: / 08-08-2017 / 23:49:41 / cg" |
4255 | 2120 |
"Modified (comment): / 11-05-2018 / 10:12:29 / stefan" |
4436 | 2121 |
"Modified: / 08-06-2019 / 14:53:27 / Claus Gittinger" |
3576 | 2122 |
! |
2123 |
||
2124 |
initializeSTCFlagsForTopDirectory:topDirArg |
|
2125 |
"topDirArg must be the stx directory (where stc directory with stc-executable is found) |
|
2126 |
notice: for now, can only initialize for borland+windows or linux; |
|
2127 |
visualC setup still fails." |
|
2128 |
||
3719 | 2129 |
|topDir topDirName vcTop sdkTop bccTop mingwTop |
3945 | 2130 |
borlandDir useBorlandC useVisualC useMingw32 useMingw64 |
4256 | 2131 |
programFiles archArg picArg optArg| |
3576 | 2132 |
|
2133 |
topDir := topDirArg. |
|
2134 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
3960 | 2135 |
topDirArg isString ifTrue:[ |
2136 |
topDir := topDirArg copyReplaceAll:$/ with:$\ ifNone:topDirArg. |
|
2137 |
] |
|
3576 | 2138 |
]. |
2139 |
topDir := topDir asFilename. |
|
2140 |
topDirName := topDir name. |
|
2141 |
||
2142 |
"/ if in the development directory, use ./modules |
|
2143 |
Smalltalk isSmalltalkDevelopmentSystem ifTrue:[ |
|
4017 | 2144 |
STCModulePath := UserPreferences current workspaceDirectory / 'modules'. |
3576 | 2145 |
] ifFalse:[ |
4017 | 2146 |
STCModulePath := Filename tempDirectory / 'modules'. |
3576 | 2147 |
]. |
2148 |
||
2149 |
(topDir construct:'stc') exists ifFalse:[ |
|
3960 | 2150 |
('ParserFlags [warning]: stc not found in "',topDirName,'"') infoPrintCR. |
2151 |
'ParserFlags [warning]: stc-compiling (primitive code) will not work in the browser' infoPrintCR. |
|
2152 |
STCCompilation := #never. |
|
3576 | 2153 |
]. |
2154 |
||
2155 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
3960 | 2156 |
useBorlandC := useVisualC := useMingw32 := useMingw64 := false. |
2157 |
programFiles := OperatingSystem getEnvironment:'ProgramFiles'. |
|
2158 |
programFiles isEmptyOrNil ifTrue:[ programFiles := 'C:\Program Files' ]. |
|
2159 |
||
2160 |
STCCompilationIncludes := '-I',topDirName,'\include -I',topDirName,'\libopengl'. |
|
2161 |
||
4252 | 2162 |
ExternalBytes sizeofPointer == 4 ifFalse:[ |
3960 | 2163 |
bccTop := nil |
2164 |
] ifTrue:[ |
|
2165 |
(bccTop := BCCTop) isNil ifTrue:[ |
|
2166 |
borlandDir := OperatingSystem getEnvironment:'BCCDIR'. |
|
2167 |
borlandDir isEmptyOrNil ifTrue:[ borlandDir := 'C:\Borland\bcc55' ]. |
|
2168 |
bccTop := { |
|
2169 |
(borlandDir) . |
|
2170 |
(programFiles , '\Borland\bcc55') . |
|
2171 |
(programFiles , '\bcc55') . |
|
2172 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] |
|
2173 |
ifNone:nil. |
|
2174 |
]. |
|
2175 |
]. |
|
2176 |
||
2177 |
STCCompilationDefines := '-DWIN32'. |
|
2178 |
||
2179 |
(bccTop notNil and:[bccTop asFilename exists]) ifTrue:[ |
|
2180 |
STCCompilationIncludes := STCCompilationIncludes,' -I',bccTop,'\Include'. |
|
2181 |
LibDirectory := topDirName,'\lib\bc'. |
|
2182 |
LinkArgs := '-L',topDirName,'\lib\bc'. |
|
2183 |
LinkArgs := LinkArgs,' -L',bccTop,'\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
2184 |
CCPath := 'bcc32'. |
|
2185 |
MakeCommand := 'bmake'. |
|
2186 |
LinkCommand := 'ilink32'. |
|
2187 |
CCCompilationOptions := '-w-'. |
|
2188 |
useBorlandC := true. |
|
2189 |
] ifFalse:[ |
|
4252 | 2190 |
ExternalBytes sizeofPointer == 4 ifFalse:[ |
3960 | 2191 |
vcTop := nil. |
2192 |
] ifTrue:[ |
|
2193 |
(vcTop := VCTop) isNil ifTrue:[ |
|
2194 |
vcTop := { |
|
2195 |
(programFiles,'\Microsoft Visual Studio 13.0\VC') . |
|
2196 |
(programFiles,'\Microsoft Visual Studio 12.0\VC') . |
|
2197 |
(programFiles,'\Microsoft Visual Studio 11.0\VC') . |
|
2198 |
(programFiles,'\Microsoft Visual Studio 10.0\VC') . |
|
2199 |
(programFiles,'\Microsoft Visual Studio 9.0\VC' ) . |
|
2200 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/cl.exe') exists]] |
|
2201 |
ifNone:nil. |
|
2202 |
]. |
|
2203 |
]. |
|
2204 |
(vcTop notNil and:[vcTop asFilename exists]) ifTrue:[ |
|
2205 |
useVisualC := true. |
|
2206 |
STCCompilationIncludes := STCCompilationIncludes,' -I',vcTop,'include'. |
|
2207 |
||
2208 |
(sdkTop := SDKTop) isNil ifTrue:[ |
|
2209 |
sdkTop := { |
|
2210 |
(programFiles,'\Microsoft SDKs\Windows\v9.0A') . |
|
2211 |
(programFiles,'\Microsoft SDKs\Windows\v8.0A') . |
|
2212 |
(programFiles,'\Microsoft SDKs\Windows\v8.0A') . |
|
2213 |
(programFiles,'\Microsoft SDKs\Windows\v7.0A') . |
|
2214 |
(programFiles,'\Microsoft SDKs\Windows\v6.0A') . |
|
2215 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] ifNone:nil. |
|
2216 |
]. |
|
2217 |
(sdkTop notNil and:[sdkTop asFilename exists]) ifTrue:[ |
|
2218 |
STCCompilationIncludes := STCCompilationIncludes,' -I',sdkTop,'\include'. |
|
2219 |
]. |
|
2220 |
LibDirectory := topDirName,'\lib\vc'. |
|
2221 |
LinkArgs := '-L',topDirName,'\lib\vc'. |
|
2222 |
LinkArgs := LinkArgs,' -r -c -ap -Tpd -Gi -w-dup'. |
|
2223 |
CCPath := vcTop,'\bin\cl.exe'. |
|
2224 |
LinkCommand := 'ilink32'. |
|
2225 |
MakeCommand := 'vcmake'. |
|
2226 |
CCCompilationOptions := '/nologo /ZI /w /GF /EHsc /FR.\objvc\'. |
|
2227 |
] ifFalse:[ |
|
2228 |
"/ add definitions for lcc, mingc etc. |
|
2229 |
"/ STCCompilationIncludes := STCCompilationIncludes,' -IC:\xxxxx\Include'. |
|
4252 | 2230 |
ExternalBytes sizeofPointer == 4 ifTrue:[ |
3960 | 2231 |
(mingwTop := MingwTop) isNil ifTrue:[ |
2232 |
mingwTop := { |
|
2233 |
(programFiles,'\mingw') . |
|
2234 |
(programFiles,'\mingw') . |
|
2235 |
('c:\mingw32') . |
|
2236 |
('c:\mingw') . |
|
2237 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/gcc.exe') exists]] |
|
2238 |
ifNone:nil. |
|
2239 |
]. |
|
2240 |
(mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[ |
|
2241 |
useMingw32 := true. |
|
2242 |
STCCompilationDefines := STCCompilationDefines,' -D__MINGW32__'. |
|
2243 |
CCCompilationOptions := '-w32'. |
|
2244 |
]. |
|
2245 |
] ifFalse:[ |
|
2246 |
(mingwTop := MingwTop) isNil ifTrue:[ |
|
2247 |
mingwTop := { |
|
2248 |
(programFiles,'\mingw64') . |
|
2249 |
(programFiles,'\mingw') . |
|
2250 |
('c:\mingw64') . |
|
2251 |
('c:\mingw') . |
|
2252 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/gcc.exe') exists]] |
|
2253 |
ifNone:nil. |
|
2254 |
]. |
|
2255 |
(mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[ |
|
2256 |
STCCompilationDefines := STCCompilationDefines,' -D__MINGW64__'. |
|
2257 |
"/ CCCompilationOptions := '-w64'. |
|
2258 |
]. |
|
2259 |
]. |
|
2260 |
(mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[ |
|
2261 |
STCCompilationDefines := STCCompilationDefines,' -D__MINGW__'. |
|
2262 |
CCPath := mingwTop,'\bin\gcc.exe'. |
|
2263 |
LinkCommand := 'gcc'. |
|
2264 |
MakeCommand := 'mingwmake'. |
|
2265 |
LibDirectory := topDirName,'\lib\mingw'. |
|
2266 |
LinkArgs := '-L',topDirName,'\lib\mingw'. |
|
2267 |
"/ LinkArgs := LinkArgs,' -r -c -ap -Tpd -Gi -w-dup'. |
|
2268 |
]. |
|
2269 |
]. |
|
2270 |
]. |
|
2271 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
2272 |
(topDirName,'\stc\stc.exe') asFilename exists ifTrue:[ |
|
2273 |
STCPath := (topDirName,'\stc\stc.exe'). |
|
2274 |
] ifFalse:[ |
|
2275 |
STCPath := 'stc.exe'. |
|
2276 |
]. |
|
2277 |
LibPath := ''. |
|
2278 |
SearchedLibraries := #('import32.lib'). |
|
2279 |
"/ SearchedLibraries := #('import32.lib' 'glu32.lib' 'opengl32.lib'). |
|
3576 | 2280 |
] ifFalse:[ |
3960 | 2281 |
STCCompilationIncludes := '-I',topDirName,'/include'. |
2282 |
STCCompilationDefines := ''. |
|
2283 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
2284 |
STCPath := topDirName,'/stc/stc'. |
|
2285 |
||
2286 |
archArg := picArg := ''. |
|
4256 | 2287 |
optArg := '-O'. |
4252 | 2288 |
(ExternalBytes sizeofPointer == 4) ifTrue:[ |
3960 | 2289 |
archArg := ' -m32' |
2290 |
] ifFalse:[ |
|
2291 |
archArg := ' -m64'. "gcc -m64 needs -fPIC to make a shared library" |
|
2292 |
picArg := ' -fPIC'. |
|
2293 |
]. |
|
4256 | 2294 |
self useClang ifTrue:[ |
3960 | 2295 |
CCPath := 'clang' |
2296 |
] ifFalse:[ |
|
4256 | 2297 |
self useGnuC ifTrue:[ |
2298 |
CCPath := 'gcc'. |
|
4279 | 2299 |
optArg := '-O2 -fno-toplevel-reorder -fno-stack-protector -fno-strict-overflow'. |
3960 | 2300 |
] ifFalse:[ |
2301 |
CCPath := 'cc' |
|
2302 |
]. |
|
2303 |
]. |
|
4256 | 2304 |
CCCompilationOptions := STCCompilerInterface getCPUDefine, |
2305 |
' -D', self usedCompilerDefine, |
|
2306 |
' ', STCCompilerInterface getOSDefine, |
|
2307 |
' ', optArg, archArg, picArg. |
|
3960 | 2308 |
LinkArgs := archArg. |
2309 |
LinkCommand := CCPath. |
|
2310 |
LinkSharedArgs := '-shared'. |
|
2311 |
||
2312 |
OperatingSystem isOSXlike ifTrue:[ |
|
4017 | 2313 |
LinkSharedArgs := '-shared -mmacosx-version-min=10.5 -arch x86_64 librun.so'. |
2314 |
CCCompilationOptions := CCCompilationOptions ,' -mmacosx-version-min=10.5' |
|
3960 | 2315 |
]. |
2316 |
LibPath := ''. |
|
2317 |
SearchedLibraries := #(). |
|
2318 |
MakeCommand := 'make'. |
|
3576 | 2319 |
]. |
2320 |
||
4025 | 2321 |
(Smalltalk verbose and:[ Smalltalk infoPrinting ]) ifTrue:[ |
4017 | 2322 |
'ParserFlags [info]: STC Setup:' infoPrintCR. |
2323 |
('ParserFlags [info]: STCCompilationDefines: ',(STCCompilationDefines?'')) infoPrintCR. |
|
2324 |
('ParserFlags [info]: CCPath: ',CCPath asString) infoPrintCR. |
|
2325 |
('ParserFlags [info]: CCCompilationOptions: ',(CCCompilationOptions?'')) infoPrintCR. |
|
2326 |
('ParserFlags [info]: LinkCommand: ',LinkCommand asString) infoPrintCR. |
|
2327 |
('ParserFlags [info]: MakeCommand: ',MakeCommand asString) infoPrintCR. |
|
2328 |
('ParserFlags [info]: LinkArgs: ',(LinkArgs?''),' ',(LinkSharedArgs ?'')) infoPrintCR. |
|
2329 |
('ParserFlags [info]: STCModulePath: ',STCModulePath asString) infoPrintCR. |
|
3748 | 2330 |
]. |
2331 |
||
3576 | 2332 |
" |
2333 |
ParserFlags initializeSTCFlagsForTopDirectory:'../..' |
|
4017 | 2334 |
ParserFlags initialize |
3576 | 2335 |
" |
2336 |
||
2337 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
|
2338 |
"Created: / 06-08-2011 / 19:47:47 / cg" |
|
4256 | 2339 |
"Modified: / 11-05-2018 / 14:18:42 / stefan" |
4279 | 2340 |
"Modified: / 19-06-2018 / 10:47:21 / Stefan Vogel" |
3576 | 2341 |
! ! |
1634 | 2342 |
|
2685 | 2343 |
!ParserFlags methodsFor:'accessing'! |
2344 |
||
2927 | 2345 |
fullLineNumberInfo |
2346 |
^ (self lineNumberInfo == #full) |
|
2347 |
||
2348 |
"Created: / 26-09-2012 / 14:13:42 / cg" |
|
2349 |
! |
|
2350 |
||
2351 |
lineNumberInfo |
|
2352 |
^ lineNumberInfo |
|
2353 |
||
2354 |
"Created: / 26-09-2012 / 13:27:08 / cg" |
|
2355 |
! |
|
2356 |
||
2357 |
lineNumberInfo:something |
|
2358 |
lineNumberInfo := something. |
|
2359 |
||
2360 |
"Created: / 26-09-2012 / 13:27:17 / cg" |
|
2685 | 2361 |
! ! |
2362 |
||
1658 | 2363 |
!ParserFlags methodsFor:'accessing-compilation control'! |
2364 |
||
1668 | 2365 |
allowExtensionsToPrivateClasses |
2366 |
^ allowExtensionsToPrivateClasses |
|
2367 |
! |
|
2368 |
||
2369 |
allowExtensionsToPrivateClasses:aBoolean |
|
4339 | 2370 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2371 |
||
1668 | 2372 |
allowExtensionsToPrivateClasses := aBoolean |
4339 | 2373 |
|
2374 |
"Modified (comment): / 09-02-2019 / 15:52:10 / Claus Gittinger" |
|
1668 | 2375 |
! |
2376 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2377 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2378 |
^ allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2379 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2380 |
"Created: / 16-11-2006 / 14:24:54 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2381 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2382 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2383 |
allowPossibleSTCCompilationProblems:aBoolean |
4339 | 2384 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2385 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2386 |
allowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2387 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2388 |
"Created: / 16-11-2006 / 14:24:56 / cg" |
4339 | 2389 |
"Modified (comment): / 09-02-2019 / 15:53:08 / Claus Gittinger" |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2390 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2391 |
|
1658 | 2392 |
arraysAreImmutable |
2393 |
^ arraysAreImmutable |
|
2394 |
! |
|
2395 |
||
2396 |
arraysAreImmutable:aBoolean |
|
2397 |
arraysAreImmutable := aBoolean. |
|
2398 |
! |
|
2399 |
||
1717
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2400 |
flattenVisualWorksNamespaces |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2401 |
^ true |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2402 |
! |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2403 |
|
1658 | 2404 |
stringsAreImmutable |
2405 |
^ stringsAreImmutable |
|
2406 |
! |
|
2407 |
||
2408 |
stringsAreImmutable:aBoolean |
|
2409 |
stringsAreImmutable := aBoolean. |
|
2410 |
! ! |
|
2411 |
||
2412 |
!ParserFlags methodsFor:'accessing-stc compilation control'! |
|
2413 |
||
2414 |
ccCompilationOptions |
|
1668 | 2415 |
^ ccCompilationOptions ? '' |
4043 | 2416 |
|
2417 |
" |
|
2418 |
self ccCompilationOptions |
|
2419 |
" |
|
2420 |
||
2421 |
"Modified (comment): / 17-11-2016 / 15:40:29 / cg" |
|
1658 | 2422 |
! |
2423 |
||
2424 |
ccCompilationOptions:something |
|
2425 |
ccCompilationOptions := something. |
|
2426 |
! |
|
2427 |
||
2428 |
ccPath |
|
2429 |
^ ccPath |
|
4043 | 2430 |
|
2431 |
" |
|
2432 |
self ccPath |
|
2433 |
" |
|
2434 |
||
2435 |
"Modified (comment): / 17-11-2016 / 15:40:40 / cg" |
|
1658 | 2436 |
! |
2437 |
||
2438 |
ccPath:something |
|
2439 |
ccPath := something. |
|
2440 |
! |
|
2441 |
||
2442 |
implicitSelfSends |
|
2443 |
^ implicitSelfSends |
|
2444 |
! |
|
2445 |
||
2446 |
implicitSelfSends:aBoolean |
|
2447 |
implicitSelfSends := aBoolean. |
|
2448 |
! |
|
2449 |
||
2450 |
libPath |
|
2451 |
^ libPath |
|
4043 | 2452 |
|
2453 |
" |
|
2454 |
self libPath |
|
2455 |
" |
|
2456 |
||
2457 |
"Modified (comment): / 17-11-2016 / 15:40:52 / cg" |
|
1658 | 2458 |
! |
2459 |
||
2460 |
libPath:aString |
|
2461 |
libPath := aString |
|
2462 |
! |
|
2463 |
||
2464 |
linkArgs |
|
2465 |
^ linkArgs |
|
4043 | 2466 |
|
2467 |
" |
|
2468 |
self linkArgs |
|
2469 |
" |
|
2470 |
||
2471 |
"Modified (comment): / 17-11-2016 / 15:41:03 / cg" |
|
1658 | 2472 |
! |
2473 |
||
2474 |
linkArgs:aString |
|
2475 |
linkArgs := aString |
|
2476 |
! |
|
2477 |
||
2478 |
linkCommand |
|
2479 |
^ linkCommand |
|
4043 | 2480 |
|
2481 |
" |
|
2482 |
self linkCommand |
|
2483 |
" |
|
2484 |
||
2485 |
"Modified (comment): / 17-11-2016 / 15:41:16 / cg" |
|
1658 | 2486 |
! |
2487 |
||
2488 |
linkCommand:aString |
|
2489 |
linkCommand := aString |
|
2490 |
! |
|
2491 |
||
1898 | 2492 |
linkSharedArgs |
2493 |
^ linkSharedArgs |
|
2494 |
! |
|
2495 |
||
2496 |
linkSharedArgs:aString |
|
2497 |
linkSharedArgs := aString |
|
2498 |
! |
|
2499 |
||
1658 | 2500 |
searchedLibraries |
2501 |
^ searchedLibraries |
|
2502 |
! |
|
2503 |
||
2504 |
searchedLibraries:aString |
|
2505 |
searchedLibraries := aString |
|
2506 |
! |
|
2507 |
||
2508 |
stcCompilation |
|
2509 |
^ stcCompilation |
|
2510 |
! |
|
2511 |
||
2512 |
stcCompilation:something |
|
2513 |
stcCompilation := something. |
|
2514 |
! |
|
2515 |
||
2516 |
stcCompilationDefines |
|
2517 |
^ stcCompilationDefines |
|
2518 |
! |
|
2519 |
||
2520 |
stcCompilationDefines:something |
|
2521 |
stcCompilationDefines := something. |
|
2522 |
! |
|
2523 |
||
2524 |
stcCompilationIncludes |
|
2525 |
^ stcCompilationIncludes |
|
4043 | 2526 |
|
2527 |
" |
|
2528 |
self stcCompilationIncludes |
|
2529 |
" |
|
2530 |
||
2531 |
"Modified (comment): / 17-11-2016 / 15:41:43 / cg" |
|
1658 | 2532 |
! |
2533 |
||
2534 |
stcCompilationIncludes:something |
|
2535 |
stcCompilationIncludes := something. |
|
2536 |
! |
|
2537 |
||
2538 |
stcCompilationOptions |
|
2539 |
^ stcCompilationOptions |
|
2540 |
! |
|
2541 |
||
2542 |
stcCompilationOptions:something |
|
2543 |
stcCompilationOptions := something. |
|
2544 |
! |
|
2545 |
||
2546 |
stcKeepCIntermediate |
|
2701
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
2547 |
^ stcKeepCIntermediate ? false |
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
2548 |
|
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
2549 |
"Modified: / 16-09-2011 / 19:56:22 / cg" |
1658 | 2550 |
! |
2551 |
||
2552 |
stcKeepCIntermediate:something |
|
2553 |
stcKeepCIntermediate := something. |
|
2554 |
! |
|
2555 |
||
2556 |
stcKeepOIntermediate |
|
2702 | 2557 |
^ stcKeepOIntermediate ? false |
2558 |
||
2559 |
"Modified: / 16-09-2011 / 19:56:52 / cg" |
|
1658 | 2560 |
! |
2561 |
||
2562 |
stcKeepOIntermediate:something |
|
2563 |
stcKeepOIntermediate := something. |
|
2564 |
! |
|
2565 |
||
2490 | 2566 |
stcKeepSIntermediate |
2567 |
^ false |
|
2568 |
"/ ^ true |
|
2569 |
! |
|
2570 |
||
1658 | 2571 |
stcKeepSTIntermediate |
2702 | 2572 |
^ stcKeepSTIntermediate ? false |
2573 |
||
2574 |
"Modified: / 16-09-2011 / 19:57:11 / cg" |
|
1658 | 2575 |
! |
2576 |
||
2577 |
stcKeepSTIntermediate:something |
|
2578 |
stcKeepSTIntermediate := something. |
|
2579 |
! |
|
2580 |
||
2581 |
stcModulePath |
|
4012 | 2582 |
stcModulePath isNil ifTrue:[^ self class stcModulePath]. |
2583 |
^ stcModulePath |
|
1658 | 2584 |
! |
2585 |
||
4013 | 2586 |
stcModulePath:aPath |
2587 |
"set the path to the directory (for an individual compilation context). |
|
2588 |
Obsolete now, as this should not be set from the outside, |
|
2589 |
but instead rely totally on the userPreferences." |
|
2590 |
||
2591 |
stcModulePath := aPath. |
|
1658 | 2592 |
! |
2593 |
||
2594 |
stcPath |
|
2595 |
^ stcPath |
|
2596 |
! |
|
2597 |
||
4017 | 2598 |
stcPath:aPath |
2599 |
stcPath := aPath. |
|
1658 | 2600 |
! ! |
2601 |
||
2602 |
!ParserFlags methodsFor:'accessing-syntax-control'! |
|
1634 | 2603 |
|
2604 |
allowArrayIndexSyntaxExtension |
|
4301 | 2605 |
"experimental syntax: var[idx-expr]" |
2606 |
||
4179 | 2607 |
^ allowArrayIndexSyntaxExtension ? false |
2608 |
||
2609 |
"Modified: / 08-08-2017 / 16:57:03 / cg" |
|
4437 | 2610 |
"Modified (comment): / 08-06-2019 / 15:00:13 / Claus Gittinger" |
1634 | 2611 |
! |
2612 |
||
2613 |
allowArrayIndexSyntaxExtension:aBoolean |
|
4301 | 2614 |
"experimental syntax: var[idx-expr]" |
4339 | 2615 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
4301 | 2616 |
|
1634 | 2617 |
allowArrayIndexSyntaxExtension := aBoolean. |
4301 | 2618 |
|
4339 | 2619 |
"Modified (comment): / 09-02-2019 / 15:51:18 / Claus Gittinger" |
1634 | 2620 |
! |
2621 |
||
3220 | 2622 |
allowAssignmentToBlockArgument |
2623 |
^ allowAssignmentToBlockArgument |
|
2624 |
! |
|
2625 |
||
2626 |
allowAssignmentToBlockArgument:aBoolean |
|
4339 | 2627 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2628 |
||
3220 | 2629 |
allowAssignmentToBlockArgument := aBoolean. |
4339 | 2630 |
|
2631 |
"Modified (comment): / 09-02-2019 / 15:51:22 / Claus Gittinger" |
|
3220 | 2632 |
! |
2633 |
||
2634 |
allowAssignmentToMethodArgument |
|
2635 |
^ allowAssignmentToMethodArgument |
|
2636 |
! |
|
2637 |
||
2638 |
allowAssignmentToMethodArgument:aBoolean |
|
4339 | 2639 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2640 |
||
3220 | 2641 |
allowAssignmentToMethodArgument := aBoolean. |
4339 | 2642 |
|
2643 |
"Modified (comment): / 09-02-2019 / 15:51:27 / Claus Gittinger" |
|
3220 | 2644 |
! |
2645 |
||
2646 |
allowAssignmentToPoolVariable |
|
2647 |
^ allowAssignmentToPoolVariable |
|
2648 |
! |
|
2649 |
||
2650 |
allowAssignmentToPoolVariable:aBoolean |
|
4339 | 2651 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2652 |
||
3220 | 2653 |
allowAssignmentToPoolVariable := aBoolean. |
4339 | 2654 |
|
2655 |
"Modified (comment): / 09-02-2019 / 15:51:29 / Claus Gittinger" |
|
3220 | 2656 |
! |
2657 |
||
4333 | 2658 |
allowCStrings |
4412 | 2659 |
"cstrings have the syntax: |
2660 |
c'...' |
|
2661 |
where inside the string, c-language escapes are recognized" |
|
2662 |
||
4333 | 2663 |
^ allowCStrings ? false. |
2664 |
||
2665 |
"Created: / 08-02-2019 / 18:28:33 / Claus Gittinger" |
|
4412 | 2666 |
"Modified (comment): / 23-05-2019 / 10:26:31 / Claus Gittinger" |
4333 | 2667 |
! |
2668 |
||
2669 |
allowCStrings:aBoolean |
|
4412 | 2670 |
"cstrings have the syntax: |
2671 |
c'...' |
|
2672 |
where inside the string, c-language escapes are recognized" |
|
2673 |
||
4339 | 2674 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2675 |
||
4333 | 2676 |
allowCStrings := aBoolean |
2677 |
||
2678 |
"Created: / 08-02-2019 / 18:28:47 / Claus Gittinger" |
|
4412 | 2679 |
"Modified (comment): / 23-05-2019 / 10:26:36 / Claus Gittinger" |
4333 | 2680 |
! |
2681 |
||
2306 | 2682 |
allowCaretAsBinop |
2683 |
^ allowCaretAsBinop |
|
2684 |
! |
|
2685 |
||
2686 |
allowCaretAsBinop:aBoolean |
|
4339 | 2687 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2688 |
||
2306 | 2689 |
allowCaretAsBinop := aBoolean. |
4339 | 2690 |
|
2691 |
"Modified (comment): / 09-02-2019 / 15:51:38 / Claus Gittinger" |
|
2306 | 2692 |
! |
2693 |
||
2312 | 2694 |
allowCharacterEscapes |
2695 |
^ allowCharacterEscapes |
|
2696 |
! |
|
2697 |
||
2698 |
allowCharacterEscapes:aBoolean |
|
4339 | 2699 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2700 |
||
2312 | 2701 |
allowCharacterEscapes := aBoolean. |
4339 | 2702 |
|
2703 |
"Modified (comment): / 09-02-2019 / 15:51:41 / Claus Gittinger" |
|
2312 | 2704 |
! |
2705 |
||
1634 | 2706 |
allowDollarInIdentifier |
2707 |
^ allowDollarInIdentifier |
|
2708 |
! |
|
2709 |
||
2710 |
allowDollarInIdentifier:aBoolean |
|
4339 | 2711 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2712 |
||
1634 | 2713 |
allowDollarInIdentifier := aBoolean. |
4339 | 2714 |
|
2715 |
"Modified (comment): / 09-02-2019 / 15:51:47 / Claus Gittinger" |
|
1634 | 2716 |
! |
2717 |
||
2718 |
allowDolphinExtensions |
|
2719 |
^ allowDolphinExtensions |
|
2720 |
! |
|
2721 |
||
2722 |
allowDolphinExtensions:aBoolean |
|
4339 | 2723 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2724 |
||
1634 | 2725 |
allowDolphinExtensions := aBoolean |
4339 | 2726 |
|
2727 |
"Modified (comment): / 09-02-2019 / 15:51:50 / Claus Gittinger" |
|
1634 | 2728 |
! |
2729 |
||
2730 |
allowDomainVariables |
|
2731 |
^ allowDomainVariables |
|
2732 |
! |
|
2733 |
||
2734 |
allowDomainVariables:aBoolean |
|
4339 | 2735 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2736 |
||
1634 | 2737 |
allowDomainVariables := aBoolean. |
4339 | 2738 |
|
2739 |
"Modified (comment): / 09-02-2019 / 15:51:55 / Claus Gittinger" |
|
1634 | 2740 |
! |
2741 |
||
4412 | 2742 |
allowEStrings |
2743 |
"estrings have the syntax: |
|
2744 |
e'...' |
|
2745 |
where inside the string, c-language escapes are recognized |
|
2746 |
AND embedded expressions {expr} are sliced into the string." |
|
2747 |
||
2748 |
^ allowEStrings ? false. |
|
2749 |
||
2750 |
"Created: / 23-05-2019 / 10:25:50 / Claus Gittinger" |
|
2751 |
! |
|
2752 |
||
2753 |
allowEStrings:aBoolean |
|
2754 |
"estrings have the syntax: |
|
2755 |
e'...' |
|
2756 |
where inside the string, c-language escapes are recognized |
|
2757 |
AND embedded expressions {expr} are sliced into the string." |
|
2758 |
||
2759 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
|
2760 |
||
2761 |
allowEStrings := aBoolean |
|
2762 |
||
2763 |
"Created: / 23-05-2019 / 10:26:02 / Claus Gittinger" |
|
2764 |
! |
|
2765 |
||
1950 | 2766 |
allowEmptyStatements |
2767 |
^ allowEmptyStatements ? false |
|
2768 |
||
2769 |
"Created: / 20-11-2006 / 13:56:14 / cg" |
|
2770 |
! |
|
2771 |
||
2772 |
allowEmptyStatements:aBoolean |
|
4339 | 2773 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2774 |
||
1950 | 2775 |
allowEmptyStatements := aBoolean. |
2776 |
||
2777 |
"Created: / 20-11-2006 / 14:26:48 / cg" |
|
4339 | 2778 |
"Modified (comment): / 09-02-2019 / 15:51:58 / Claus Gittinger" |
1950 | 2779 |
! |
2780 |
||
1634 | 2781 |
allowExtendedBinarySelectors |
2782 |
^ allowExtendedBinarySelectors |
|
2783 |
! |
|
2784 |
||
2785 |
allowExtendedBinarySelectors:aBoolean |
|
4339 | 2786 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2787 |
||
1634 | 2788 |
allowExtendedBinarySelectors := aBoolean. |
4339 | 2789 |
|
2790 |
"Modified (comment): / 09-02-2019 / 15:52:01 / Claus Gittinger" |
|
1634 | 2791 |
! |
2792 |
||
2793 |
allowExtendedSTXSyntax |
|
4413 | 2794 |
"enables ALL of the ST/X extensions. |
2795 |
Do not use for now, as stc does not support all of them" |
|
2796 |
||
1634 | 2797 |
^ allowExtendedSTXSyntax |
4413 | 2798 |
|
2799 |
"Modified (comment): / 23-05-2019 / 10:36:04 / Claus Gittinger" |
|
1634 | 2800 |
! |
2801 |
||
3220 | 2802 |
allowExtendedSTXSyntax:aBoolean |
4413 | 2803 |
"enables ALL of the ST/X extensions. |
2804 |
Do not use for now, as stc does not support all of them" |
|
2805 |
||
4339 | 2806 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2807 |
||
3220 | 2808 |
allowExtendedSTXSyntax := aBoolean. |
4339 | 2809 |
|
4413 | 2810 |
"Modified (comment): / 23-05-2019 / 10:41:41 / Claus Gittinger" |
1634 | 2811 |
! |
2812 |
||
2813 |
allowFixedPointLiterals |
|
2814 |
^ allowFixedPointLiterals |
|
2815 |
! |
|
2816 |
||
3220 | 2817 |
allowFixedPointLiterals:aBoolean |
4339 | 2818 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2819 |
||
3220 | 2820 |
allowFixedPointLiterals := aBoolean. |
4339 | 2821 |
|
2822 |
"Modified (comment): / 09-02-2019 / 15:52:13 / Claus Gittinger" |
|
1634 | 2823 |
! |
2824 |
||
2825 |
allowFunctionCallSyntaxForBlockEvaluation |
|
4179 | 2826 |
^ allowFunctionCallSyntaxForBlockEvaluation ? false |
2827 |
||
2828 |
"Modified: / 08-08-2017 / 16:57:17 / cg" |
|
1634 | 2829 |
! |
2830 |
||
2831 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
4339 | 2832 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2833 |
||
1634 | 2834 |
allowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
4339 | 2835 |
|
2836 |
"Modified (comment): / 09-02-2019 / 15:52:19 / Claus Gittinger" |
|
1634 | 2837 |
! |
2838 |
||
4436 | 2839 |
allowGreekCharactersInIdentifier |
2840 |
^ allowGreekCharactersInIdentifier |
|
2841 |
||
2842 |
"Created: / 08-06-2019 / 14:52:42 / Claus Gittinger" |
|
2843 |
! |
|
2844 |
||
2845 |
allowGreekCharactersInIdentifier:aBoolean |
|
4437 | 2846 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2847 |
||
4436 | 2848 |
allowGreekCharactersInIdentifier := aBoolean |
2849 |
||
2850 |
"Created: / 08-06-2019 / 14:54:55 / Claus Gittinger" |
|
2851 |
! |
|
2852 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2853 |
allowHashAsBinarySelector |
1713 | 2854 |
^ allowHashAsBinarySelector |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2855 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2856 |
|
4185 | 2857 |
allowJavaScriptConst |
4437 | 2858 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2859 |
||
4185 | 2860 |
^ allowJavaScriptConst |
2861 |
||
2862 |
"Created: / 08-08-2017 / 23:50:12 / cg" |
|
4437 | 2863 |
"Modified (comment): / 08-06-2019 / 15:00:52 / Claus Gittinger" |
4185 | 2864 |
! |
2865 |
||
2866 |
allowJavaScriptConst:aBoolean |
|
2867 |
allowJavaScriptConst := aBoolean |
|
2868 |
||
2869 |
"Created: / 08-08-2017 / 23:50:23 / cg" |
|
2870 |
! |
|
2871 |
||
1634 | 2872 |
allowLazyValueExtension |
4428 | 2873 |
"allow !![...] to generate a lazy value" |
2874 |
||
1634 | 2875 |
^ allowLazyValueExtension |
4428 | 2876 |
|
2877 |
"Modified (comment): / 03-06-2019 / 10:57:32 / Claus Gittinger" |
|
1634 | 2878 |
! |
2879 |
||
3220 | 2880 |
allowLazyValueExtension:aBoolean |
4428 | 2881 |
"allow !![...] to generate a lazy value" |
4339 | 2882 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2883 |
||
3220 | 2884 |
allowLazyValueExtension := aBoolean. |
4339 | 2885 |
|
4428 | 2886 |
"Modified (comment): / 03-06-2019 / 10:57:58 / Claus Gittinger" |
1634 | 2887 |
! |
2888 |
||
2889 |
allowLiteralNameSpaceSymbols |
|
2890 |
^ allowLiteralNameSpaceSymbols |
|
2891 |
! |
|
2892 |
||
2893 |
allowLiteralNameSpaceSymbols:aBoolean |
|
4339 | 2894 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2895 |
||
1634 | 2896 |
allowLiteralNameSpaceSymbols := aBoolean |
4339 | 2897 |
|
2898 |
"Modified (comment): / 09-02-2019 / 15:52:36 / Claus Gittinger" |
|
1634 | 2899 |
! |
2900 |
||
2901 |
allowLocalVariableDeclarationWithInitializerExpression |
|
2902 |
^ allowLocalVariableDeclarationWithInitializerExpression |
|
2903 |
! |
|
2904 |
||
2905 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
4339 | 2906 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2907 |
||
1634 | 2908 |
allowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
4339 | 2909 |
|
2910 |
"Modified (comment): / 09-02-2019 / 15:52:43 / Claus Gittinger" |
|
1634 | 2911 |
! |
2912 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2913 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2914 |
^ allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2915 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2916 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2917 |
allowNationalCharactersInIdentifier:aBoolean |
4339 | 2918 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2919 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2920 |
allowNationalCharactersInIdentifier := aBoolean |
4339 | 2921 |
|
2922 |
"Modified (comment): / 09-02-2019 / 15:52:46 / Claus Gittinger" |
|
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2923 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2924 |
|
1634 | 2925 |
allowOldStyleAssignment |
4039 | 2926 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
2927 |
||
1634 | 2928 |
^ allowOldStyleAssignment |
2929 |
! |
|
2930 |
||
2931 |
allowOldStyleAssignment:aBoolean |
|
4039 | 2932 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
4339 | 2933 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2934 |
||
1634 | 2935 |
allowOldStyleAssignment := aBoolean |
4339 | 2936 |
|
2937 |
"Modified (format): / 09-02-2019 / 15:52:52 / Claus Gittinger" |
|
1634 | 2938 |
! |
2939 |
||
4041 | 2940 |
allowParagraphInIdentifier |
4437 | 2941 |
"return true, if §-characters are allowed in identifiers (treated as letter)" |
2942 |
||
4041 | 2943 |
^ allowParagraphInIdentifier |
2944 |
||
2945 |
"Created: / 16-11-2016 / 22:29:06 / cg" |
|
4437 | 2946 |
"Modified (comment): / 08-06-2019 / 14:59:39 / Claus Gittinger" |
4041 | 2947 |
! |
2948 |
||
2949 |
allowParagraphInIdentifier:aBoolean |
|
4339 | 2950 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2951 |
||
4041 | 2952 |
allowParagraphInIdentifier := aBoolean. |
2953 |
||
2954 |
"Created: / 16-11-2016 / 22:29:14 / cg" |
|
4339 | 2955 |
"Modified (comment): / 09-02-2019 / 15:52:54 / Claus Gittinger" |
4041 | 2956 |
! |
2957 |
||
4301 | 2958 |
allowPeriodAsNameSpaceSeparator |
2959 |
"experimental syntax: foo.bar" |
|
2960 |
||
2961 |
^ allowPeriodAsNameSpaceSeparator ? false |
|
2962 |
||
2963 |
"Created: / 23-09-2018 / 00:48:59 / Claus Gittinger" |
|
2964 |
! |
|
2965 |
||
2966 |
allowPeriodAsNameSpaceSeparator:aBoolean |
|
2967 |
"experimental syntax: foo.bar" |
|
4339 | 2968 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2969 |
||
4301 | 2970 |
|
2971 |
allowPeriodAsNameSpaceSeparator := aBoolean |
|
2972 |
||
2973 |
"Created: / 23-09-2018 / 00:49:09 / Claus Gittinger" |
|
4339 | 2974 |
"Modified (comment): / 09-02-2019 / 15:53:00 / Claus Gittinger" |
4301 | 2975 |
! |
2976 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2977 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2978 |
^ allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2979 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2980 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2981 |
allowPeriodInSymbol:aBoolean |
4339 | 2982 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2983 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2984 |
allowPeriodInSymbol := aBoolean |
4339 | 2985 |
|
2986 |
"Modified (comment): / 09-02-2019 / 15:53:02 / Claus Gittinger" |
|
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2987 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2988 |
|
1634 | 2989 |
allowQualifiedNames |
4302 | 2990 |
"return true, if '#{..}' and 'namespace.varName' qualified names are allowed" |
2991 |
||
1634 | 2992 |
^ allowQualifiedNames |
4302 | 2993 |
|
2994 |
"Modified (comment): / 23-09-2018 / 01:08:34 / Claus Gittinger" |
|
1634 | 2995 |
! |
2996 |
||
2997 |
allowQualifiedNames:aBoolean |
|
4339 | 2998 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
2999 |
||
1634 | 3000 |
allowQualifiedNames := aBoolean. |
4339 | 3001 |
|
3002 |
"Modified (comment): / 09-02-2019 / 15:53:11 / Claus Gittinger" |
|
1634 | 3003 |
! |
3004 |
||
4430 | 3005 |
allowRStrings |
3006 |
"rstrings have the syntax: |
|
3007 |
r'...' |
|
3008 |
which generates a regex" |
|
3009 |
||
3010 |
^ allowRStrings ? false. |
|
3011 |
||
3012 |
"Created: / 03-06-2019 / 11:11:25 / Claus Gittinger" |
|
3013 |
! |
|
3014 |
||
3015 |
allowRStrings:aBoolean |
|
3016 |
"rstrings have the syntax: |
|
3017 |
r'...' |
|
3018 |
which generates a regex" |
|
4437 | 3019 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
4430 | 3020 |
|
3021 |
allowRStrings := aBoolean |
|
3022 |
||
3023 |
"Created: / 03-06-2019 / 11:11:51 / Claus Gittinger" |
|
4437 | 3024 |
"Modified (comment): / 08-06-2019 / 15:01:17 / Claus Gittinger" |
4430 | 3025 |
! |
3026 |
||
1634 | 3027 |
allowReservedWordsAsSelectors |
4449 | 3028 |
"if true, 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are allowed |
3029 |
as unary message selectors." |
|
3030 |
||
1634 | 3031 |
^ allowReservedWordsAsSelectors |
4449 | 3032 |
|
3033 |
"Modified (comment): / 25-06-2019 / 11:16:52 / Claus Gittinger" |
|
1634 | 3034 |
! |
3035 |
||
3036 |
allowReservedWordsAsSelectors:aBoolean |
|
4449 | 3037 |
"enable/disable, if 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are to be allowed |
3038 |
as unary message selectors." |
|
3039 |
||
4339 | 3040 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3041 |
||
1634 | 3042 |
allowReservedWordsAsSelectors := aBoolean. |
4339 | 3043 |
|
4449 | 3044 |
"Modified (comment): / 25-06-2019 / 11:18:06 / Claus Gittinger" |
1634 | 3045 |
! |
3046 |
||
1703 | 3047 |
allowSTVExtensions |
3048 |
"return true, if support for ST/V extensions is enabled." |
|
3049 |
||
3050 |
^ allowSTVExtensions |
|
3051 |
! |
|
3052 |
||
4339 | 3053 |
allowSTVExtensions:aBoolean |
3054 |
"if support for ST/V extensions is enabled." |
|
3055 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
|
3056 |
||
3057 |
allowSTVExtensions := aBoolean |
|
3058 |
||
3059 |
"Created: / 09-02-2019 / 15:53:32 / Claus Gittinger" |
|
3060 |
! |
|
3061 |
||
1701 | 3062 |
allowSTVPrimitives |
3063 |
"return true, if support for ST/V primitives is enabled." |
|
3064 |
||
3065 |
^ allowSTVPrimitives |
|
3066 |
! |
|
3067 |
||
4339 | 3068 |
allowSTVPrimitives:aBoolean |
3069 |
"if support for ST/V primitives is enabled." |
|
3070 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
|
3071 |
||
3072 |
allowSTVPrimitives := aBoolean |
|
3073 |
||
3074 |
"Created: / 09-02-2019 / 15:53:53 / Claus Gittinger" |
|
3075 |
! |
|
3076 |
||
2984 | 3077 |
allowSTXDelimiterComments |
3946 | 3078 |
"are ST/X token-delimited comments allowed? |
3079 |
(see comment on class side)" |
|
3080 |
||
2984 | 3081 |
^ allowSTXDelimiterComments |
3082 |
! |
|
3083 |
||
3084 |
allowSTXDelimiterComments:aBoolean |
|
4339 | 3085 |
"are ST/X token-delimited comments allowed? (default is true) |
3946 | 3086 |
(see comment on class side)" |
4339 | 3087 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3946 | 3088 |
|
2984 | 3089 |
allowSTXDelimiterComments := aBoolean. |
3090 |
||
3091 |
" |
|
3092 |
ParserFlags allowSTXDelimiterComments:false |
|
3093 |
ParserFlags allowSTXDelimiterComments:true |
|
3094 |
" |
|
4339 | 3095 |
|
3096 |
"Modified (comment): / 09-02-2019 / 15:54:26 / Claus Gittinger" |
|
2984 | 3097 |
! |
3098 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3099 |
allowSTXEOLComments |
3946 | 3100 |
"are ST/X end-of-line comments allowed?" |
3101 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3102 |
^ allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3103 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3104 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3105 |
allowSTXEOLComments:aBoolean |
4339 | 3106 |
"are ST/X end-of-line comments allowed? (default is true)" |
3107 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
|
3946 | 3108 |
|
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3109 |
allowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3110 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3111 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3112 |
ParserFlags allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3113 |
ParserFlags allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3114 |
" |
4339 | 3115 |
|
3116 |
"Modified (comment): / 09-02-2019 / 15:54:21 / Claus Gittinger" |
|
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3117 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3118 |
|
3945 | 3119 |
allowSTXExtendedArrayLiterals |
3946 | 3120 |
"are scheme-style typed literal arrays allowed?" |
3121 |
||
3945 | 3122 |
^ allowSTXExtendedArrayLiterals ? false |
3123 |
! |
|
3124 |
||
3125 |
allowSTXExtendedArrayLiterals:aBoolean |
|
3946 | 3126 |
"are scheme-style typed literal arrays allowed?" |
4339 | 3127 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3946 | 3128 |
|
3945 | 3129 |
allowSTXExtendedArrayLiterals := aBoolean |
4339 | 3130 |
|
3131 |
"Modified (comment): / 09-02-2019 / 15:54:33 / Claus Gittinger" |
|
3945 | 3132 |
! |
3133 |
||
2494 | 3134 |
allowSTXFunctions |
3135 |
^ false |
|
3136 |
||
3137 |
"Created: / 23-05-2011 / 17:43:45 / cg" |
|
3138 |
! |
|
3139 |
||
3783 | 3140 |
allowSignedByteArrayElements |
4085 | 3141 |
^ allowSignedByteArrayElements |
3142 |
! |
|
3143 |
||
3144 |
allowSignedByteArrayElements:aBoolean |
|
4339 | 3145 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3146 |
||
4085 | 3147 |
allowSignedByteArrayElements := aBoolean |
4339 | 3148 |
|
3149 |
"Modified (comment): / 09-02-2019 / 15:54:39 / Claus Gittinger" |
|
3783 | 3150 |
! |
3151 |
||
3576 | 3152 |
allowSqueakExtensions |
3153 |
"return true, if support for squeak extensions |
|
4256 | 3154 |
computed arrays { .., } |
3155 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
3576 | 3156 |
is enabled." |
3157 |
||
3158 |
^ allowSqueakExtensions |
|
3159 |
! |
|
3160 |
||
3161 |
allowSqueakExtensions:aBoolean |
|
3162 |
"this allows turning on/off support for squeak extensions: |
|
4339 | 3163 |
computed arrays { .., } |
3164 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
3165 |
attn: possibly sent via perform (Parser >> parsePragma) |
|
3576 | 3166 |
" |
3167 |
||
3168 |
allowSqueakExtensions := aBoolean |
|
4339 | 3169 |
|
3170 |
"Modified (comment): / 09-02-2019 / 15:54:53 / Claus Gittinger" |
|
3576 | 3171 |
! |
1634 | 3172 |
|
1689 | 3173 |
allowSqueakPrimitives |
3174 |
"return true, if support for squeak primitives is enabled." |
|
3175 |
||
3176 |
^ allowSqueakPrimitives |
|
3177 |
! |
|
3178 |
||
3179 |
allowSqueakPrimitives:aBoolean |
|
3180 |
"this allows turning on/off support for squeak primitives" |
|
4339 | 3181 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
1689 | 3182 |
|
3183 |
allowSqueakPrimitives := aBoolean |
|
4339 | 3184 |
|
3185 |
"Modified (comment): / 09-02-2019 / 15:55:01 / Claus Gittinger" |
|
1689 | 3186 |
! |
3187 |
||
2313 | 3188 |
allowStringEscapes |
3189 |
^ allowStringEscapes |
|
3190 |
! |
|
3191 |
||
3192 |
allowStringEscapes:aBoolean |
|
4339 | 3193 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3194 |
||
2313 | 3195 |
allowStringEscapes := aBoolean. |
4339 | 3196 |
|
3197 |
"Modified (comment): / 09-02-2019 / 15:55:04 / Claus Gittinger" |
|
2313 | 3198 |
! |
3199 |
||
4149 | 3200 |
allowSymbolsStartingWithDigit |
3201 |
"return true, if a symbol is allowed to start with a digit |
|
3202 |
i.e. as in #2D. |
|
3203 |
This seems to be ok in new Squeak/Pharo versions" |
|
3204 |
||
3205 |
^ allowSymbolsStartingWithDigit |
|
3206 |
||
3207 |
"Created: / 18-06-2017 / 16:26:08 / cg" |
|
3208 |
! |
|
3209 |
||
3210 |
allowSymbolsStartingWithDigit:aBoolean |
|
3211 |
"control if a symbol is allowed to start with a digit |
|
3212 |
i.e. as in #2D. |
|
4339 | 3213 |
This seems to be ok in new Squeak/Pharo versions. |
3214 |
attn: possibly sent via perform (Parser >> parsePragma)" |
|
4149 | 3215 |
|
3216 |
allowSymbolsStartingWithDigit := aBoolean |
|
3217 |
||
3218 |
"Created: / 18-06-2017 / 16:26:23 / cg" |
|
4339 | 3219 |
"Modified (comment): / 09-02-2019 / 15:55:14 / Claus Gittinger" |
4149 | 3220 |
! |
3221 |
||
1634 | 3222 |
allowUnderscoreInIdentifier |
3223 |
^ allowUnderscoreInIdentifier |
|
3224 |
! |
|
3225 |
||
3226 |
allowUnderscoreInIdentifier:aBoolean |
|
4339 | 3227 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3228 |
||
1634 | 3229 |
allowUnderscoreInIdentifier := aBoolean |
4339 | 3230 |
|
3231 |
"Modified (comment): / 09-02-2019 / 15:55:21 / Claus Gittinger" |
|
1634 | 3232 |
! |
3233 |
||
2310 | 3234 |
allowUnicodeCharacters |
3235 |
^ allowUnicodeCharacters |
|
3236 |
! |
|
3237 |
||
3238 |
allowUnicodeCharacters:aBoolean |
|
4339 | 3239 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3240 |
||
2310 | 3241 |
allowUnicodeCharacters := aBoolean |
4339 | 3242 |
|
3243 |
"Modified (comment): / 09-02-2019 / 15:55:25 / Claus Gittinger" |
|
2310 | 3244 |
! |
3245 |
||
2307 | 3246 |
allowUnicodeStrings |
3247 |
^ allowUnicodeStrings |
|
3248 |
! |
|
3249 |
||
3250 |
allowUnicodeStrings:aBoolean |
|
4339 | 3251 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3252 |
||
2307 | 3253 |
allowUnicodeStrings := aBoolean |
4339 | 3254 |
|
3255 |
"Modified (comment): / 09-02-2019 / 15:55:28 / Claus Gittinger" |
|
2307 | 3256 |
! |
3257 |
||
1634 | 3258 |
allowVariableReferences |
3259 |
^ allowVariableReferences |
|
3260 |
! |
|
3261 |
||
3262 |
allowVariableReferences:aBoolean |
|
4339 | 3263 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3264 |
||
1634 | 3265 |
allowVariableReferences := aBoolean. |
4339 | 3266 |
|
3267 |
"Modified (comment): / 09-02-2019 / 15:55:32 / Claus Gittinger" |
|
1634 | 3268 |
! |
3269 |
||
1655 | 3270 |
allowVisualAgeESSymbolLiterals |
3271 |
^ allowVisualAgeESSymbolLiterals |
|
3272 |
! |
|
3273 |
||
3274 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
4339 | 3275 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
3276 |
||
1655 | 3277 |
allowVisualAgeESSymbolLiterals := aBoolean. |
4339 | 3278 |
|
3279 |
"Modified (comment): / 09-02-2019 / 15:55:35 / Claus Gittinger" |
|
1689 | 3280 |
! |
3281 |
||
3282 |
allowVisualAgePrimitives |
|
3283 |
"return true, if support for V'Age primitives is enabled." |
|
3284 |
||
3285 |
^ allowVisualAgePrimitives |
|
3286 |
! |
|
3287 |
||
3288 |
allowVisualAgePrimitives:aBoolean |
|
3289 |
"this allows turning on/off support for V'Age primitives" |
|
4339 | 3290 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
1689 | 3291 |
|
3292 |
allowVisualAgePrimitives := aBoolean |
|
4339 | 3293 |
|
3294 |
"Modified (comment): / 09-02-2019 / 15:55:39 / Claus Gittinger" |
|
1773 | 3295 |
! |
3296 |
||
3297 |
allowVisualWorksMethodAnnotations |
|
3298 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
3299 |
||
3300 |
^ allowVisualWorksMethodAnnotations |
|
3301 |
||
3302 |
"Created: / 07-07-2006 / 15:48:30 / cg" |
|
3303 |
! |
|
3304 |
||
3305 |
allowVisualWorksMethodAnnotations:aBoolean |
|
3306 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
4339 | 3307 |
"attn: possibly sent via perform (Parser >> parsePragma)" |
1773 | 3308 |
|
3355 | 3309 |
allowVisualWorksMethodAnnotations := aBoolean |
1773 | 3310 |
|
3311 |
"Created: / 07-07-2006 / 15:49:03 / cg" |
|
4339 | 3312 |
"Modified (comment): / 09-02-2019 / 15:55:42 / Claus Gittinger" |
3220 | 3313 |
! |
3314 |
||
4421 | 3315 |
singlePrecisionFloatF |
3316 |
"by default, the 'f'-character in a float literal will generate |
|
3317 |
double-precision Float instances. |
|
4437 | 3318 |
With singlePrecisionFloats, it will generate single precision ShortFloat instances. |
4421 | 3319 |
Notice, that there is some confusion among Smalltalk systems, whether a float has |
3320 |
single or double precision (VW vs. V'age). |
|
3321 |
In ST/X, floats have double-precision by default." |
|
3322 |
||
3323 |
^ singlePrecisionFloatF |
|
3324 |
||
3325 |
"Created: / 26-05-2019 / 11:31:37 / Claus Gittinger" |
|
4437 | 3326 |
"Modified (comment): / 08-06-2019 / 15:02:20 / Claus Gittinger" |
4421 | 3327 |
! |
3328 |
||
3329 |
singlePrecisionFloatF:aBoolean |
|
3330 |
"by default, the 'f'-character in a float literal will generate |
|
3331 |
double-precision Float instances. |
|
4437 | 3332 |
With singlePrecisionFloats, it will generate single precision ShortFloat instances. |
4421 | 3333 |
Notice, that there is some confusion among Smalltalk systems, whether a float has |
3334 |
single or double precision (VW vs. V'age). |
|
3335 |
In ST/X, floats have double-precision by default." |
|
3336 |
||
3337 |
singlePrecisionFloatF := aBoolean |
|
3338 |
||
3339 |
"Created: / 26-05-2019 / 11:32:11 / Claus Gittinger" |
|
4437 | 3340 |
"Modified (comment): / 08-06-2019 / 15:02:14 / Claus Gittinger" |
1658 | 3341 |
! ! |
1634 | 3342 |
|
1658 | 3343 |
!ParserFlags methodsFor:'accessing-warning-control'! |
1634 | 3344 |
|
1652 | 3345 |
warnAboutBadComments |
3346 |
^ warnAboutBadComments |
|
3347 |
! |
|
3348 |
||
3349 |
warnAboutBadComments:aBoolean |
|
3350 |
warnAboutBadComments := aBoolean. |
|
3351 |
! |
|
3352 |
||
1811 | 3353 |
warnAboutNonLowercaseLocalVariableNames |
3354 |
^ warnAboutNonLowercaseLocalVariableNames |
|
1740 | 3355 |
! |
3356 |
||
1811 | 3357 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
3358 |
warnAboutNonLowercaseLocalVariableNames := aBoolean. |
|
1740 | 3359 |
! |
3360 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3361 |
warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3362 |
^ warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3363 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3364 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3365 |
warnAboutPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3366 |
warnAboutPeriodInSymbol := aBoolean. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3367 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3368 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3369 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3370 |
^ warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3371 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3372 |
"Created: / 16-11-2006 / 14:24:38 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3373 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3374 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3375 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3376 |
warnAboutPossibleSTCCompilationProblems := aBoolean. |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3377 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3378 |
"Created: / 16-11-2006 / 14:24:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3379 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3380 |
|
2121 | 3381 |
warnAboutPossiblyUnimplementedSelectors |
3382 |
^ warnAboutPossiblyUnimplementedSelectors |
|
3383 |
! |
|
3384 |
||
3385 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
3386 |
warnAboutPossiblyUnimplementedSelectors := aBoolean. |
|
3387 |
! |
|
3388 |
||
4406 | 3389 |
warnAboutPossiblyUninitializedLocals |
3390 |
^ warnAboutPossiblyUninitializedLocals |
|
3391 |
||
3392 |
"Created: / 23-04-2019 / 23:09:55 / Claus Gittinger" |
|
3393 |
! |
|
3394 |
||
3395 |
warnAboutPossiblyUninitializedLocals:aBoolean |
|
3396 |
warnAboutPossiblyUninitializedLocals := aBoolean. |
|
3397 |
||
3398 |
"Created: / 23-04-2019 / 23:10:01 / Claus Gittinger" |
|
3399 |
! |
|
3400 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3401 |
warnAboutReferenceToPrivateClass |
3396 | 3402 |
"controls generation of warning messages when a private class is referenced" |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3403 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3404 |
^ warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3405 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3406 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3407 |
warnAboutReferenceToPrivateClass:aBoolean |
3396 | 3408 |
"controls generation of warning messages when a private class is referenced" |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3409 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3410 |
warnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3411 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3412 |
|
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3413 |
warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3414 |
^ warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3415 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3416 |
|
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3417 |
warnAboutShortLocalVariableNames:aBoolean |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3418 |
warnAboutShortLocalVariableNames := aBoolean. |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3419 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3420 |
|
2738 | 3421 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
2739 | 3422 |
^ warnAboutUnknownCharacterEscapesInJavaScriptStringConstant ? false |
2738 | 3423 |
|
3424 |
"Created: / 04-10-2011 / 19:51:19 / cg" |
|
3425 |
! |
|
3426 |
||
3427 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean |
|
3428 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean. |
|
3429 |
||
3430 |
"Created: / 04-10-2011 / 19:51:27 / cg" |
|
3431 |
! |
|
3432 |
||
1634 | 3433 |
warnAboutVariableNameConventions |
3434 |
^ warnAboutVariableNameConventions |
|
3435 |
! |
|
3436 |
||
3437 |
warnAboutVariableNameConventions:aBoolean |
|
3438 |
warnAboutVariableNameConventions := aBoolean. |
|
3439 |
! |
|
3440 |
||
3441 |
warnAboutWrongVariableNames |
|
3442 |
^ warnAboutWrongVariableNames |
|
3443 |
! |
|
3444 |
||
3445 |
warnAboutWrongVariableNames:aBoolean |
|
3446 |
warnAboutWrongVariableNames := aBoolean. |
|
3447 |
! |
|
3448 |
||
4437 | 3449 |
warnAssignmentToBlockArgument |
3450 |
^ warnAssignmentToBlockArgument |
|
3451 |
! |
|
3452 |
||
3453 |
warnAssignmentToBlockArgument:aBoolean |
|
3454 |
warnAssignmentToBlockArgument := aBoolean. |
|
3455 |
! |
|
3456 |
||
3457 |
warnAssignmentToMethodArgument |
|
3458 |
^ warnAssignmentToMethodArgument |
|
3459 |
! |
|
3460 |
||
3461 |
warnAssignmentToMethodArgument:aBoolean |
|
3462 |
warnAssignmentToMethodArgument := aBoolean. |
|
3463 |
! |
|
3464 |
||
3465 |
warnAssignmentToPoolVariable |
|
3466 |
^ warnAssignmentToPoolVariable |
|
3467 |
! |
|
3468 |
||
3469 |
warnAssignmentToPoolVariable:aBoolean |
|
3470 |
warnAssignmentToPoolVariable := aBoolean. |
|
3471 |
! |
|
3472 |
||
1634 | 3473 |
warnCommonMistakes |
3474 |
^ warnCommonMistakes |
|
3475 |
! |
|
3476 |
||
3477 |
warnCommonMistakes:aBoolean |
|
3478 |
warnCommonMistakes := aBoolean. |
|
3479 |
! |
|
3480 |
||
3481 |
warnDollarInIdentifier |
|
3482 |
^ warnDollarInIdentifier |
|
3483 |
! |
|
3484 |
||
3485 |
warnDollarInIdentifier:aBoolean |
|
3486 |
warnDollarInIdentifier := aBoolean. |
|
3487 |
! |
|
3488 |
||
1638 | 3489 |
warnHiddenVariables |
3490 |
^ warnHiddenVariables |
|
3491 |
! |
|
3492 |
||
3493 |
warnHiddenVariables:aBoolean |
|
2465 | 3494 |
"controls generation of warning messages about hiding variables by locals" |
3495 |
||
1638 | 3496 |
warnHiddenVariables := aBoolean. |
2465 | 3497 |
|
3498 |
"Modified: / 30-11-2010 / 15:00:55 / cg" |
|
1638 | 3499 |
! |
3500 |
||
1682 | 3501 |
warnInconsistentReturnValues |
3502 |
^ warnInconsistentReturnValues |
|
3503 |
! |
|
3504 |
||
3505 |
warnInconsistentReturnValues:aBoolean |
|
3506 |
warnInconsistentReturnValues := aBoolean. |
|
3507 |
! |
|
3508 |
||
1634 | 3509 |
warnOldStyleAssignment |
3510 |
^ warnOldStyleAssignment |
|
3511 |
! |
|
3512 |
||
3513 |
warnOldStyleAssignment:aBoolean |
|
3514 |
warnOldStyleAssignment := aBoolean. |
|
3515 |
! |
|
3516 |
||
4041 | 3517 |
warnParagraphInIdentifier |
3518 |
^ warnParagraphInIdentifier |
|
3519 |
||
3520 |
"Created: / 16-11-2016 / 22:29:33 / cg" |
|
3521 |
! |
|
3522 |
||
3523 |
warnParagraphInIdentifier:aBoolean |
|
3524 |
warnParagraphInIdentifier := aBoolean. |
|
3525 |
||
3526 |
"Created: / 16-11-2016 / 22:29:45 / cg" |
|
3527 |
! |
|
3528 |
||
2787 | 3529 |
warnPlausibilityChecks |
3530 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
3531 |
||
2789
3100327ad683
changed: #warnPlausibilityChecks
Claus Gittinger <cg@exept.de>
parents:
2787
diff
changeset
|
3532 |
^ warnPlausibilityChecks ? true |
2787 | 3533 |
|
3534 |
"Created: / 19-01-2012 / 10:38:54 / cg" |
|
3535 |
! |
|
3536 |
||
3537 |
warnPlausibilityChecks:aBoolean |
|
3538 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
3539 |
||
3540 |
warnPlausibilityChecks := aBoolean |
|
3541 |
||
3542 |
"Created: / 19-01-2012 / 10:39:02 / cg" |
|
3543 |
! |
|
3544 |
||
1634 | 3545 |
warnPossibleIncompatibilities |
2057 | 3546 |
"holds true, if possible incompatibilities (with other ST systems) |
3547 |
are to be warned about" |
|
3548 |
||
1634 | 3549 |
^ warnPossibleIncompatibilities |
3550 |
! |
|
3551 |
||
3552 |
warnPossibleIncompatibilities:aBoolean |
|
2057 | 3553 |
"holds true, if possible incompatibilities (with other ST systems) |
3554 |
are to be warned about" |
|
3555 |
||
1634 | 3556 |
warnPossibleIncompatibilities := aBoolean. |
3557 |
! |
|
3558 |
||
3559 |
warnST80Directives |
|
3560 |
^ warnST80Directives |
|
3561 |
! |
|
3562 |
||
2476 | 3563 |
warnST80Directives:aBoolean |
3564 |
warnST80Directives := aBoolean. |
|
3565 |
||
3566 |
"Modified: / 30-01-2011 / 13:01:06 / cg" |
|
1634 | 3567 |
! |
3568 |
||
3569 |
warnSTXHereExtensionUsed |
|
3570 |
^ warnSTXHereExtensionUsed |
|
3571 |
! |
|
3572 |
||
3573 |
warnSTXHereExtensionUsed:aBoolean |
|
3574 |
warnSTXHereExtensionUsed := aBoolean. |
|
3575 |
! |
|
3576 |
||
3577 |
warnSTXNameSpaceUse |
|
3578 |
^ warnSTXNameSpaceUse |
|
3579 |
! |
|
3580 |
||
3581 |
warnSTXNameSpaceUse:aBoolean |
|
3582 |
warnSTXNameSpaceUse := aBoolean. |
|
3583 |
! |
|
3584 |
||
3585 |
warnSTXSpecialComment |
|
3586 |
^ warnSTXSpecialComment |
|
3587 |
! |
|
3588 |
||
3589 |
warnSTXSpecialComment:aBoolean |
|
3590 |
warnSTXSpecialComment := aBoolean. |
|
3591 |
! |
|
3592 |
||
3593 |
warnUndeclared |
|
3594 |
^ warnUndeclared |
|
3595 |
! |
|
3596 |
||
3597 |
warnUndeclared:aBoolean |
|
3598 |
warnUndeclared := aBoolean. |
|
3599 |
! |
|
3600 |
||
3601 |
warnUnderscoreInIdentifier |
|
3602 |
^ warnUnderscoreInIdentifier |
|
3603 |
! |
|
3604 |
||
3605 |
warnUnderscoreInIdentifier:aBoolean |
|
3606 |
warnUnderscoreInIdentifier := aBoolean. |
|
3607 |
! |
|
3608 |
||
3609 |
warnUnusedVars |
|
3610 |
^ warnUnusedVars |
|
3611 |
! |
|
3612 |
||
3613 |
warnUnusedVars:aBoolean |
|
3614 |
warnUnusedVars := aBoolean. |
|
1662 | 3615 |
! |
3616 |
||
3617 |
warnings |
|
2477 | 3618 |
^ warnings ? true |
3619 |
||
3620 |
"Modified: / 30-01-2011 / 13:05:48 / cg" |
|
1662 | 3621 |
! |
3622 |
||
2476 | 3623 |
warnings:aBoolean |
3624 |
warnings := aBoolean. |
|
3625 |
||
3626 |
"Modified: / 30-01-2011 / 13:00:51 / cg" |
|
1634 | 3627 |
! ! |
3628 |
||
3629 |
!ParserFlags methodsFor:'initialization'! |
|
3630 |
||
3631 |
initialize |
|
3220 | 3632 |
"each instance is initially setup from the classes global defaults. |
3633 |
(but can be changed as required for an individual compilation run" |
|
3634 |
||
4421 | 3635 |
singlePrecisionFloatF := SinglePrecisionFloatF. |
3636 |
||
1662 | 3637 |
warnings := Warnings. |
1634 | 3638 |
warnUndeclared := WarnUndeclared. |
3639 |
warnUnusedVars := WarnUnusedVars. |
|
3640 |
warnST80Directives := WarnST80Directives. |
|
3641 |
warnSTXSpecialComment := WarnSTXSpecials. |
|
3642 |
warnSTXNameSpaceUse := WarnSTXSpecials. |
|
3643 |
warnSTXHereExtensionUsed := WarnSTXSpecials. |
|
3644 |
warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier. |
|
3645 |
warnDollarInIdentifier := WarnDollarInIdentifier. |
|
4041 | 3646 |
warnParagraphInIdentifier := WarnParagraphInIdentifier. |
1634 | 3647 |
warnOldStyleAssignment := WarnOldStyleAssignment. |
3648 |
warnCommonMistakes := WarnCommonMistakes. |
|
3649 |
warnPossibleIncompatibilities := WarnPossibleIncompatibilities. |
|
3650 |
warnAboutVariableNameConventions := WarnAboutVariableNameConventions. |
|
3651 |
warnAboutWrongVariableNames := WarnAboutWrongVariableNames. |
|
1652 | 3652 |
warnAboutBadComments := WarnAboutBadComments. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
3653 |
warnAboutReferenceToPrivateClass := WarnAboutReferenceToPrivateClass. |
4406 | 3654 |
warnAboutPossiblyUninitializedLocals := WarnAboutPossiblyUninitializedLocals. |
1638 | 3655 |
warnHiddenVariables := WarnHiddenVariables. |
1682 | 3656 |
warnInconsistentReturnValues := WarnInconsistentReturnValues. |
1811 | 3657 |
warnAboutNonLowercaseLocalVariableNames := WarnAboutNonLowercaseLocalVariableNames. |
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
3658 |
warnAboutShortLocalVariableNames := WarnAboutShortLocalVariableNames. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3659 |
warnAboutPossibleSTCCompilationProblems := WarnAboutPossibleSTCCompilationProblems. |
2121 | 3660 |
warnAboutPossiblyUnimplementedSelectors := WarnAboutPossiblyUnimplementedSelectors. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3661 |
warnAboutPeriodInSymbol := WarnAboutPeriodInSymbol. |
2738 | 3662 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant. |
2787 | 3663 |
warnPlausibilityChecks := WarnPlausibilityChecks. |
3220 | 3664 |
warnAssignmentToBlockArgument := WarnAssignmentToBlockArgument. |
3665 |
warnAssignmentToMethodArgument := WarnAssignmentToMethodArgument. |
|
3396 | 3666 |
warnAssignmentToPoolVariable := WarnAssignmentToPoolVariable. |
1634 | 3667 |
|
3668 |
allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier. |
|
3669 |
allowDollarInIdentifier := AllowDollarInIdentifier. |
|
4041 | 3670 |
allowParagraphInIdentifier := AllowParagraphInIdentifier. |
1634 | 3671 |
allowOldStyleAssignment := AllowOldStyleAssignment. |
3672 |
allowSqueakExtensions := AllowSqueakExtensions. |
|
3673 |
allowDolphinExtensions := AllowDolphinExtensions. |
|
3674 |
allowLiteralNameSpaceSymbols := AllowLiteralNameSpaceSymbols. |
|
3675 |
allowExtendedBinarySelectors := AllowExtendedBinarySelectors. |
|
2306 | 3676 |
allowCaretAsBinop := AllowCaretAsBinop. |
1634 | 3677 |
allowFunctionCallSyntaxForBlockEvaluation := AllowFunctionCallSyntaxForBlockEvaluation. |
3678 |
allowLocalVariableDeclarationWithInitializerExpression := AllowLocalVariableDeclarationWithInitializerExpression. |
|
3679 |
allowDomainVariables := AllowDomainVariables. |
|
3680 |
allowArrayIndexSyntaxExtension := AllowArrayIndexSyntaxExtension. |
|
3681 |
allowReservedWordsAsSelectors := AllowReservedWordsAsSelectors. |
|
3682 |
allowVariableReferences := AllowVariableReferences. |
|
3683 |
allowLazyValueExtension := AllowLazyValueExtension. |
|
3684 |
allowFixedPointLiterals := AllowFixedPointLiterals. |
|
3685 |
allowExtendedSTXSyntax := AllowExtendedSTXSyntax. |
|
3686 |
allowQualifiedNames := AllowQualifiedNames. |
|
1655 | 3687 |
allowVisualAgeESSymbolLiterals := AllowVisualAgeESSymbolLiterals. |
1668 | 3688 |
allowExtensionsToPrivateClasses := AllowExtensionsToPrivateClasses. |
1689 | 3689 |
allowVisualAgePrimitives := AllowVisualAgePrimitives. |
3690 |
allowSqueakPrimitives := AllowSqueakPrimitives. |
|
1700 | 3691 |
allowSTVPrimitives := AllowSTVPrimitives. |
1702 | 3692 |
allowSTVExtensions := AllowSTVExtensions. |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
3693 |
allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier. |
4436 | 3694 |
allowGreekCharactersInIdentifier := AllowGreekCharactersInIdentifier. |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
3695 |
allowHashAsBinarySelector := AllowHashAsBinarySelector. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
3696 |
allowSTXEOLComments := AllowSTXEOLComments. |
2984 | 3697 |
allowSTXDelimiterComments := AllowSTXDelimiterComments. |
3947 | 3698 |
allowSTXExtendedArrayLiterals := AllowSTXExtendedArrayLiterals. |
1773 | 3699 |
allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
3700 |
allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems. |
1950 | 3701 |
allowEmptyStatements := AllowEmptyStatements. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
3702 |
allowPeriodInSymbol := AllowPeriodInSymbol. |
4301 | 3703 |
allowPeriodAsNameSpaceSeparator := AllowPeriodAsNameSpaceSeparator. |
3704 |
||
2311 | 3705 |
"/ these are only supported in the new compiler |
4333 | 3706 |
allowCStrings := AllowCStrings. |
4412 | 3707 |
allowEStrings := AllowEStrings. |
4430 | 3708 |
allowRStrings := AllowRStrings. |
2307 | 3709 |
allowUnicodeStrings := AllowUnicodeStrings. |
2310 | 3710 |
allowUnicodeCharacters := AllowUnicodeCharacters. |
2311 | 3711 |
allowCharacterEscapes := AllowCharacterEscapes. |
2313 | 3712 |
allowStringEscapes := AllowStringEscapes. |
2685 | 3713 |
allowAssignmentToBlockArgument := AllowAssignmentToBlockArgument. |
3714 |
allowAssignmentToMethodArgument := AllowAssignmentToMethodArgument. |
|
3715 |
allowAssignmentToPoolVariable := AllowAssignmentToPoolVariable. |
|
4085 | 3716 |
allowSignedByteArrayElements := AllowSignedByteArrayElements. |
4149 | 3717 |
allowSymbolsStartingWithDigit := AllowSymbolsStartingWithDigit. |
4185 | 3718 |
|
3719 |
allowJavaScriptConst := AllowJavaScriptConst. |
|
4149 | 3720 |
|
1634 | 3721 |
arraysAreImmutable := ArraysAreImmutable ? true. |
3722 |
stringsAreImmutable := StringsAreImmutable ? true. |
|
3723 |
implicitSelfSends := ImplicitSelfSends ? false. |
|
2929 | 3724 |
lineNumberInfo := LineNumberInfo ? false. |
1634 | 3725 |
|
1658 | 3726 |
stcKeepCIntermediate := STCKeepCIntermediate. |
3727 |
stcKeepOIntermediate := STCKeepOIntermediate. |
|
3728 |
stcKeepSTIntermediate := STCKeepSTIntermediate. |
|
3729 |
stcModulePath := STCModulePath. |
|
3730 |
stcCompilation := STCCompilation. |
|
3731 |
stcCompilationIncludes := STCCompilationIncludes. |
|
3732 |
stcCompilationDefines := STCCompilationDefines. |
|
3733 |
stcCompilationOptions := STCCompilationOptions. |
|
3734 |
stcPath := STCPath. |
|
3735 |
ccCompilationOptions := CCCompilationOptions. |
|
3736 |
ccPath := CCPath. |
|
3737 |
linkArgs := LinkArgs. |
|
3738 |
linkCommand := LinkCommand. |
|
3739 |
libPath := LibPath. |
|
3740 |
searchedLibraries := SearchedLibraries. |
|
3741 |
||
1634 | 3742 |
" |
3743 |
ParserFlags initialize. |
|
3744 |
self new inspect. |
|
3745 |
" |
|
1773 | 3746 |
|
4185 | 3747 |
"Modified: / 08-08-2017 / 23:50:01 / cg" |
4436 | 3748 |
"Modified: / 08-06-2019 / 14:53:04 / Claus Gittinger" |
1634 | 3749 |
! ! |
3750 |
||
3751 |
!ParserFlags class methodsFor:'documentation'! |
|
3752 |
||
3753 |
version |
|
3653 | 3754 |
^ '$Header$' |
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
3755 |
! |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
3756 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
3757 |
version_CVS |
3653 | 3758 |
^ '$Header$' |
1634 | 3759 |
! ! |
3760 |
||
3009
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
3761 |
|
1634 | 3762 |
ParserFlags initialize! |