author | Claus Gittinger <cg@exept.de> |
Thu, 19 Jan 2012 10:39:34 +0100 | |
changeset 2787 | e7ab6fcda08e |
parent 2747 | 9be61df60a22 |
child 2789 | 3100327ad683 |
permissions | -rw-r--r-- |
1634 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
3 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
4 |
All Rights Reserved |
|
5 |
||
6 |
This software is furnished under a license and may be used |
|
7 |
only in accordance with the terms of that license and with the |
|
8 |
inclusion of the above copyright notice. This software may not |
|
9 |
be provided or otherwise made available to, or used by, any |
|
10 |
other person. No title to or ownership of the software is |
|
11 |
hereby transferred. |
|
12 |
" |
|
13 |
"{ Package: 'stx:libcomp' }" |
|
14 |
||
15 |
Object subclass:#ParserFlags |
|
2308 | 16 |
instanceVariableNames:'warnings warnUnusedVars warnUndeclared warnST80Directives |
17 |
warnSTXHereExtensionUsed warnSTXSpecialComment |
|
18 |
warnUnderscoreInIdentifier warnOldStyleAssignment |
|
19 |
warnCommonMistakes warnSTXNameSpaceUse |
|
20 |
warnPossibleIncompatibilities warnDollarInIdentifier |
|
21 |
warnHiddenVariables warnAboutVariableNameConventions |
|
22 |
warnAboutWrongVariableNames warnAboutBadComments |
|
23 |
warnInconsistentReturnValues |
|
24 |
warnAboutNonLowercaseLocalVariableNames |
|
25 |
warnAboutPossibleSTCCompilationProblems |
|
26 |
warnAboutReferenceToPrivateClass warnAboutShortLocalVariableNames |
|
27 |
warnAboutPossiblyUnimplementedSelectors |
|
2738 | 28 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
2787 | 29 |
warnPlausibilityChecks allowLiteralNameSpaceSymbols |
30 |
allowUnderscoreInIdentifier allowDollarInIdentifier |
|
31 |
allowOldStyleAssignment allowSqueakExtensions |
|
32 |
allowDolphinExtensions allowExtendedBinarySelectors |
|
33 |
allowQualifiedNames allowFunctionCallSyntaxForBlockEvaluation |
|
2308 | 34 |
allowLocalVariableDeclarationWithInitializerExpression |
35 |
allowDomainVariables allowArrayIndexSyntaxExtension |
|
36 |
allowReservedWordsAsSelectors allowVariableReferences |
|
37 |
allowLazyValueExtension allowFixedPointLiterals |
|
38 |
allowExtendedSTXSyntax allowVisualAgeESSymbolLiterals |
|
39 |
allowExtensionsToPrivateClasses allowSqueakPrimitives |
|
40 |
allowVisualAgePrimitives allowSTVPrimitives allowSTVExtensions |
|
41 |
allowNationalCharactersInIdentifier allowHashAsBinarySelector |
|
42 |
allowSTXEOLComments allowEmptyStatements |
|
43 |
allowVisualWorksMethodAnnotations |
|
44 |
allowPossibleSTCCompilationProblems arraysAreImmutable |
|
45 |
stringsAreImmutable implicitSelfSends stcKeepCIntermediate |
|
46 |
stcKeepOIntermediate stcKeepSTIntermediate stcModulePath |
|
47 |
stcCompilation stcCompilationIncludes stcCompilationDefines |
|
48 |
stcCompilationOptions stcPath ccCompilationOptions ccPath |
|
49 |
linkArgs linkSharedArgs linkCommand libPath searchedLibraries |
|
50 |
warnAboutPeriodInSymbol allowPeriodInSymbol allowCaretAsBinop |
|
2313 | 51 |
allowUnicodeStrings allowUnicodeCharacters allowCharacterEscapes |
2685 | 52 |
allowStringEscapes allowAssignmentToBlockArgument |
53 |
allowAssignmentToMethodArgument allowAssignmentToPoolVariable' |
|
2308 | 54 |
classVariableNames:'WarnST80Directives WarnUnusedVars WarnUndeclared |
55 |
WarnAboutWrongVariableNames WarnAboutBadComments |
|
56 |
WarnAboutVariableNameConventions WarnSTXSpecials |
|
57 |
WarnOldStyleAssignment WarnUnderscoreInIdentifier |
|
58 |
WarnCommonMistakes WarnPossibleIncompatibilities |
|
59 |
WarnDollarInIdentifier WarnHiddenVariables |
|
60 |
WarnAboutNonLowercaseLocalVariableNames |
|
61 |
WarnInconsistentReturnValues Warnings |
|
62 |
WarnAboutPossibleSTCCompilationProblems |
|
63 |
WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames |
|
64 |
WarnAboutPossiblyUnimplementedSelectors WarnAboutPeriodInSymbol |
|
2738 | 65 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
2787 | 66 |
WarnPlausibilityChecks AllowUnderscoreInIdentifier |
2308 | 67 |
AllowFunctionCallSyntaxForBlockEvaluation AllowLazyValueExtension |
68 |
AllowVariableReferences AllowReservedWordsAsSelectors |
|
69 |
AllowLocalVariableDeclarationWithInitializerExpression |
|
70 |
AllowArrayIndexSyntaxExtension AllowDomainVariables |
|
71 |
AllowDollarInIdentifier AllowSqueakExtensions AllowQualifiedNames |
|
72 |
AllowDolphinExtensions AllowOldStyleAssignment |
|
73 |
AllowExtendedBinarySelectors AllowExtendedSTXSyntax |
|
74 |
AllowFixedPointLiterals AllowLiteralNameSpaceSymbols |
|
75 |
AllowVisualAgeESSymbolLiterals AllowExtensionsToPrivateClasses |
|
76 |
AllowSqueakPrimitives AllowVisualAgePrimitives AllowSTVPrimitives |
|
77 |
AllowSTVExtensions AllowNationalCharactersInIdentifier |
|
78 |
AllowHashAsBinarySelector AllowSTXEOLComments |
|
79 |
AllowPossibleSTCCompilationProblems AllowEmptyStatements |
|
80 |
AllowVisualWorksMethodAnnotations ArraysAreImmutable |
|
81 |
AllowPeriodInSymbol StringsAreImmutable ImplicitSelfSends |
|
82 |
STCModulePath STCKeepCIntermediate STCKeepOIntermediate |
|
83 |
STCKeepSTIntermediate STCCompilation STCCompilationIncludes |
|
84 |
STCCompilationDefines STCCompilationOptions STCPath |
|
85 |
CCCompilationOptions CCPath LinkArgs LinkSharedArgs LinkCommand |
|
86 |
LibPath SearchedLibraries MakeCommand AllowCaretAsBinop |
|
2313 | 87 |
AllowUnicodeStrings AllowUnicodeCharacters AllowCharacterEscapes |
2685 | 88 |
AllowStringEscapes AllowAssignmentToBlockArgument |
89 |
AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable |
|
90 |
LibDirectory VCTop SDKTop BCCTop' |
|
2308 | 91 |
poolDictionaries:'' |
92 |
category:'System-Compiler' |
|
1634 | 93 |
! |
94 |
||
95 |
!ParserFlags class methodsFor:'documentation'! |
|
96 |
||
97 |
copyright |
|
98 |
" |
|
99 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
100 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
101 |
All Rights Reserved |
|
102 |
||
103 |
This software is furnished under a license and may be used |
|
104 |
only in accordance with the terms of that license and with the |
|
105 |
inclusion of the above copyright notice. This software may not |
|
106 |
be provided or otherwise made available to, or used by, any |
|
107 |
other person. No title to or ownership of the software is |
|
108 |
hereby transferred. |
|
109 |
" |
|
110 |
! |
|
111 |
||
112 |
documentation |
|
113 |
" |
|
114 |
compiler flags (used to be defined in Scanner and Parser) have been extracted for easier |
|
115 |
individual-method customization (using ST as scripting). |
|
1711 | 116 |
|
1712 | 117 |
howTo_fileInVSE: |
118 |
ParserFlags allowSTVExtensions:true. |
|
119 |
ParserFlags allowSTVPrimitives:true. |
|
120 |
ParserFlags allowSTXEOLComments:false. |
|
2488 | 121 |
|
122 |
for stx debugging: |
|
123 |
STCKeepCIntermediate := true |
|
124 |
||
1711 | 125 |
" |
1634 | 126 |
! ! |
127 |
||
128 |
!ParserFlags class methodsFor:'instance creation'! |
|
129 |
||
130 |
new |
|
131 |
^ self basicNew initialize |
|
132 |
! ! |
|
133 |
||
134 |
!ParserFlags class methodsFor:'accessing-compilation control'! |
|
135 |
||
1668 | 136 |
allowExtensionsToPrivateClasses |
137 |
^ AllowExtensionsToPrivateClasses |
|
138 |
! |
|
139 |
||
140 |
allowExtensionsToPrivateClasses:aBoolean |
|
141 |
AllowExtensionsToPrivateClasses := aBoolean |
|
142 |
! |
|
143 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
144 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
145 |
^ AllowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
146 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
147 |
"Created: / 16-11-2006 / 14:31:36 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
148 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
149 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
150 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
151 |
AllowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
152 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
153 |
"Created: / 16-11-2006 / 14:31:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
154 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
155 |
|
1634 | 156 |
arraysAreImmutable |
157 |
"return true if arrays are immutable literals" |
|
158 |
||
159 |
^ ArraysAreImmutable |
|
160 |
! |
|
161 |
||
162 |
arraysAreImmutable:aBoolean |
|
163 |
"turn on/off immutable array literals - default is false for ST-80 compatibilty." |
|
164 |
||
165 |
ArraysAreImmutable := aBoolean. |
|
166 |
||
167 |
" |
|
168 |
can be added to your private.rc file: |
|
169 |
||
170 |
ParserFlags arraysAreImmutable:true |
|
171 |
ParserFlags arraysAreImmutable:false |
|
172 |
" |
|
173 |
! |
|
174 |
||
175 |
implicitSelfSends |
|
176 |
"return true if undefined variables with |
|
177 |
lowercase first character are to be turned |
|
178 |
into implicit self sends" |
|
179 |
||
180 |
^ ImplicitSelfSends |
|
181 |
! |
|
182 |
||
183 |
implicitSelfSends:aBoolean |
|
184 |
"turn on/off implicit self sends" |
|
185 |
||
186 |
ImplicitSelfSends := aBoolean |
|
187 |
||
188 |
" |
|
189 |
Compiler implicitSelfSends:true |
|
190 |
Compiler implicitSelfSends:false |
|
191 |
" |
|
192 |
! |
|
193 |
||
194 |
stringsAreImmutable |
|
195 |
"return true if strings are immutable literals" |
|
196 |
||
197 |
^ StringsAreImmutable |
|
198 |
||
199 |
"Created: / 3.8.1998 / 14:53:25 / cg" |
|
200 |
! |
|
201 |
||
202 |
stringsAreImmutable:aBoolean |
|
203 |
"turn on/off immutable string literals - default is false for ST-80 compatibilty." |
|
204 |
||
205 |
StringsAreImmutable := aBoolean. |
|
206 |
||
207 |
" |
|
208 |
can be added to your private.rc file: |
|
209 |
||
210 |
ParserFlags stringsAreImmutable:true |
|
211 |
ParserFlags stringsAreImmutable:false |
|
212 |
" |
|
213 |
||
214 |
"Created: / 3.8.1998 / 14:53:28 / cg" |
|
215 |
! ! |
|
216 |
||
1658 | 217 |
!ParserFlags class methodsFor:'accessing-stc compilation control'! |
218 |
||
2645 | 219 |
bccTop:aPath |
220 |
"windows only: define the borland-C installation directory. |
|
221 |
must contain bin\bcc32.exe and include. |
|
222 |
Typically, something like 'C:\borland\bcc55'" |
|
223 |
||
224 |
BCCTop := aPath |
|
225 |
||
226 |
"Created: / 08-08-2011 / 22:41:48 / cg" |
|
227 |
! |
|
228 |
||
1658 | 229 |
ccCompilationOptions |
1668 | 230 |
^ CCCompilationOptions ? '' |
1658 | 231 |
! |
232 |
||
233 |
ccCompilationOptions:aString |
|
234 |
CCCompilationOptions := aString |
|
235 |
! |
|
236 |
||
237 |
ccPath |
|
238 |
^ CCPath |
|
239 |
! |
|
240 |
||
241 |
ccPath:aSymbol |
|
242 |
CCPath := aSymbol |
|
243 |
! |
|
244 |
||
2626 | 245 |
libDirectory |
246 |
^ LibDirectory |
|
247 |
||
248 |
"Created: / 07-08-2011 / 14:01:21 / cg" |
|
249 |
! |
|
250 |
||
251 |
libDirectory:aString |
|
252 |
LibDirectory := aString |
|
253 |
||
254 |
"Created: / 07-08-2011 / 14:01:28 / cg" |
|
255 |
! |
|
256 |
||
1658 | 257 |
libPath |
258 |
^ LibPath |
|
259 |
! |
|
260 |
||
261 |
libPath:aString |
|
262 |
LibPath := aString |
|
263 |
! |
|
264 |
||
265 |
linkArgs |
|
266 |
^ LinkArgs |
|
267 |
! |
|
268 |
||
269 |
linkArgs:aString |
|
270 |
LinkArgs := aString |
|
271 |
! |
|
272 |
||
273 |
linkCommand |
|
274 |
^ LinkCommand |
|
275 |
! |
|
276 |
||
277 |
linkCommand:aString |
|
278 |
LinkCommand := aString |
|
279 |
! |
|
280 |
||
1898 | 281 |
linkSharedArgs |
282 |
^ LinkSharedArgs |
|
283 |
! |
|
284 |
||
285 |
linkSharedArgs:aString |
|
286 |
LinkSharedArgs := aString |
|
287 |
! |
|
288 |
||
1814 | 289 |
makeCommand |
290 |
^ MakeCommand |
|
291 |
||
292 |
"Created: / 09-08-2006 / 18:45:04 / fm" |
|
293 |
! |
|
294 |
||
295 |
makeCommand:aString |
|
296 |
MakeCommand := aString |
|
297 |
||
298 |
"Created: / 09-08-2006 / 18:45:12 / fm" |
|
299 |
! |
|
300 |
||
2645 | 301 |
sdkTop:aPath |
302 |
"windows only: define the SDK top directory. |
|
303 |
must include folder with windows header files. |
|
304 |
Typically something like 'C:\Program Files\Microsoft SDKs\Windows\v6.0A'" |
|
305 |
||
306 |
SDKTop := aPath |
|
307 |
||
308 |
"Created: / 08-08-2011 / 22:39:24 / cg" |
|
309 |
! |
|
310 |
||
1658 | 311 |
searchedLibraries |
312 |
^ SearchedLibraries |
|
313 |
! |
|
314 |
||
315 |
searchedLibraries:aString |
|
316 |
SearchedLibraries := aString |
|
317 |
! |
|
318 |
||
319 |
stcCompilation |
|
320 |
^ STCCompilation |
|
321 |
! |
|
322 |
||
323 |
stcCompilation:aSymbol |
|
324 |
STCCompilation := aSymbol |
|
325 |
! |
|
326 |
||
327 |
stcCompilationDefines |
|
328 |
^ STCCompilationDefines |
|
329 |
! |
|
330 |
||
331 |
stcCompilationDefines:aString |
|
332 |
STCCompilationDefines := aString |
|
333 |
! |
|
334 |
||
335 |
stcCompilationIncludes |
|
336 |
^ STCCompilationIncludes |
|
337 |
! |
|
338 |
||
339 |
stcCompilationIncludes:aString |
|
340 |
STCCompilationIncludes := aString |
|
341 |
! |
|
342 |
||
343 |
stcCompilationOptions |
|
344 |
^ STCCompilationOptions |
|
345 |
! |
|
346 |
||
347 |
stcCompilationOptions:aString |
|
348 |
STCCompilationOptions := aString |
|
349 |
! |
|
350 |
||
351 |
stcKeepCIntermediate |
|
2701
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
352 |
^ STCKeepCIntermediate ? false |
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
353 |
|
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
354 |
"Modified: / 16-09-2011 / 19:56:18 / cg" |
1658 | 355 |
! |
356 |
||
357 |
stcKeepCIntermediate:something |
|
358 |
STCKeepCIntermediate := something. |
|
1940 | 359 |
|
360 |
" |
|
361 |
STCKeepCIntermediate := true. |
|
362 |
STCKeepCIntermediate := false. |
|
363 |
" |
|
364 |
||
365 |
"Modified: / 07-11-2006 / 10:58:42 / cg" |
|
1658 | 366 |
! |
367 |
||
368 |
stcKeepOIntermediate |
|
2702 | 369 |
^ STCKeepOIntermediate ? false |
370 |
||
371 |
"Modified: / 16-09-2011 / 19:56:49 / cg" |
|
1658 | 372 |
! |
373 |
||
374 |
stcKeepOIntermediate:something |
|
375 |
STCKeepOIntermediate := something. |
|
376 |
! |
|
377 |
||
378 |
stcKeepSTIntermediate |
|
2702 | 379 |
^ STCKeepSTIntermediate ? false |
2142 | 380 |
|
381 |
" |
|
382 |
STCKeepSTIntermediate := true. |
|
383 |
STCKeepSTIntermediate := false. |
|
384 |
" |
|
2702 | 385 |
|
386 |
"Modified: / 16-09-2011 / 19:57:17 / cg" |
|
1658 | 387 |
! |
388 |
||
389 |
stcKeepSTIntermediate:something |
|
390 |
STCKeepSTIntermediate := something. |
|
1940 | 391 |
|
392 |
" |
|
393 |
STCKeepSTIntermediate := true. |
|
394 |
STCKeepSTIntermediate := false. |
|
395 |
" |
|
396 |
||
397 |
"Modified: / 07-11-2006 / 10:58:54 / cg" |
|
1658 | 398 |
! |
399 |
||
400 |
stcModulePath |
|
401 |
^ STCModulePath |
|
402 |
! |
|
403 |
||
404 |
stcModulePath:something |
|
405 |
STCModulePath := something. |
|
406 |
! |
|
407 |
||
408 |
stcPath |
|
409 |
^ STCPath |
|
410 |
! |
|
411 |
||
412 |
stcPath:aSymbol |
|
413 |
STCPath := aSymbol |
|
414 |
! |
|
415 |
||
2011 | 416 |
useBorlandC |
2645 | 417 |
"no longer needed - now we can link visual-C dll |
418 |
with borland-generated VM and vice versa" |
|
419 |
||
2011 | 420 |
"/ ^ true. |
421 |
^ OperatingSystem getCCDefine ='__BORLANDC__' |
|
422 |
||
423 |
"Created: / 15-03-2007 / 13:33:32 / cg" |
|
424 |
! |
|
425 |
||
426 |
useGnuC |
|
427 |
^ OperatingSystem getCCDefine = '__GNUC__' |
|
428 |
||
429 |
"Created: / 15-03-2007 / 13:34:49 / cg" |
|
430 |
! |
|
431 |
||
2645 | 432 |
useVisualC |
433 |
"no longer needed - now we can link visual-C dll |
|
434 |
with borland-generated VM and vice versa" |
|
435 |
||
436 |
"/ ^ true. |
|
437 |
^ OperatingSystem getCCDefine ='__VISUALC__' |
|
438 |
||
439 |
"Created: / 08-08-2011 / 22:50:25 / cg" |
|
440 |
! |
|
441 |
||
442 |
vcTop:aPath |
|
443 |
"windows only: define the visual-C top directory. |
|
444 |
must contain bin\cl.exe and include. |
|
445 |
Typically, something like 'C:\Program Files\Microsoft Visual Studio 10.0\VC'" |
|
446 |
||
447 |
VCTop := aPath |
|
448 |
||
449 |
"Created: / 08-08-2011 / 22:39:15 / cg" |
|
450 |
! |
|
451 |
||
1658 | 452 |
withSTCCompilation:howSymbol do:aBlock |
453 |
|prev| |
|
454 |
||
455 |
prev := self stcCompilation. |
|
456 |
self stcCompilation:howSymbol. |
|
457 |
aBlock ensure:[ self stcCompilation:prev ] |
|
458 |
! ! |
|
459 |
||
1634 | 460 |
!ParserFlags class methodsFor:'accessing-syntax-control'! |
461 |
||
462 |
allowArrayIndexSyntaxExtension |
|
463 |
"experimental" |
|
464 |
||
465 |
^ AllowArrayIndexSyntaxExtension ? false |
|
466 |
! |
|
467 |
||
468 |
allowArrayIndexSyntaxExtension:aBoolean |
|
469 |
"experimental" |
|
470 |
||
471 |
AllowArrayIndexSyntaxExtension := aBoolean. |
|
472 |
||
473 |
" |
|
474 |
self allowArrayIndexSyntaxExtension:true |
|
475 |
self allowArrayIndexSyntaxExtension:false |
|
476 |
" |
|
477 |
! |
|
478 |
||
2685 | 479 |
allowAssignmentToBlockArgument |
480 |
^ AllowAssignmentToBlockArgument |
|
481 |
||
482 |
"Created: / 08-09-2011 / 14:49:46 / cg" |
|
483 |
! |
|
484 |
||
485 |
allowAssignmentToBlockArgument:aBoolean |
|
486 |
AllowAssignmentToBlockArgument := aBoolean |
|
487 |
||
488 |
"Created: / 08-09-2011 / 14:50:23 / cg" |
|
489 |
! |
|
490 |
||
491 |
allowAssignmentToMethodArgument |
|
492 |
^ AllowAssignmentToMethodArgument |
|
493 |
||
494 |
"Created: / 08-09-2011 / 14:49:57 / cg" |
|
495 |
! |
|
496 |
||
497 |
allowAssignmentToMethodArgument:aBoolean |
|
498 |
AllowAssignmentToMethodArgument := aBoolean |
|
499 |
||
500 |
"Created: / 08-09-2011 / 14:50:34 / cg" |
|
501 |
! |
|
502 |
||
503 |
allowAssignmentToPoolVariable |
|
504 |
^ AllowAssignmentToPoolVariable |
|
505 |
||
506 |
"Created: / 08-09-2011 / 14:50:06 / cg" |
|
507 |
! |
|
508 |
||
509 |
allowAssignmentToPoolVariable:aBoolean |
|
510 |
AllowAssignmentToPoolVariable := aBoolean |
|
511 |
||
512 |
"Created: / 08-09-2011 / 14:50:48 / cg" |
|
513 |
! |
|
514 |
||
1634 | 515 |
allowDollarInIdentifier |
516 |
"return true, if $-characters are allowed in identifiers. |
|
517 |
Notice, that dollars are NEVER allowed as the first character in an identifier." |
|
518 |
||
519 |
^ AllowDollarInIdentifier |
|
520 |
||
521 |
"Created: 7.9.1997 / 01:32:18 / cg" |
|
522 |
"Modified: 7.9.1997 / 01:39:44 / cg" |
|
523 |
! |
|
524 |
||
525 |
allowDollarInIdentifier:aBoolean |
|
526 |
"this allows turning on/off $-characters in identifiers. |
|
527 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
528 |
If turned off (the default), dollars are not allowed in identifiers, |
|
529 |
but instead are scanned as character-constant prefix. |
|
530 |
If turned on, dollars are in identifiers are allowed, while extra |
|
531 |
dollars are still scanned as constant character prefix. |
|
532 |
If you have to fileIn old VW-Vsn2.x classes, turn this off |
|
533 |
before filing them in; i.e.: |
|
534 |
Compiler allowDollarInIdentifiers:false" |
|
535 |
||
536 |
AllowDollarInIdentifier := aBoolean. |
|
537 |
||
538 |
"Created: 7.9.1997 / 01:34:49 / cg" |
|
539 |
"Modified: 7.9.1997 / 01:39:30 / cg" |
|
540 |
! |
|
541 |
||
542 |
allowDolphinExtensions |
|
543 |
"return true, if ##(..) computed literals are allowed" |
|
544 |
||
545 |
^ AllowDolphinExtensions |
|
546 |
! |
|
547 |
||
548 |
allowDolphinExtensions:aBoolean |
|
549 |
"this allows turning on/off support for computed arrays ##(..) as in dolphin. |
|
550 |
If you want to fileIn Dolphin classes, enable this with: |
|
551 |
Compiler allowDolphinComputedArrays:true" |
|
552 |
||
553 |
AllowDolphinExtensions := aBoolean. |
|
554 |
||
555 |
" |
|
556 |
self allowDolphinExtensions:true |
|
557 |
self allowDolphinExtensions:false |
|
558 |
" |
|
559 |
! |
|
560 |
||
1950 | 561 |
allowEmptyStatements |
562 |
"return true, if empty statements are allowed (two .'s in a row). |
|
563 |
Notice, that stc cannot (yet) handle those." |
|
564 |
||
565 |
^ AllowEmptyStatements |
|
566 |
||
567 |
"Created: / 20-11-2006 / 14:29:02 / cg" |
|
568 |
! |
|
569 |
||
570 |
allowEmptyStatements:aBoolean |
|
571 |
"turn on/off, if empty statements are allowed (two .'s in a row). |
|
572 |
Notice, that stc cannot (yet) handle those." |
|
573 |
||
574 |
AllowEmptyStatements := aBoolean |
|
575 |
||
576 |
"Created: / 20-11-2006 / 14:29:15 / cg" |
|
577 |
! |
|
578 |
||
2145 | 579 |
allowExtendedBinarySelectors |
580 |
"experimental extended selectors extensions" |
|
581 |
||
582 |
^ AllowExtendedBinarySelectors |
|
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
583 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
584 |
" |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
585 |
ParserFlags allowExtendedBinarySelectors |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
586 |
ParserFlags allowExtendedBinarySelectors:false |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
587 |
ParserFlags allowExtendedBinarySelectors:true |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
588 |
" |
2145 | 589 |
! |
590 |
||
591 |
allowExtendedBinarySelectors:aBoolean |
|
592 |
"experimental syntay extensions" |
|
593 |
||
594 |
AllowExtendedBinarySelectors := aBoolean |
|
595 |
! |
|
596 |
||
1682 | 597 |
allowExtendedSTXSyntax |
598 |
"experimental syntay extensions" |
|
599 |
||
600 |
^ AllowExtendedSTXSyntax |
|
601 |
! |
|
602 |
||
603 |
allowExtendedSTXSyntax:aBoolean |
|
604 |
"experimental syntay extensions" |
|
605 |
||
606 |
AllowExtendedSTXSyntax := aBoolean |
|
607 |
||
608 |
" |
|
609 |
self allowExtendedSTXSyntax:true |
|
610 |
'a\tb' inspect. |
|
611 |
'a\u1616b' inspect. |
|
612 |
self allowExtendedSTXSyntax:false |
|
613 |
" |
|
614 |
! |
|
615 |
||
1677 | 616 |
allowFixedPointLiterals |
617 |
"return true, if nnnsn (FixedPoint) literals are allowed" |
|
618 |
||
619 |
^ AllowFixedPointLiterals |
|
620 |
! |
|
621 |
||
622 |
allowFixedPointLiterals:aBoolean |
|
623 |
"enable/disable, if nnnsn (FixedPoint) literals are allowed" |
|
624 |
||
625 |
AllowFixedPointLiterals := aBoolean |
|
626 |
! |
|
627 |
||
1634 | 628 |
allowFunctionCallSyntaxForBlockEvaluation |
629 |
"experimental" |
|
630 |
||
631 |
^ AllowFunctionCallSyntaxForBlockEvaluation |
|
1721 | 632 |
|
633 |
" |
|
634 |
AllowFunctionCallSyntaxForBlockEvaluation := true |
|
635 |
" |
|
1634 | 636 |
! |
637 |
||
638 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
639 |
"experimental" |
|
640 |
||
641 |
AllowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
642 |
! |
|
643 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
644 |
allowHashAsBinarySelector |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
645 |
^ AllowHashAsBinarySelector |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
646 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
647 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
648 |
allowHashAsBinarySelector:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
649 |
AllowHashAsBinarySelector := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
650 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
651 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
652 |
self allowHashAsBinarySelector:true |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
653 |
self allowHashAsBinarySelector:false |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
654 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
655 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
656 |
|
1634 | 657 |
allowLiteralNameSpaceSymbols |
658 |
"return true, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
659 |
||
660 |
^ AllowLiteralNameSpaceSymbols |
|
661 |
! |
|
662 |
||
663 |
allowLiteralNameSpaceSymbols:aBoolean |
|
664 |
"controls, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
665 |
||
666 |
AllowLiteralNameSpaceSymbols := aBoolean |
|
667 |
! |
|
668 |
||
669 |
allowLocalVariableDeclarationWithInitializerExpression |
|
670 |
"experimental" |
|
671 |
||
672 |
^ AllowLocalVariableDeclarationWithInitializerExpression |
|
673 |
! |
|
674 |
||
675 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
676 |
"experimental" |
|
677 |
||
678 |
AllowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
679 |
! |
|
680 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
681 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
682 |
"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
|
683 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
684 |
^ AllowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
685 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
686 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
687 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
688 |
"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
|
689 |
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
|
690 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
691 |
AllowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
692 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
693 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
694 |
ParserFlags allowNationalCharactersInIdentifier:true |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
695 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
696 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
697 |
|
1634 | 698 |
allowOldStyleAssignment |
699 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
|
700 |
||
701 |
^ AllowOldStyleAssignment |
|
702 |
! |
|
703 |
||
704 |
allowOldStyleAssignment:aBoolean |
|
705 |
"this allows turning on/off recognition of underscore-assignment (pre ST-80v4 syntax). |
|
706 |
You must turn this off, if code with variables named '_' is to be filedIn" |
|
707 |
||
708 |
AllowOldStyleAssignment := aBoolean |
|
709 |
! |
|
710 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
711 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
712 |
"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
|
713 |
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
|
714 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
715 |
^ AllowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
716 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
717 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
718 |
allowPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
719 |
"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
|
720 |
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
|
721 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
722 |
AllowPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
723 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
724 |
" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
725 |
self allowPeriodInSymbol:true. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
726 |
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
|
727 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
728 |
self allowPeriodInSymbol:false. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
729 |
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
|
730 |
" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
731 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
732 |
|
1634 | 733 |
allowQualifiedNames |
734 |
"return true, if #{..} qualified names are allowed" |
|
735 |
||
736 |
^ AllowQualifiedNames |
|
737 |
! |
|
738 |
||
739 |
allowQualifiedNames:aBoolean |
|
740 |
"this allows turning on/off support for qualifiedNames #{ .., } as in vw3. |
|
741 |
If you want to fileIn vw3 or later classes, enable this with: |
|
742 |
Compiler allowQualifiedNames:true |
|
743 |
Notice, that qualified names are not really supported semantically |
|
744 |
(they are parsed, but treated like regular globals) |
|
745 |
" |
|
746 |
||
747 |
AllowQualifiedNames := aBoolean. |
|
748 |
||
749 |
" |
|
750 |
self allowQualifiedNames:true |
|
751 |
self allowQualifiedNames:false |
|
752 |
" |
|
753 |
! |
|
754 |
||
755 |
allowReservedWordsAsSelectors |
|
756 |
"return true, if self, super, thisContext, nil, true and false are to be allowed |
|
757 |
as unary message selectors." |
|
758 |
||
759 |
^ AllowReservedWordsAsSelectors ? false |
|
760 |
! |
|
761 |
||
762 |
allowReservedWordsAsSelectors:aBoolean |
|
763 |
"enable/disable, if self, super, thisContext, nil, true and false are to be allowed |
|
764 |
as unary message selectors." |
|
765 |
||
766 |
AllowReservedWordsAsSelectors := aBoolean. |
|
767 |
||
768 |
" |
|
769 |
self allowReservedWordsAsSelectors:true |
|
770 |
self allowReservedWordsAsSelectors:false |
|
771 |
" |
|
772 |
! |
|
773 |
||
1702 | 774 |
allowSTVExtensions |
775 |
"return true, if support for ST/V syntax extensions is enabled." |
|
776 |
||
777 |
^ AllowSTVExtensions |
|
778 |
! |
|
779 |
||
780 |
allowSTVExtensions:aBoolean |
|
781 |
"this allows turning on/off support for ST/V extensions: |
|
782 |
If you want to fileIn ST/V classes, enable this with: |
|
783 |
Compiler allowSTVComputedArrays:true" |
|
784 |
||
785 |
AllowSTVExtensions := aBoolean. |
|
786 |
||
787 |
" |
|
1704 | 788 |
ParserFlags allowSTVExtensions:true |
789 |
ParserFlags allowSTVExtensions:false |
|
1702 | 790 |
" |
791 |
! |
|
792 |
||
1700 | 793 |
allowSTVPrimitives |
794 |
"return true, if support for ST/V primitives is enabled." |
|
795 |
||
796 |
^ AllowSTVPrimitives |
|
797 |
! |
|
798 |
||
799 |
allowSTVPrimitives:aBoolean |
|
800 |
"this allows turning on/off support for ST/V primitives" |
|
801 |
||
802 |
AllowSTVPrimitives := aBoolean |
|
1704 | 803 |
|
804 |
" |
|
805 |
ParserFlags allowSTVPrimitives:true |
|
806 |
" |
|
1700 | 807 |
! |
808 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
809 |
allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
810 |
^ AllowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
811 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
812 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
813 |
allowSTXEOLComments:aBoolean |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
814 |
AllowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
815 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
816 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
817 |
self allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
818 |
self allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
819 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
820 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
821 |
|
1634 | 822 |
allowSqueakExtensions |
823 |
"return true, if support for squeak extensions |
|
824 |
computed arrays { .., } |
|
825 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
826 |
is enabled." |
|
827 |
||
828 |
^ AllowSqueakExtensions |
|
829 |
! |
|
830 |
||
831 |
allowSqueakExtensions:aBoolean |
|
832 |
"this allows turning on/off support for squeak extensions: |
|
833 |
computed arrays { .., } |
|
834 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
835 |
||
836 |
If you want to fileIn Squeak classes, enable this with: |
|
837 |
Compiler allowSqueakComputedArrays:true" |
|
838 |
||
839 |
AllowSqueakExtensions := aBoolean. |
|
840 |
||
841 |
" |
|
842 |
self allowSqueakExtensions:true |
|
843 |
self allowSqueakExtensions:false |
|
844 |
" |
|
845 |
! |
|
846 |
||
1689 | 847 |
allowSqueakPrimitives |
848 |
"return true, if support for squeak primitives is enabled." |
|
849 |
||
850 |
^ AllowSqueakPrimitives |
|
851 |
! |
|
852 |
||
853 |
allowSqueakPrimitives:aBoolean |
|
854 |
"this allows turning on/off support for squeak primitives" |
|
855 |
||
856 |
AllowSqueakPrimitives := aBoolean |
|
857 |
! |
|
858 |
||
1634 | 859 |
allowUnderscoreInIdentifier |
860 |
"return true, if underscores are allowed in identifiers" |
|
861 |
||
862 |
^ AllowUnderscoreInIdentifier |
|
863 |
! |
|
864 |
||
865 |
allowUnderscoreInIdentifier:aBoolean |
|
866 |
"this allows turning on/off underscores in identifiers. |
|
867 |
If turned off (the default), underscores are not allowed in identifiers, |
|
868 |
but instead scanned as assignment character (old ST/80 syntax). |
|
869 |
If turned on, underscores are in identifiers are allowed, while extra |
|
870 |
underscores are still scanned as assignment. |
|
871 |
If you have to fileIn old VW-Vsn2.x classes, |
|
872 |
turn them off with: |
|
873 |
Compiler allowUnderscoreInIdentifiers:false" |
|
874 |
||
875 |
AllowUnderscoreInIdentifier := aBoolean. |
|
876 |
||
877 |
"Modified: 7.9.1997 / 01:35:19 / cg" |
|
1655 | 878 |
! |
879 |
||
2310 | 880 |
allowUnicodeCharacters |
881 |
^ AllowUnicodeCharacters |
|
882 |
! |
|
883 |
||
884 |
allowUnicodeCharacters:aBoolean |
|
885 |
AllowUnicodeCharacters := aBoolean. |
|
886 |
! |
|
887 |
||
2307 | 888 |
allowUnicodeStrings |
889 |
^ AllowUnicodeStrings |
|
890 |
! |
|
891 |
||
892 |
allowUnicodeStrings:aBoolean |
|
893 |
AllowUnicodeStrings := aBoolean. |
|
894 |
! |
|
895 |
||
1655 | 896 |
allowVisualAgeESSymbolLiterals |
897 |
"return true, if ##symbols are allowed (treated like symbols)" |
|
898 |
||
899 |
^ AllowVisualAgeESSymbolLiterals |
|
900 |
! |
|
901 |
||
902 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
903 |
"if on, visualAge's ##symbols are allowed (treated like symbols)" |
|
904 |
||
905 |
AllowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 906 |
! |
907 |
||
908 |
allowVisualAgePrimitives |
|
909 |
"return true, if support for V'Age primitives is enabled." |
|
910 |
||
2747 | 911 |
^ AllowVisualAgePrimitives |
912 |
||
913 |
" |
|
914 |
AllowVisualAgePrimitives := true |
|
915 |
AllowVisualAgePrimitives := false |
|
916 |
" |
|
917 |
||
918 |
"Modified (comment): / 18-10-2011 / 16:49:12 / cg" |
|
1689 | 919 |
! |
920 |
||
921 |
allowVisualAgePrimitives:aBoolean |
|
922 |
"this allows turning on/off support for V'Age primitives" |
|
923 |
||
924 |
AllowVisualAgePrimitives := aBoolean |
|
1773 | 925 |
! |
926 |
||
927 |
allowVisualWorksMethodAnnotations |
|
928 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
929 |
||
930 |
^ AllowVisualWorksMethodAnnotations |
|
931 |
||
932 |
"Created: / 07-07-2006 / 15:49:32 / cg" |
|
933 |
! |
|
934 |
||
935 |
allowVisualWorksMethodAnnotations:aBoolean |
|
936 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
937 |
||
938 |
AllowVisualWorksMethodAnnotations := aBoolean |
|
939 |
||
940 |
"Created: / 07-07-2006 / 15:49:27 / cg" |
|
1634 | 941 |
! ! |
942 |
||
943 |
!ParserFlags class methodsFor:'accessing-warning-control'! |
|
944 |
||
1652 | 945 |
warnAboutBadComments |
946 |
"controls generation of warning messages about empty comments" |
|
947 |
||
948 |
^ WarnAboutBadComments |
|
949 |
! |
|
950 |
||
951 |
warnAboutBadComments:aBoolean |
|
952 |
"controls generation of warning messages about empty comments" |
|
953 |
||
954 |
WarnAboutBadComments := aBoolean |
|
955 |
! |
|
956 |
||
1811 | 957 |
warnAboutNonLowercaseLocalVariableNames |
1740 | 958 |
"controls generation of warning messages about wrong variable names" |
959 |
||
1811 | 960 |
^ WarnAboutNonLowercaseLocalVariableNames |
1740 | 961 |
! |
962 |
||
1811 | 963 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
1740 | 964 |
"controls generation of warning messages about wrong variable names" |
965 |
||
1811 | 966 |
WarnAboutNonLowercaseLocalVariableNames := aBoolean |
1740 | 967 |
! |
968 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
969 |
warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
970 |
^ WarnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
971 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
972 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
973 |
warnAboutPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
974 |
WarnAboutPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
975 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
976 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
977 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
978 |
^ WarnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
979 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
980 |
"Created: / 16-11-2006 / 14:31:52 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
981 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
982 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
983 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
984 |
WarnAboutPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
985 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
986 |
"Created: / 16-11-2006 / 14:31:57 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
987 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
988 |
|
2121 | 989 |
warnAboutPossiblyUnimplementedSelectors |
990 |
^ WarnAboutPossiblyUnimplementedSelectors |
|
991 |
! |
|
992 |
||
993 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
994 |
WarnAboutPossiblyUnimplementedSelectors := aBoolean |
|
995 |
! |
|
996 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
997 |
warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
998 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
999 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1000 |
^ WarnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1001 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1002 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1003 |
warnAboutReferenceToPrivateClass:aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1004 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1005 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1006 |
WarnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1007 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1008 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1009 |
warnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1010 |
"controls generation of warning messages about short variable names" |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1011 |
|
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1012 |
^ WarnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1013 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1014 |
|
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1015 |
warnAboutShortLocalVariableNames:aBoolean |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1016 |
"controls generation of warning messages about short variable names" |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1017 |
|
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1018 |
WarnAboutShortLocalVariableNames := aBoolean |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1019 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1020 |
|
2739 | 1021 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
1022 |
"things like '\c:foo' instead of '\\c:foo' " |
|
1023 |
||
1024 |
^ WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
|
1025 |
||
1026 |
"Created: / 04-10-2011 / 19:54:57 / cg" |
|
1027 |
! |
|
1028 |
||
1029 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean |
|
1030 |
"things like '\c:foo' instead of '\\c:foo' " |
|
1031 |
||
1032 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean |
|
1033 |
||
1034 |
"Created: / 04-10-2011 / 19:54:42 / cg" |
|
1035 |
! |
|
1036 |
||
1634 | 1037 |
warnAboutVariableNameConventions |
1038 |
"controls generation of warning messages about wrong variable names" |
|
1039 |
||
1040 |
^ WarnAboutVariableNameConventions |
|
1041 |
! |
|
1042 |
||
1043 |
warnAboutVariableNameConventions:aBoolean |
|
1044 |
"controls generation of warning messages about wrong variable names" |
|
1045 |
||
1046 |
WarnAboutVariableNameConventions := aBoolean |
|
1047 |
! |
|
1048 |
||
1049 |
warnAboutWrongVariableNames |
|
1050 |
"controls generation of warning messages about wrong variable names" |
|
1051 |
||
1052 |
^ WarnAboutWrongVariableNames |
|
1053 |
! |
|
1054 |
||
1055 |
warnAboutWrongVariableNames:aBoolean |
|
1056 |
"controls generation of warning messages about wrong variable names" |
|
1057 |
||
1058 |
WarnAboutWrongVariableNames := aBoolean |
|
1059 |
! |
|
1060 |
||
1061 |
warnCommonMistakes |
|
1062 |
"return true, if common beginners mistakes are to be warned about" |
|
1063 |
||
1754 | 1064 |
^ WarnCommonMistakes |
1634 | 1065 |
! |
1066 |
||
1067 |
warnCommonMistakes:aBoolean |
|
1068 |
"this allows turning on/off warnings about common beginners mistakes. |
|
1069 |
Those are not really errors in the strict sense, but often lead to |
|
1070 |
run time errors later. |
|
1071 |
Examples are: expr or:expr2, where expr2 is not a block. |
|
1072 |
If you get bored by those warnings, turn them off by adding |
|
1073 |
a line as: |
|
1902 | 1074 |
ParserFlags warnCommonMistakes:false |
1634 | 1075 |
in your 'private.rc' file" |
1076 |
||
1077 |
WarnCommonMistakes := aBoolean |
|
1902 | 1078 |
|
1079 |
"Modified: / 05-09-2006 / 11:46:26 / cg" |
|
1634 | 1080 |
! |
1081 |
||
1082 |
warnDollarInIdentifier |
|
1083 |
"return true, if $-characters in identifiers are to be warned about" |
|
1084 |
||
1085 |
^ Warnings and:[WarnDollarInIdentifier] |
|
1086 |
||
1087 |
"Created: 7.9.1997 / 01:36:17 / cg" |
|
1088 |
! |
|
1089 |
||
1090 |
warnDollarInIdentifier:aBoolean |
|
1091 |
"this allows turning on/off warnings about $-characters in identifiers. |
|
1092 |
You may find those warnings useful, to make certain that your code |
|
1093 |
is portable to other smalltalk versions, which do not allow this |
|
1094 |
(i.e. VW releases 2.x and maybe others). |
|
1095 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
1096 |
If you get bored by those warnings, turn them off by adding |
|
1097 |
a line as: |
|
1902 | 1098 |
ParserFlags warnDollarInIdentifier:false |
1634 | 1099 |
in your 'private.rc' file" |
1100 |
||
1101 |
WarnDollarInIdentifier := aBoolean |
|
1102 |
||
1902 | 1103 |
"Created: / 07-09-1997 / 01:37:42 / cg" |
1104 |
"Modified: / 05-09-2006 / 11:46:23 / cg" |
|
1634 | 1105 |
! |
1106 |
||
1682 | 1107 |
warnHiddenVariables |
1108 |
"controls generation of warning messages about hiding variables by locals" |
|
1109 |
||
1110 |
^ WarnHiddenVariables |
|
1111 |
! |
|
1112 |
||
1113 |
warnHiddenVariables:aBoolean |
|
1114 |
"controls generation of warning messages about hiding variables by locals" |
|
1115 |
||
1116 |
WarnHiddenVariables := aBoolean |
|
1117 |
! |
|
1118 |
||
1119 |
warnInconsistentReturnValues |
|
1120 |
"return true, if compiler should warn about inconsitent (boolean / non-boolean) |
|
1121 |
return values" |
|
1122 |
||
1123 |
^ WarnInconsistentReturnValues |
|
1124 |
! |
|
1125 |
||
1126 |
warnInconsistentReturnValues:aBoolean |
|
1127 |
"constrols if the compiler should warn about inconsitent (boolean / non-boolean) |
|
1128 |
return values" |
|
1129 |
||
1130 |
WarnInconsistentReturnValues := aBoolean |
|
1131 |
! |
|
1132 |
||
1634 | 1133 |
warnOldStyleAssignment |
1134 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be warned about" |
|
1135 |
||
1136 |
^ Warnings and:[WarnOldStyleAssignment] |
|
1137 |
! |
|
1138 |
||
1139 |
warnOldStyleAssignment:aBoolean |
|
1140 |
"this allows turning on/off warnings about underscore-assignment (pre ST-80v4 syntax). |
|
1141 |
If you get bored by those warnings, turn them off by adding |
|
1142 |
a line as: |
|
1902 | 1143 |
ParserFlags warnOldStyleAssignment:false |
1634 | 1144 |
in your 'private.rc' file" |
1145 |
||
1146 |
WarnOldStyleAssignment := aBoolean |
|
1902 | 1147 |
|
1148 |
"Modified: / 05-09-2006 / 11:46:17 / cg" |
|
1634 | 1149 |
! |
1150 |
||
2787 | 1151 |
warnPlausibilityChecks |
1152 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
1153 |
||
1154 |
^ WarnPlausibilityChecks |
|
1155 |
||
1156 |
"Created: / 19-01-2012 / 10:38:20 / cg" |
|
1157 |
! |
|
1158 |
||
1159 |
warnPlausibilityChecks:aBoolean |
|
1160 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
1161 |
||
1162 |
WarnPlausibilityChecks := aBoolean |
|
1163 |
||
1164 |
"Created: / 19-01-2012 / 10:38:39 / cg" |
|
1165 |
! |
|
1166 |
||
1634 | 1167 |
warnPossibleIncompatibilities |
1168 |
"return true, if possible incompatibilities (with other ST systems) |
|
1169 |
are to be warned about" |
|
1170 |
||
1171 |
^ Warnings and:[WarnPossibleIncompatibilities] |
|
1172 |
||
1173 |
"Modified: 23.5.1997 / 12:02:02 / cg" |
|
1174 |
! |
|
1175 |
||
1176 |
warnPossibleIncompatibilities:aBoolean |
|
1177 |
"this turns warnings about possible incompatibilities (with other ST systems) |
|
1178 |
on or off. |
|
1179 |
If you get bored by those warnings, turn them off by adding |
|
1180 |
a line as: |
|
1902 | 1181 |
ParserFlags warnPossibleIncompatibilities:false |
1634 | 1182 |
in your 'private.rc' file." |
1183 |
||
1184 |
WarnPossibleIncompatibilities := aBoolean |
|
1185 |
||
1902 | 1186 |
"Created: / 23-05-1997 / 12:02:45 / cg" |
1187 |
"Modified: / 05-09-2006 / 11:46:14 / cg" |
|
1634 | 1188 |
! |
1189 |
||
1190 |
warnSTXSpecials |
|
1191 |
"return true, if ST/X specials are to be warned about" |
|
1192 |
||
1193 |
^ Warnings and:[WarnSTXSpecials] |
|
1194 |
! |
|
1195 |
||
1196 |
warnSTXSpecials:aBoolean |
|
1197 |
"this allows turning on/off warnings about stx specials. |
|
1198 |
If you get bored by those warnings, turn them off by adding |
|
1199 |
a line as: |
|
1902 | 1200 |
ParserFlags warnSTXSpecials:false |
1634 | 1201 |
in your 'private.rc' file" |
1202 |
||
1203 |
WarnSTXSpecials := aBoolean |
|
1902 | 1204 |
|
1205 |
"Modified: / 05-09-2006 / 11:46:11 / cg" |
|
1634 | 1206 |
! |
1207 |
||
1208 |
warnUnderscoreInIdentifier |
|
1209 |
"return true, if underscores in identifiers are to be warned about" |
|
1210 |
||
1211 |
^ Warnings and:[WarnUnderscoreInIdentifier] |
|
1212 |
! |
|
1213 |
||
1214 |
warnUnderscoreInIdentifier:aBoolean |
|
1215 |
"this allows turning on/off warnings about underscores in identifiers. |
|
1216 |
You may find those warnings useful, to make certain that your code |
|
1217 |
is portable to other smalltalk versions, which do not allow this |
|
1218 |
(i.e. VW releases 2.x). |
|
1219 |
If you get bored by those warnings, turn them off by adding |
|
1220 |
a line as: |
|
1902 | 1221 |
ParserFlags warnUnderscoreInIdentifier:false |
1634 | 1222 |
in your 'private.rc' file" |
1223 |
||
1224 |
WarnUnderscoreInIdentifier := aBoolean |
|
1225 |
||
1902 | 1226 |
"Modified: / 05-09-2006 / 11:46:08 / cg" |
1634 | 1227 |
! |
1228 |
||
1229 |
warnUnusedVars |
|
1230 |
"controls generation of warning messages about unued method variables" |
|
1231 |
||
1232 |
^ WarnUnusedVars |
|
1233 |
! |
|
1234 |
||
1235 |
warnUnusedVars:aBoolean |
|
1236 |
"controls generation of warning messages about unued method variables" |
|
1237 |
||
1238 |
WarnUnusedVars := aBoolean |
|
1239 |
! |
|
1240 |
||
1241 |
warnings |
|
1242 |
"return true, if any warnings are to be shown" |
|
1243 |
||
1244 |
^ Warnings |
|
1245 |
! |
|
1246 |
||
1247 |
warnings:aBoolean |
|
1248 |
"this allows turning on/off all warnings; the default is on. |
|
1249 |
You can turn off warnings in your 'private.rc' file with |
|
1902 | 1250 |
ParserFlags warnings:false |
1634 | 1251 |
" |
1252 |
||
1253 |
Warnings := aBoolean |
|
1254 |
||
1902 | 1255 |
" |
1256 |
ParserFlags warnings |
|
1257 |
ParserFlags warnings:true |
|
1258 |
ParserFlags warnings:false |
|
1259 |
" |
|
1260 |
||
1261 |
"Modified: / 05-09-2006 / 11:46:47 / cg" |
|
1634 | 1262 |
! ! |
1263 |
||
1264 |
!ParserFlags class methodsFor:'class initialization'! |
|
1265 |
||
1266 |
initialize |
|
1267 |
Warnings := true. |
|
1268 |
WarnUndeclared := true. |
|
1269 |
WarnUnusedVars := true. |
|
1270 |
WarnSTXSpecials := false. |
|
1271 |
WarnST80Directives := false. |
|
1272 |
WarnAboutWrongVariableNames := true. |
|
1273 |
WarnAboutVariableNameConventions := true. |
|
1652 | 1274 |
WarnAboutBadComments := true. |
1634 | 1275 |
WarnUnderscoreInIdentifier := false. |
1276 |
WarnDollarInIdentifier := true. |
|
1277 |
WarnOldStyleAssignment := true. |
|
1278 |
WarnCommonMistakes := true. |
|
1279 |
WarnPossibleIncompatibilities := false. |
|
1638 | 1280 |
WarnHiddenVariables := true. |
1682 | 1281 |
WarnInconsistentReturnValues := true. |
1811 | 1282 |
WarnAboutNonLowercaseLocalVariableNames := true. |
2083
9e9ee3362d7d
Switch off short variable name warnings
Stefan Vogel <sv@exept.de>
parents:
2081
diff
changeset
|
1283 |
WarnAboutShortLocalVariableNames := false. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1284 |
WarnAboutPossibleSTCCompilationProblems := true. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1285 |
WarnAboutReferenceToPrivateClass := true. |
2121 | 1286 |
WarnAboutPossiblyUnimplementedSelectors := true. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1287 |
WarnAboutPeriodInSymbol := true. |
2738 | 1288 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := false. |
2787 | 1289 |
WarnPlausibilityChecks := true. |
1634 | 1290 |
|
1291 |
AllowReservedWordsAsSelectors := false. |
|
1292 |
AllowUnderscoreInIdentifier := true. "/ underscores in identifiers |
|
1293 |
AllowDollarInIdentifier := false. "/ st80-vms dollars in identifiers |
|
1294 |
AllowOldStyleAssignment := true. "/ st80 underscore as assignment |
|
1295 |
AllowDolphinExtensions := false. "/ dolphin computed literal |
|
1296 |
AllowQualifiedNames := false. "/ vw3 qualified names |
|
1297 |
AllowExtendedBinarySelectors := false. "/ vw5.4 extended binary selectors (plus/minus, center-dot etc.) |
|
2306 | 1298 |
AllowCaretAsBinop := false. "/ too dangerous |
1634 | 1299 |
AllowLiteralNameSpaceSymbols := true. "/ st/x literal nameSpace-symbols (#foo::bar) |
1300 |
AllowArrayIndexSyntaxExtension := false. |
|
1301 |
AllowFunctionCallSyntaxForBlockEvaluation := false. |
|
1302 |
AllowLocalVariableDeclarationWithInitializerExpression := false. |
|
1303 |
AllowDomainVariables := false. |
|
1304 |
AllowArrayIndexSyntaxExtension := false. |
|
1305 |
AllowReservedWordsAsSelectors := true. |
|
1306 |
AllowVariableReferences := false. |
|
1307 |
AllowLazyValueExtension := false. |
|
2659 | 1308 |
AllowFixedPointLiterals := true "false". |
1634 | 1309 |
AllowExtendedSTXSyntax := false. |
1655 | 1310 |
AllowVisualAgeESSymbolLiterals := false. |
1668 | 1311 |
AllowExtensionsToPrivateClasses := true. |
1689 | 1312 |
AllowVisualAgePrimitives := false. |
1702 | 1313 |
AllowSqueakExtensions := false. "/ squeak computed array |
1689 | 1314 |
AllowSqueakPrimitives := false. |
1702 | 1315 |
AllowSTVPrimitives := false. "/ number-sign syntax |
1316 |
AllowSTVExtensions := false. |
|
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1317 |
AllowNationalCharactersInIdentifier := false. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1318 |
AllowHashAsBinarySelector := true. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1319 |
AllowSTXEOLComments := true. |
1773 | 1320 |
AllowVisualWorksMethodAnnotations := false. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1321 |
AllowPossibleSTCCompilationProblems := true. |
1950 | 1322 |
AllowEmptyStatements := false. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1323 |
AllowPeriodInSymbol := false. |
2311 | 1324 |
"/ these are only used by the new compiler |
1325 |
AllowUnicodeStrings := false. |
|
1326 |
AllowUnicodeCharacters := false. |
|
1327 |
AllowCharacterEscapes := false. |
|
2313 | 1328 |
AllowStringEscapes := false. |
2685 | 1329 |
AllowAssignmentToBlockArgument := false. |
1330 |
AllowAssignmentToMethodArgument := false. |
|
1331 |
AllowAssignmentToPoolVariable := false. |
|
2690
974039eec8d4
comment/format in: #initialize
Claus Gittinger <cg@exept.de>
parents:
2685
diff
changeset
|
1332 |
"/ AllowAssignmentToPoolVariable := true. |
1634 | 1333 |
|
1334 |
ArraysAreImmutable := false. "/ no longer care for ST-80 compatibility |
|
1335 |
StringsAreImmutable := false. "/ no longer care for ST-80 compatibility |
|
1336 |
ImplicitSelfSends := false. |
|
1337 |
||
1658 | 1338 |
STCKeepCIntermediate := false. |
1339 |
STCKeepOIntermediate := false. |
|
1340 |
STCKeepSTIntermediate := false. |
|
2624 | 1341 |
"/ if in the development directory, use ./modules |
1342 |
Smalltalk isSmalltalkDevelopmentSystem ifTrue:[ |
|
1343 |
STCModulePath := './modules'. |
|
1344 |
] ifFalse:[ |
|
1345 |
STCModulePath := Filename tempDirectory constructString:'modules'. |
|
1346 |
]. |
|
1658 | 1347 |
STCCompilation := #default. |
1348 |
||
2625 | 1349 |
self initializeSTCFlagsForTopDirectory:'../..'. |
1350 |
||
1351 |
" |
|
1352 |
ParserFlags initialize |
|
1353 |
" |
|
1354 |
||
1355 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
|
2787 | 1356 |
"Modified: / 19-01-2012 / 10:37:43 / cg" |
2625 | 1357 |
! |
1358 |
||
1359 |
initializeSTCFlagsForTopDirectory:topDirArg |
|
2645 | 1360 |
"notice: for now, can only initialize for borland+windows or linux; |
1361 |
visualC setup still fails" |
|
1362 |
||
1363 |
|topDir vcTop sdkTop bccTop useBorlandC useVisualC| |
|
2625 | 1364 |
|
1365 |
topDir := topDirArg. |
|
1658 | 1366 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
2625 | 1367 |
topDir := topDirArg copyReplaceAll:$/ with:$\. |
1368 |
]. |
|
1369 |
||
1370 |
"/ if in the development directory, use ./modules |
|
1371 |
Smalltalk isSmalltalkDevelopmentSystem ifTrue:[ |
|
1372 |
STCModulePath := './modules'. |
|
1373 |
] ifFalse:[ |
|
1374 |
STCModulePath := Filename tempDirectory constructString:'modules'. |
|
1375 |
]. |
|
1376 |
STCCompilation := #default. |
|
1377 |
||
1378 |
(topDir asFilename construct:'stc') exists ifFalse:[ |
|
2645 | 1379 |
'Warning: stc not found in "../.."' infoPrintCR. |
2666
6faac5aa7d95
changed: #initializeSTCFlagsForTopDirectory:
Claus Gittinger <cg@exept.de>
parents:
2659
diff
changeset
|
1380 |
'stc-compiling (primitive code) will not work in the browser' infoPrintCR. |
6faac5aa7d95
changed: #initializeSTCFlagsForTopDirectory:
Claus Gittinger <cg@exept.de>
parents:
2659
diff
changeset
|
1381 |
STCCompilation := #never. |
2625 | 1382 |
]. |
1383 |
||
1384 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
2645 | 1385 |
useBorlandC := useVisualC := false. |
1386 |
||
2625 | 1387 |
STCCompilationIncludes := '-I',topDir,'\include -I',topDir,'\libopengl'. |
2645 | 1388 |
(bccTop := BCCTop) isNil ifTrue:[ |
1389 |
bccTop := #( |
|
1390 |
'C:\Borland\bcc55' |
|
1391 |
) detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] ifNone:nil. |
|
1392 |
]. |
|
1393 |
||
1394 |
(bccTop notNil and:[bccTop asFilename exists]) ifTrue:[ |
|
1395 |
STCCompilationIncludes := STCCompilationIncludes,' -I',bccTop,'\Include'. |
|
1396 |
LibDirectory := topDir,'\libbc'. |
|
1397 |
LinkArgs := '-L',topDir,'\libbc'. |
|
1398 |
LinkArgs := LinkArgs,' -L',bccTop,'\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1399 |
CCPath := 'bcc32'. |
|
1400 |
MakeCommand := 'bmake'. |
|
1401 |
LinkCommand := 'ilink32'. |
|
1402 |
CCCompilationOptions := '-w-'. |
|
1403 |
useBorlandC := true. |
|
1668 | 1404 |
] ifFalse:[ |
2645 | 1405 |
(vcTop := VCTop) isNil ifTrue:[ |
1406 |
vcTop := #( |
|
1407 |
'C:\Program Files\Microsoft Visual Studio 10.0\VC' |
|
1408 |
) detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/cl.exe') exists]] ifNone:nil. |
|
1409 |
]. |
|
1410 |
(vcTop notNil and:[vcTop asFilename exists]) ifTrue:[ |
|
1411 |
useVisualC := true. |
|
1412 |
STCCompilationIncludes := STCCompilationIncludes,' -I',vcTop,'include'. |
|
1413 |
||
1414 |
(sdkTop := SDKTop) isNil ifTrue:[ |
|
1415 |
sdkTop := #( |
|
1416 |
'C:\Program Files\Microsoft SDKs\Windows\v6.0A' |
|
1417 |
) detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] ifNone:nil. |
|
1418 |
]. |
|
1419 |
(sdkTop notNil and:[sdkTop asFilename exists]) ifTrue:[ |
|
1420 |
STCCompilationIncludes := STCCompilationIncludes,' -I',sdkTop,'\include'. |
|
1421 |
]. |
|
1422 |
LibDirectory := topDir,'\libvc'. |
|
1423 |
LinkArgs := '-L',topDir,'\libvc'. |
|
1424 |
LinkArgs := LinkArgs,' -LC:\Borland\bcc55\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1425 |
CCPath := vcTop,'\bin\cl.exe'. |
|
1426 |
LinkCommand := 'ilink32'. |
|
1427 |
MakeCommand := 'vcmake'. |
|
1428 |
CCCompilationOptions := '/nologo /ZI /w /GF /EHsc /FR.\objvc\'. |
|
1429 |
] ifFalse:[ |
|
1430 |
"/ add definitions for lcc, mingc etc. |
|
1431 |
STCCompilationIncludes := STCCompilationIncludes,' -IC:\Borland\xxxxx\Include'. |
|
1432 |
LibDirectory := topDir,'\libbc'. |
|
1433 |
LinkArgs := '-L',topDir,'\libbc'. |
|
1434 |
LinkArgs := LinkArgs,' -LC:\Borland\xxxxx\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1435 |
]. |
|
1668 | 1436 |
]. |
1658 | 1437 |
STCCompilationDefines := '-DWIN32'. |
1438 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
2625 | 1439 |
(topDir,'\stc\stc.exe') asFilename exists ifTrue:[ |
1440 |
STCPath := (topDir,'\stc\stc.exe'). |
|
2624 | 1441 |
] ifFalse:[ |
1442 |
STCPath := 'stc.exe'. |
|
1443 |
]. |
|
1658 | 1444 |
LibPath := ''. |
1660
c999eda0067a
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
1658
diff
changeset
|
1445 |
SearchedLibraries := #('import32.lib'). |
2061 | 1446 |
"/ SearchedLibraries := #('import32.lib' 'glu32.lib' 'opengl32.lib'). |
1658 | 1447 |
] ifFalse:[ |
2625 | 1448 |
STCCompilationIncludes := '-I',topDir,'/include'. |
1658 | 1449 |
STCCompilationDefines := ''. |
1450 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
2625 | 1451 |
STCPath := topDir,'/stc/stc'. |
2652
6c326d458be5
changed: #initializeSTCFlagsForTopDirectory:
Stefan Vogel <sv@exept.de>
parents:
2645
diff
changeset
|
1452 |
CCCompilationOptions := '-O -m32'. |
2011 | 1453 |
ParserFlags useGnuC ifTrue:[ |
1668 | 1454 |
CCPath := 'gcc' |
1455 |
] ifFalse:[ |
|
1456 |
CCPath := 'cc' |
|
1457 |
]. |
|
2652
6c326d458be5
changed: #initializeSTCFlagsForTopDirectory:
Stefan Vogel <sv@exept.de>
parents:
2645
diff
changeset
|
1458 |
LinkArgs := '-m32'. |
2655
646f8e5fd239
changed: #initializeSTCFlagsForTopDirectory:
Stefan Vogel <sv@exept.de>
parents:
2652
diff
changeset
|
1459 |
LinkSharedArgs := '-shared -m32'. |
2652
6c326d458be5
changed: #initializeSTCFlagsForTopDirectory:
Stefan Vogel <sv@exept.de>
parents:
2645
diff
changeset
|
1460 |
LinkCommand := CCPath. |
1658 | 1461 |
LibPath := ''. |
1660
c999eda0067a
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
1658
diff
changeset
|
1462 |
SearchedLibraries := #(). |
1814 | 1463 |
MakeCommand := 'make'. |
1658 | 1464 |
]. |
1465 |
||
1634 | 1466 |
" |
2625 | 1467 |
ParserFlags initializeSTCFlagsForTopDirectory:'../..' |
1634 | 1468 |
" |
1773 | 1469 |
|
1814 | 1470 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
2625 | 1471 |
"Created: / 06-08-2011 / 19:47:47 / cg" |
1634 | 1472 |
! ! |
1473 |
||
2685 | 1474 |
!ParserFlags methodsFor:'accessing'! |
1475 |
||
1476 |
allowAssignmentToBlockArgument |
|
1477 |
^ allowAssignmentToBlockArgument |
|
1478 |
! |
|
1479 |
||
1480 |
allowAssignmentToBlockArgument:something |
|
1481 |
allowAssignmentToBlockArgument := something. |
|
1482 |
! |
|
1483 |
||
1484 |
allowAssignmentToMethodArgument |
|
1485 |
^ allowAssignmentToMethodArgument |
|
1486 |
! |
|
1487 |
||
1488 |
allowAssignmentToMethodArgument:something |
|
1489 |
allowAssignmentToMethodArgument := something. |
|
1490 |
! |
|
1491 |
||
1492 |
allowAssignmentToPoolVariable |
|
1493 |
^ allowAssignmentToPoolVariable |
|
1494 |
! |
|
1495 |
||
1496 |
allowAssignmentToPoolVariable:something |
|
1497 |
allowAssignmentToPoolVariable := something. |
|
1498 |
! ! |
|
1499 |
||
1658 | 1500 |
!ParserFlags methodsFor:'accessing-compilation control'! |
1501 |
||
1668 | 1502 |
allowExtensionsToPrivateClasses |
1503 |
^ allowExtensionsToPrivateClasses |
|
1504 |
! |
|
1505 |
||
1506 |
allowExtensionsToPrivateClasses:aBoolean |
|
1507 |
allowExtensionsToPrivateClasses := aBoolean |
|
1508 |
! |
|
1509 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1510 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1511 |
^ allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1512 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1513 |
"Created: / 16-11-2006 / 14:24:54 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1514 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1515 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1516 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1517 |
allowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1518 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1519 |
"Created: / 16-11-2006 / 14:24:56 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1520 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1521 |
|
1658 | 1522 |
arraysAreImmutable |
1523 |
^ arraysAreImmutable |
|
1524 |
! |
|
1525 |
||
1526 |
arraysAreImmutable:aBoolean |
|
1527 |
arraysAreImmutable := aBoolean. |
|
1528 |
! |
|
1529 |
||
1717
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1530 |
flattenVisualWorksNamespaces |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1531 |
^ true |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1532 |
! |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1533 |
|
1658 | 1534 |
stringsAreImmutable |
1535 |
^ stringsAreImmutable |
|
1536 |
! |
|
1537 |
||
1538 |
stringsAreImmutable:aBoolean |
|
1539 |
stringsAreImmutable := aBoolean. |
|
1540 |
! ! |
|
1541 |
||
1542 |
!ParserFlags methodsFor:'accessing-stc compilation control'! |
|
1543 |
||
1544 |
ccCompilationOptions |
|
1668 | 1545 |
^ ccCompilationOptions ? '' |
1658 | 1546 |
! |
1547 |
||
1548 |
ccCompilationOptions:something |
|
1549 |
ccCompilationOptions := something. |
|
1550 |
! |
|
1551 |
||
1552 |
ccPath |
|
1553 |
^ ccPath |
|
1554 |
! |
|
1555 |
||
1556 |
ccPath:something |
|
1557 |
ccPath := something. |
|
1558 |
! |
|
1559 |
||
1560 |
implicitSelfSends |
|
1561 |
^ implicitSelfSends |
|
1562 |
! |
|
1563 |
||
1564 |
implicitSelfSends:aBoolean |
|
1565 |
implicitSelfSends := aBoolean. |
|
1566 |
! |
|
1567 |
||
1568 |
libPath |
|
1569 |
^ libPath |
|
1570 |
! |
|
1571 |
||
1572 |
libPath:aString |
|
1573 |
libPath := aString |
|
1574 |
! |
|
1575 |
||
1576 |
linkArgs |
|
1577 |
^ linkArgs |
|
1578 |
! |
|
1579 |
||
1580 |
linkArgs:aString |
|
1581 |
linkArgs := aString |
|
1582 |
! |
|
1583 |
||
1584 |
linkCommand |
|
1585 |
^ linkCommand |
|
1586 |
! |
|
1587 |
||
1588 |
linkCommand:aString |
|
1589 |
linkCommand := aString |
|
1590 |
! |
|
1591 |
||
1898 | 1592 |
linkSharedArgs |
1593 |
^ linkSharedArgs |
|
1594 |
! |
|
1595 |
||
1596 |
linkSharedArgs:aString |
|
1597 |
linkSharedArgs := aString |
|
1598 |
! |
|
1599 |
||
1658 | 1600 |
searchedLibraries |
1601 |
^ searchedLibraries |
|
1602 |
! |
|
1603 |
||
1604 |
searchedLibraries:aString |
|
1605 |
searchedLibraries := aString |
|
1606 |
! |
|
1607 |
||
1608 |
stcCompilation |
|
1609 |
^ stcCompilation |
|
1610 |
! |
|
1611 |
||
1612 |
stcCompilation:something |
|
1613 |
stcCompilation := something. |
|
1614 |
! |
|
1615 |
||
1616 |
stcCompilationDefines |
|
1617 |
^ stcCompilationDefines |
|
1618 |
! |
|
1619 |
||
1620 |
stcCompilationDefines:something |
|
1621 |
stcCompilationDefines := something. |
|
1622 |
! |
|
1623 |
||
1624 |
stcCompilationIncludes |
|
1625 |
^ stcCompilationIncludes |
|
1626 |
! |
|
1627 |
||
1628 |
stcCompilationIncludes:something |
|
1629 |
stcCompilationIncludes := something. |
|
1630 |
! |
|
1631 |
||
1632 |
stcCompilationOptions |
|
1633 |
^ stcCompilationOptions |
|
1634 |
! |
|
1635 |
||
1636 |
stcCompilationOptions:something |
|
1637 |
stcCompilationOptions := something. |
|
1638 |
! |
|
1639 |
||
1640 |
stcKeepCIntermediate |
|
2701
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
1641 |
^ stcKeepCIntermediate ? false |
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
1642 |
|
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
1643 |
"Modified: / 16-09-2011 / 19:56:22 / cg" |
1658 | 1644 |
! |
1645 |
||
1646 |
stcKeepCIntermediate:something |
|
1647 |
stcKeepCIntermediate := something. |
|
1648 |
! |
|
1649 |
||
1650 |
stcKeepOIntermediate |
|
2702 | 1651 |
^ stcKeepOIntermediate ? false |
1652 |
||
1653 |
"Modified: / 16-09-2011 / 19:56:52 / cg" |
|
1658 | 1654 |
! |
1655 |
||
1656 |
stcKeepOIntermediate:something |
|
1657 |
stcKeepOIntermediate := something. |
|
1658 |
! |
|
1659 |
||
2490 | 1660 |
stcKeepSIntermediate |
1661 |
^ false |
|
1662 |
"/ ^ true |
|
1663 |
! |
|
1664 |
||
1658 | 1665 |
stcKeepSTIntermediate |
2702 | 1666 |
^ stcKeepSTIntermediate ? false |
1667 |
||
1668 |
"Modified: / 16-09-2011 / 19:57:11 / cg" |
|
1658 | 1669 |
! |
1670 |
||
1671 |
stcKeepSTIntermediate:something |
|
1672 |
stcKeepSTIntermediate := something. |
|
1673 |
! |
|
1674 |
||
1675 |
stcModulePath |
|
1676 |
^ stcModulePath |
|
1677 |
! |
|
1678 |
||
1679 |
stcModulePath:something |
|
1680 |
stcModulePath := something. |
|
1681 |
! |
|
1682 |
||
1683 |
stcPath |
|
1684 |
^ stcPath |
|
1685 |
! |
|
1686 |
||
1687 |
stcPath:something |
|
1688 |
stcPath := something. |
|
1689 |
! ! |
|
1690 |
||
1691 |
!ParserFlags methodsFor:'accessing-syntax-control'! |
|
1634 | 1692 |
|
1693 |
allowArrayIndexSyntaxExtension |
|
1694 |
^ allowArrayIndexSyntaxExtension |
|
1695 |
! |
|
1696 |
||
1697 |
allowArrayIndexSyntaxExtension:aBoolean |
|
1698 |
allowArrayIndexSyntaxExtension := aBoolean. |
|
1699 |
! |
|
1700 |
||
2306 | 1701 |
allowCaretAsBinop |
1702 |
^ allowCaretAsBinop |
|
1703 |
! |
|
1704 |
||
1705 |
allowCaretAsBinop:aBoolean |
|
1706 |
allowCaretAsBinop := aBoolean. |
|
1707 |
! |
|
1708 |
||
2312 | 1709 |
allowCharacterEscapes |
1710 |
^ allowCharacterEscapes |
|
1711 |
! |
|
1712 |
||
1713 |
allowCharacterEscapes:aBoolean |
|
1714 |
allowCharacterEscapes := aBoolean. |
|
1715 |
! |
|
1716 |
||
1634 | 1717 |
allowDollarInIdentifier |
1718 |
^ allowDollarInIdentifier |
|
1719 |
! |
|
1720 |
||
1721 |
allowDollarInIdentifier:aBoolean |
|
1722 |
allowDollarInIdentifier := aBoolean. |
|
1723 |
! |
|
1724 |
||
1725 |
allowDolphinExtensions |
|
1726 |
^ allowDolphinExtensions |
|
1727 |
! |
|
1728 |
||
1729 |
allowDolphinExtensions:aBoolean |
|
1730 |
allowDolphinExtensions := aBoolean |
|
1731 |
! |
|
1732 |
||
1733 |
allowDomainVariables |
|
1734 |
^ allowDomainVariables |
|
1735 |
! |
|
1736 |
||
1737 |
allowDomainVariables:aBoolean |
|
1738 |
allowDomainVariables := aBoolean. |
|
1739 |
! |
|
1740 |
||
1950 | 1741 |
allowEmptyStatements |
1742 |
^ allowEmptyStatements ? false |
|
1743 |
||
1744 |
"Created: / 20-11-2006 / 13:56:14 / cg" |
|
1745 |
! |
|
1746 |
||
1747 |
allowEmptyStatements:aBoolean |
|
1748 |
allowEmptyStatements := aBoolean. |
|
1749 |
||
1750 |
"Created: / 20-11-2006 / 14:26:48 / cg" |
|
1751 |
! |
|
1752 |
||
1634 | 1753 |
allowExtendedBinarySelectors |
1754 |
^ allowExtendedBinarySelectors |
|
1755 |
! |
|
1756 |
||
1757 |
allowExtendedBinarySelectors:aBoolean |
|
1758 |
allowExtendedBinarySelectors := aBoolean. |
|
1759 |
! |
|
1760 |
||
1761 |
allowExtendedSTXSyntax |
|
1762 |
^ allowExtendedSTXSyntax |
|
1763 |
! |
|
1764 |
||
1765 |
allowExtendedSTXSyntax:something |
|
1766 |
allowExtendedSTXSyntax := something. |
|
1767 |
! |
|
1768 |
||
1769 |
allowFixedPointLiterals |
|
1770 |
^ allowFixedPointLiterals |
|
1771 |
! |
|
1772 |
||
1773 |
allowFixedPointLiterals:something |
|
1774 |
allowFixedPointLiterals := something. |
|
1775 |
! |
|
1776 |
||
1777 |
allowFunctionCallSyntaxForBlockEvaluation |
|
1778 |
^ allowFunctionCallSyntaxForBlockEvaluation |
|
1779 |
! |
|
1780 |
||
1781 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
1782 |
allowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
1783 |
! |
|
1784 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1785 |
allowHashAsBinarySelector |
1713 | 1786 |
^ allowHashAsBinarySelector |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1787 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1788 |
|
1634 | 1789 |
allowLazyValueExtension |
1790 |
^ allowLazyValueExtension |
|
1791 |
! |
|
1792 |
||
1793 |
allowLazyValueExtension:something |
|
1794 |
allowLazyValueExtension := something. |
|
1795 |
! |
|
1796 |
||
1797 |
allowLiteralNameSpaceSymbols |
|
1798 |
^ allowLiteralNameSpaceSymbols |
|
1799 |
! |
|
1800 |
||
1801 |
allowLiteralNameSpaceSymbols:aBoolean |
|
1802 |
allowLiteralNameSpaceSymbols := aBoolean |
|
1803 |
! |
|
1804 |
||
1805 |
allowLocalVariableDeclarationWithInitializerExpression |
|
1806 |
^ allowLocalVariableDeclarationWithInitializerExpression |
|
1807 |
! |
|
1808 |
||
1809 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
1810 |
allowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
1811 |
! |
|
1812 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1813 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1814 |
^ allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1815 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1816 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1817 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1818 |
allowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1819 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1820 |
|
1634 | 1821 |
allowOldStyleAssignment |
1822 |
^ allowOldStyleAssignment |
|
1823 |
! |
|
1824 |
||
1825 |
allowOldStyleAssignment:aBoolean |
|
1826 |
allowOldStyleAssignment := aBoolean |
|
1827 |
! |
|
1828 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1829 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1830 |
^ allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1831 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1832 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1833 |
allowPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1834 |
allowPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1835 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1836 |
|
1634 | 1837 |
allowQualifiedNames |
1838 |
^ allowQualifiedNames |
|
1839 |
! |
|
1840 |
||
1841 |
allowQualifiedNames:aBoolean |
|
1842 |
allowQualifiedNames := aBoolean. |
|
1843 |
! |
|
1844 |
||
1845 |
allowReservedWordsAsSelectors |
|
1846 |
^ allowReservedWordsAsSelectors |
|
1847 |
! |
|
1848 |
||
1849 |
allowReservedWordsAsSelectors:aBoolean |
|
1850 |
allowReservedWordsAsSelectors := aBoolean. |
|
1851 |
! |
|
1852 |
||
1703 | 1853 |
allowSTVExtensions |
1854 |
"return true, if support for ST/V extensions is enabled." |
|
1855 |
||
1856 |
^ allowSTVExtensions |
|
1857 |
! |
|
1858 |
||
1701 | 1859 |
allowSTVPrimitives |
1860 |
"return true, if support for ST/V primitives is enabled." |
|
1861 |
||
1862 |
^ allowSTVPrimitives |
|
1863 |
! |
|
1864 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1865 |
allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1866 |
^ allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1867 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1868 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1869 |
allowSTXEOLComments:aBoolean |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1870 |
allowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1871 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1872 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1873 |
ParserFlags allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1874 |
ParserFlags allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1875 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1876 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1877 |
|
2494 | 1878 |
allowSTXFunctions |
1879 |
^ false |
|
1880 |
||
1881 |
"Created: / 23-05-2011 / 17:43:45 / cg" |
|
1882 |
! |
|
1883 |
||
1634 | 1884 |
allowSqueakExtensions |
1885 |
"return true, if support for squeak extensions |
|
1886 |
computed arrays { .., } |
|
1887 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1888 |
is enabled." |
|
1889 |
||
1890 |
^ allowSqueakExtensions |
|
1891 |
! |
|
1892 |
||
1893 |
allowSqueakExtensions:aBoolean |
|
1894 |
"this allows turning on/off support for squeak extensions: |
|
1895 |
computed arrays { .., } |
|
1896 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1897 |
" |
|
1898 |
||
1899 |
allowSqueakExtensions := aBoolean |
|
1900 |
! |
|
1901 |
||
1689 | 1902 |
allowSqueakPrimitives |
1903 |
"return true, if support for squeak primitives is enabled." |
|
1904 |
||
1905 |
^ allowSqueakPrimitives |
|
1906 |
! |
|
1907 |
||
1908 |
allowSqueakPrimitives:aBoolean |
|
1909 |
"this allows turning on/off support for squeak primitives" |
|
1910 |
||
1911 |
allowSqueakPrimitives := aBoolean |
|
1912 |
! |
|
1913 |
||
2313 | 1914 |
allowStringEscapes |
1915 |
^ allowStringEscapes |
|
1916 |
! |
|
1917 |
||
1918 |
allowStringEscapes:aBoolean |
|
1919 |
allowStringEscapes := aBoolean. |
|
1920 |
! |
|
1921 |
||
1634 | 1922 |
allowUnderscoreInIdentifier |
1923 |
^ allowUnderscoreInIdentifier |
|
1924 |
! |
|
1925 |
||
1926 |
allowUnderscoreInIdentifier:aBoolean |
|
1927 |
allowUnderscoreInIdentifier := aBoolean |
|
1928 |
! |
|
1929 |
||
2310 | 1930 |
allowUnicodeCharacters |
1931 |
^ allowUnicodeCharacters |
|
1932 |
! |
|
1933 |
||
1934 |
allowUnicodeCharacters:aBoolean |
|
1935 |
allowUnicodeCharacters := aBoolean |
|
1936 |
! |
|
1937 |
||
2307 | 1938 |
allowUnicodeStrings |
1939 |
^ allowUnicodeStrings |
|
1940 |
! |
|
1941 |
||
1942 |
allowUnicodeStrings:aBoolean |
|
1943 |
allowUnicodeStrings := aBoolean |
|
1944 |
! |
|
1945 |
||
1634 | 1946 |
allowVariableReferences |
1947 |
^ allowVariableReferences |
|
1948 |
! |
|
1949 |
||
1950 |
allowVariableReferences:aBoolean |
|
1951 |
allowVariableReferences := aBoolean. |
|
1952 |
! |
|
1953 |
||
1655 | 1954 |
allowVisualAgeESSymbolLiterals |
1955 |
^ allowVisualAgeESSymbolLiterals |
|
1956 |
! |
|
1957 |
||
1958 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
1959 |
allowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 1960 |
! |
1961 |
||
1962 |
allowVisualAgePrimitives |
|
1963 |
"return true, if support for V'Age primitives is enabled." |
|
1964 |
||
1965 |
^ allowVisualAgePrimitives |
|
1966 |
! |
|
1967 |
||
1968 |
allowVisualAgePrimitives:aBoolean |
|
1969 |
"this allows turning on/off support for V'Age primitives" |
|
1970 |
||
1971 |
allowVisualAgePrimitives := aBoolean |
|
1773 | 1972 |
! |
1973 |
||
1974 |
allowVisualWorksMethodAnnotations |
|
1975 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
1976 |
||
1977 |
^ allowVisualWorksMethodAnnotations |
|
1978 |
||
1979 |
"Created: / 07-07-2006 / 15:48:30 / cg" |
|
1980 |
! |
|
1981 |
||
1982 |
allowVisualWorksMethodAnnotations:aBoolean |
|
1983 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
1984 |
||
1985 |
^ allowVisualWorksMethodAnnotations := aBoolean |
|
1986 |
||
1987 |
"Created: / 07-07-2006 / 15:49:03 / cg" |
|
1658 | 1988 |
! ! |
1634 | 1989 |
|
1658 | 1990 |
!ParserFlags methodsFor:'accessing-warning-control'! |
1634 | 1991 |
|
1652 | 1992 |
warnAboutBadComments |
1993 |
^ warnAboutBadComments |
|
1994 |
! |
|
1995 |
||
1996 |
warnAboutBadComments:aBoolean |
|
1997 |
warnAboutBadComments := aBoolean. |
|
1998 |
! |
|
1999 |
||
1811 | 2000 |
warnAboutNonLowercaseLocalVariableNames |
2001 |
^ warnAboutNonLowercaseLocalVariableNames |
|
1740 | 2002 |
! |
2003 |
||
1811 | 2004 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
2005 |
warnAboutNonLowercaseLocalVariableNames := aBoolean. |
|
1740 | 2006 |
! |
2007 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2008 |
warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2009 |
^ warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2010 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2011 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2012 |
warnAboutPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2013 |
warnAboutPeriodInSymbol := aBoolean. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2014 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2015 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2016 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2017 |
^ warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2018 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2019 |
"Created: / 16-11-2006 / 14:24:38 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2020 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2021 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2022 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2023 |
warnAboutPossibleSTCCompilationProblems := aBoolean. |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2024 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2025 |
"Created: / 16-11-2006 / 14:24:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2026 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2027 |
|
2121 | 2028 |
warnAboutPossiblyUnimplementedSelectors |
2029 |
^ warnAboutPossiblyUnimplementedSelectors |
|
2030 |
! |
|
2031 |
||
2032 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
2033 |
warnAboutPossiblyUnimplementedSelectors := aBoolean. |
|
2034 |
! |
|
2035 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2036 |
warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2037 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2038 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2039 |
^ warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2040 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2041 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2042 |
warnAboutReferenceToPrivateClass:aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2043 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2044 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2045 |
warnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2046 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2047 |
|
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2048 |
warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2049 |
^ warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2050 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2051 |
|
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2052 |
warnAboutShortLocalVariableNames:aBoolean |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2053 |
warnAboutShortLocalVariableNames := aBoolean. |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2054 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2055 |
|
2738 | 2056 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
2739 | 2057 |
^ warnAboutUnknownCharacterEscapesInJavaScriptStringConstant ? false |
2738 | 2058 |
|
2059 |
"Created: / 04-10-2011 / 19:51:19 / cg" |
|
2060 |
! |
|
2061 |
||
2062 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean |
|
2063 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean. |
|
2064 |
||
2065 |
"Created: / 04-10-2011 / 19:51:27 / cg" |
|
2066 |
! |
|
2067 |
||
1634 | 2068 |
warnAboutVariableNameConventions |
2069 |
^ warnAboutVariableNameConventions |
|
2070 |
! |
|
2071 |
||
2072 |
warnAboutVariableNameConventions:aBoolean |
|
2073 |
warnAboutVariableNameConventions := aBoolean. |
|
2074 |
! |
|
2075 |
||
2076 |
warnAboutWrongVariableNames |
|
2077 |
^ warnAboutWrongVariableNames |
|
2078 |
! |
|
2079 |
||
2080 |
warnAboutWrongVariableNames:aBoolean |
|
2081 |
warnAboutWrongVariableNames := aBoolean. |
|
2082 |
! |
|
2083 |
||
2084 |
warnCommonMistakes |
|
2085 |
^ warnCommonMistakes |
|
2086 |
! |
|
2087 |
||
2088 |
warnCommonMistakes:aBoolean |
|
2089 |
warnCommonMistakes := aBoolean. |
|
2090 |
! |
|
2091 |
||
2092 |
warnDollarInIdentifier |
|
2093 |
^ warnDollarInIdentifier |
|
2094 |
! |
|
2095 |
||
2096 |
warnDollarInIdentifier:aBoolean |
|
2097 |
warnDollarInIdentifier := aBoolean. |
|
2098 |
! |
|
2099 |
||
1638 | 2100 |
warnHiddenVariables |
2101 |
^ warnHiddenVariables |
|
2102 |
! |
|
2103 |
||
2104 |
warnHiddenVariables:aBoolean |
|
2465 | 2105 |
"controls generation of warning messages about hiding variables by locals" |
2106 |
||
1638 | 2107 |
warnHiddenVariables := aBoolean. |
2465 | 2108 |
|
2109 |
"Modified: / 30-11-2010 / 15:00:55 / cg" |
|
1638 | 2110 |
! |
2111 |
||
1682 | 2112 |
warnInconsistentReturnValues |
2113 |
^ warnInconsistentReturnValues |
|
2114 |
! |
|
2115 |
||
2116 |
warnInconsistentReturnValues:aBoolean |
|
2117 |
warnInconsistentReturnValues := aBoolean. |
|
2118 |
! |
|
2119 |
||
1634 | 2120 |
warnOldStyleAssignment |
2121 |
^ warnOldStyleAssignment |
|
2122 |
! |
|
2123 |
||
2124 |
warnOldStyleAssignment:aBoolean |
|
2125 |
warnOldStyleAssignment := aBoolean. |
|
2126 |
! |
|
2127 |
||
2787 | 2128 |
warnPlausibilityChecks |
2129 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
2130 |
||
2131 |
^ warnPlausibilityChecks |
|
2132 |
||
2133 |
"Created: / 19-01-2012 / 10:38:54 / cg" |
|
2134 |
! |
|
2135 |
||
2136 |
warnPlausibilityChecks:aBoolean |
|
2137 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
2138 |
||
2139 |
warnPlausibilityChecks := aBoolean |
|
2140 |
||
2141 |
"Created: / 19-01-2012 / 10:39:02 / cg" |
|
2142 |
! |
|
2143 |
||
1634 | 2144 |
warnPossibleIncompatibilities |
2057 | 2145 |
"holds true, if possible incompatibilities (with other ST systems) |
2146 |
are to be warned about" |
|
2147 |
||
1634 | 2148 |
^ warnPossibleIncompatibilities |
2149 |
! |
|
2150 |
||
2151 |
warnPossibleIncompatibilities:aBoolean |
|
2057 | 2152 |
"holds true, if possible incompatibilities (with other ST systems) |
2153 |
are to be warned about" |
|
2154 |
||
1634 | 2155 |
warnPossibleIncompatibilities := aBoolean. |
2156 |
! |
|
2157 |
||
2158 |
warnST80Directives |
|
2159 |
^ warnST80Directives |
|
2160 |
! |
|
2161 |
||
2476 | 2162 |
warnST80Directives:aBoolean |
2163 |
warnST80Directives := aBoolean. |
|
2164 |
||
2165 |
"Modified: / 30-01-2011 / 13:01:06 / cg" |
|
1634 | 2166 |
! |
2167 |
||
2168 |
warnSTXHereExtensionUsed |
|
2169 |
^ warnSTXHereExtensionUsed |
|
2170 |
! |
|
2171 |
||
2172 |
warnSTXHereExtensionUsed:aBoolean |
|
2173 |
warnSTXHereExtensionUsed := aBoolean. |
|
2174 |
! |
|
2175 |
||
2176 |
warnSTXNameSpaceUse |
|
2177 |
^ warnSTXNameSpaceUse |
|
2178 |
! |
|
2179 |
||
2180 |
warnSTXNameSpaceUse:aBoolean |
|
2181 |
warnSTXNameSpaceUse := aBoolean. |
|
2182 |
! |
|
2183 |
||
2184 |
warnSTXSpecialComment |
|
2185 |
^ warnSTXSpecialComment |
|
2186 |
! |
|
2187 |
||
2188 |
warnSTXSpecialComment:aBoolean |
|
2189 |
warnSTXSpecialComment := aBoolean. |
|
2190 |
! |
|
2191 |
||
2192 |
warnUndeclared |
|
2193 |
^ warnUndeclared |
|
2194 |
! |
|
2195 |
||
2196 |
warnUndeclared:aBoolean |
|
2197 |
warnUndeclared := aBoolean. |
|
2198 |
! |
|
2199 |
||
2200 |
warnUnderscoreInIdentifier |
|
2201 |
^ warnUnderscoreInIdentifier |
|
2202 |
! |
|
2203 |
||
2204 |
warnUnderscoreInIdentifier:aBoolean |
|
2205 |
warnUnderscoreInIdentifier := aBoolean. |
|
2206 |
! |
|
2207 |
||
2208 |
warnUnusedVars |
|
2209 |
^ warnUnusedVars |
|
2210 |
! |
|
2211 |
||
2212 |
warnUnusedVars:aBoolean |
|
2213 |
warnUnusedVars := aBoolean. |
|
1662 | 2214 |
! |
2215 |
||
2216 |
warnings |
|
2477 | 2217 |
^ warnings ? true |
2218 |
||
2219 |
"Modified: / 30-01-2011 / 13:05:48 / cg" |
|
1662 | 2220 |
! |
2221 |
||
2476 | 2222 |
warnings:aBoolean |
2223 |
warnings := aBoolean. |
|
2224 |
||
2225 |
"Modified: / 30-01-2011 / 13:00:51 / cg" |
|
1634 | 2226 |
! ! |
2227 |
||
2228 |
!ParserFlags methodsFor:'initialization'! |
|
2229 |
||
2230 |
initialize |
|
1662 | 2231 |
warnings := Warnings. |
1634 | 2232 |
warnUndeclared := WarnUndeclared. |
2233 |
warnUnusedVars := WarnUnusedVars. |
|
2234 |
warnST80Directives := WarnST80Directives. |
|
2235 |
warnSTXSpecialComment := WarnSTXSpecials. |
|
2236 |
warnSTXNameSpaceUse := WarnSTXSpecials. |
|
2237 |
warnSTXHereExtensionUsed := WarnSTXSpecials. |
|
2238 |
warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier. |
|
2239 |
warnDollarInIdentifier := WarnDollarInIdentifier. |
|
2240 |
warnOldStyleAssignment := WarnOldStyleAssignment. |
|
2241 |
warnCommonMistakes := WarnCommonMistakes. |
|
2242 |
warnPossibleIncompatibilities := WarnPossibleIncompatibilities. |
|
2243 |
warnAboutVariableNameConventions := WarnAboutVariableNameConventions. |
|
2244 |
warnAboutWrongVariableNames := WarnAboutWrongVariableNames. |
|
1652 | 2245 |
warnAboutBadComments := WarnAboutBadComments. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2246 |
warnAboutReferenceToPrivateClass := WarnAboutReferenceToPrivateClass. |
1638 | 2247 |
warnHiddenVariables := WarnHiddenVariables. |
1682 | 2248 |
warnInconsistentReturnValues := WarnInconsistentReturnValues. |
1811 | 2249 |
warnAboutNonLowercaseLocalVariableNames := WarnAboutNonLowercaseLocalVariableNames. |
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2250 |
warnAboutShortLocalVariableNames := WarnAboutShortLocalVariableNames. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2251 |
warnAboutPossibleSTCCompilationProblems := WarnAboutPossibleSTCCompilationProblems. |
2121 | 2252 |
warnAboutPossiblyUnimplementedSelectors := WarnAboutPossiblyUnimplementedSelectors. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2253 |
warnAboutPeriodInSymbol := WarnAboutPeriodInSymbol. |
2738 | 2254 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant. |
2787 | 2255 |
warnPlausibilityChecks := WarnPlausibilityChecks. |
1634 | 2256 |
|
2257 |
allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier. |
|
2258 |
allowDollarInIdentifier := AllowDollarInIdentifier. |
|
2259 |
allowOldStyleAssignment := AllowOldStyleAssignment. |
|
2260 |
allowSqueakExtensions := AllowSqueakExtensions. |
|
2261 |
allowDolphinExtensions := AllowDolphinExtensions. |
|
2262 |
allowLiteralNameSpaceSymbols := AllowLiteralNameSpaceSymbols. |
|
2263 |
allowExtendedBinarySelectors := AllowExtendedBinarySelectors. |
|
2306 | 2264 |
allowCaretAsBinop := AllowCaretAsBinop. |
1634 | 2265 |
allowFunctionCallSyntaxForBlockEvaluation := AllowFunctionCallSyntaxForBlockEvaluation. |
2266 |
allowLocalVariableDeclarationWithInitializerExpression := AllowLocalVariableDeclarationWithInitializerExpression. |
|
2267 |
allowDomainVariables := AllowDomainVariables. |
|
2268 |
allowArrayIndexSyntaxExtension := AllowArrayIndexSyntaxExtension. |
|
2269 |
allowReservedWordsAsSelectors := AllowReservedWordsAsSelectors. |
|
2270 |
allowVariableReferences := AllowVariableReferences. |
|
2271 |
allowLazyValueExtension := AllowLazyValueExtension. |
|
2272 |
allowFixedPointLiterals := AllowFixedPointLiterals. |
|
2273 |
allowExtendedSTXSyntax := AllowExtendedSTXSyntax. |
|
2274 |
allowQualifiedNames := AllowQualifiedNames. |
|
1655 | 2275 |
allowVisualAgeESSymbolLiterals := AllowVisualAgeESSymbolLiterals. |
1668 | 2276 |
allowExtensionsToPrivateClasses := AllowExtensionsToPrivateClasses. |
1689 | 2277 |
allowVisualAgePrimitives := AllowVisualAgePrimitives. |
2278 |
allowSqueakPrimitives := AllowSqueakPrimitives. |
|
1700 | 2279 |
allowSTVPrimitives := AllowSTVPrimitives. |
1702 | 2280 |
allowSTVExtensions := AllowSTVExtensions. |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2281 |
allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2282 |
allowHashAsBinarySelector := AllowHashAsBinarySelector. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2283 |
allowSTXEOLComments := AllowSTXEOLComments. |
1773 | 2284 |
allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2285 |
allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems. |
1950 | 2286 |
allowEmptyStatements := AllowEmptyStatements. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2287 |
allowPeriodInSymbol := AllowPeriodInSymbol. |
2311 | 2288 |
"/ these are only supported in the new compiler |
2307 | 2289 |
allowUnicodeStrings := AllowUnicodeStrings. |
2310 | 2290 |
allowUnicodeCharacters := AllowUnicodeCharacters. |
2311 | 2291 |
allowCharacterEscapes := AllowCharacterEscapes. |
2313 | 2292 |
allowStringEscapes := AllowStringEscapes. |
2685 | 2293 |
allowAssignmentToBlockArgument := AllowAssignmentToBlockArgument. |
2294 |
allowAssignmentToMethodArgument := AllowAssignmentToMethodArgument. |
|
2295 |
allowAssignmentToPoolVariable := AllowAssignmentToPoolVariable. |
|
1634 | 2296 |
|
2297 |
arraysAreImmutable := ArraysAreImmutable ? true. |
|
2298 |
stringsAreImmutable := StringsAreImmutable ? true. |
|
2299 |
implicitSelfSends := ImplicitSelfSends ? false. |
|
2300 |
||
1658 | 2301 |
stcKeepCIntermediate := STCKeepCIntermediate. |
2302 |
stcKeepOIntermediate := STCKeepOIntermediate. |
|
2303 |
stcKeepSTIntermediate := STCKeepSTIntermediate. |
|
2304 |
stcModulePath := STCModulePath. |
|
2305 |
stcCompilation := STCCompilation. |
|
2306 |
stcCompilationIncludes := STCCompilationIncludes. |
|
2307 |
stcCompilationDefines := STCCompilationDefines. |
|
2308 |
stcCompilationOptions := STCCompilationOptions. |
|
2309 |
stcPath := STCPath. |
|
2310 |
ccCompilationOptions := CCCompilationOptions. |
|
2311 |
ccPath := CCPath. |
|
2312 |
linkArgs := LinkArgs. |
|
2313 |
linkCommand := LinkCommand. |
|
2314 |
libPath := LibPath. |
|
2315 |
searchedLibraries := SearchedLibraries. |
|
2316 |
||
1634 | 2317 |
" |
2318 |
ParserFlags initialize. |
|
2319 |
self new inspect. |
|
2320 |
" |
|
1773 | 2321 |
|
2787 | 2322 |
"Modified: / 19-01-2012 / 10:39:22 / cg" |
1634 | 2323 |
! ! |
2324 |
||
2325 |
!ParserFlags class methodsFor:'documentation'! |
|
2326 |
||
2327 |
version |
|
2787 | 2328 |
^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.79 2012-01-19 09:39:34 cg Exp $' |
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2329 |
! |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2330 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2331 |
version_CVS |
2787 | 2332 |
^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.79 2012-01-19 09:39:34 cg Exp $' |
1634 | 2333 |
! ! |
2334 |
||
2335 |
ParserFlags initialize! |