author | Claus Gittinger <cg@exept.de> |
Fri, 24 Oct 2008 14:50:36 +0200 | |
changeset 2121 | 69bb3adc78b2 |
parent 2083 | 9e9ee3362d7d |
child 2142 | c39591bd8f9d |
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 |
|
1898 | 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 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
25 |
warnAboutPossibleSTCCompilationProblems |
2121 | 26 |
warnAboutReferenceToPrivateClass warnAboutShortLocalVariableNames |
27 |
warnAboutPossiblyUnimplementedSelectors |
|
28 |
allowLiteralNameSpaceSymbols allowUnderscoreInIdentifier |
|
29 |
allowDollarInIdentifier allowOldStyleAssignment |
|
30 |
allowSqueakExtensions allowDolphinExtensions |
|
31 |
allowExtendedBinarySelectors allowQualifiedNames |
|
32 |
allowFunctionCallSyntaxForBlockEvaluation |
|
1898 | 33 |
allowLocalVariableDeclarationWithInitializerExpression |
34 |
allowDomainVariables allowArrayIndexSyntaxExtension |
|
35 |
allowReservedWordsAsSelectors allowVariableReferences |
|
36 |
allowLazyValueExtension allowFixedPointLiterals |
|
37 |
allowExtendedSTXSyntax allowVisualAgeESSymbolLiterals |
|
38 |
allowExtensionsToPrivateClasses allowSqueakPrimitives |
|
39 |
allowVisualAgePrimitives allowSTVPrimitives allowSTVExtensions |
|
40 |
allowNationalCharactersInIdentifier allowHashAsBinarySelector |
|
1950 | 41 |
allowSTXEOLComments allowEmptyStatements |
42 |
allowVisualWorksMethodAnnotations |
|
43 |
allowPossibleSTCCompilationProblems arraysAreImmutable |
|
44 |
stringsAreImmutable implicitSelfSends stcKeepCIntermediate |
|
45 |
stcKeepOIntermediate stcKeepSTIntermediate stcModulePath |
|
46 |
stcCompilation stcCompilationIncludes stcCompilationDefines |
|
1898 | 47 |
stcCompilationOptions stcPath ccCompilationOptions ccPath |
2121 | 48 |
linkArgs linkSharedArgs linkCommand libPath searchedLibraries' |
1898 | 49 |
classVariableNames:'WarnST80Directives WarnUnusedVars WarnUndeclared |
50 |
WarnAboutWrongVariableNames WarnAboutBadComments |
|
51 |
WarnAboutVariableNameConventions WarnSTXSpecials |
|
52 |
WarnOldStyleAssignment WarnUnderscoreInIdentifier |
|
53 |
WarnCommonMistakes WarnPossibleIncompatibilities |
|
54 |
WarnDollarInIdentifier WarnHiddenVariables |
|
55 |
WarnAboutNonLowercaseLocalVariableNames |
|
1950 | 56 |
WarnInconsistentReturnValues Warnings |
57 |
WarnAboutPossibleSTCCompilationProblems |
|
2121 | 58 |
WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames |
59 |
WarnAboutPossiblyUnimplementedSelectors |
|
1950 | 60 |
AllowUnderscoreInIdentifier |
1898 | 61 |
AllowFunctionCallSyntaxForBlockEvaluation AllowLazyValueExtension |
62 |
AllowVariableReferences AllowReservedWordsAsSelectors |
|
63 |
AllowLocalVariableDeclarationWithInitializerExpression |
|
64 |
AllowArrayIndexSyntaxExtension AllowDomainVariables |
|
65 |
AllowDollarInIdentifier AllowSqueakExtensions AllowQualifiedNames |
|
66 |
AllowDolphinExtensions AllowOldStyleAssignment |
|
67 |
AllowExtendedBinarySelectors AllowExtendedSTXSyntax |
|
68 |
AllowFixedPointLiterals AllowLiteralNameSpaceSymbols |
|
69 |
AllowVisualAgeESSymbolLiterals AllowExtensionsToPrivateClasses |
|
70 |
AllowSqueakPrimitives AllowVisualAgePrimitives AllowSTVPrimitives |
|
71 |
AllowSTVExtensions AllowNationalCharactersInIdentifier |
|
1950 | 72 |
AllowHashAsBinarySelector AllowSTXEOLComments |
73 |
AllowPossibleSTCCompilationProblems AllowEmptyStatements |
|
74 |
AllowVisualWorksMethodAnnotations ArraysAreImmutable |
|
1898 | 75 |
StringsAreImmutable ImplicitSelfSends STCModulePath |
76 |
STCKeepCIntermediate STCKeepOIntermediate STCKeepSTIntermediate |
|
77 |
STCCompilation STCCompilationIncludes STCCompilationDefines |
|
78 |
STCCompilationOptions STCPath CCCompilationOptions CCPath |
|
79 |
LinkArgs LinkSharedArgs LinkCommand LibPath SearchedLibraries |
|
2121 | 80 |
MakeCommand' |
1898 | 81 |
poolDictionaries:'' |
82 |
category:'System-Compiler' |
|
1634 | 83 |
! |
84 |
||
85 |
!ParserFlags class methodsFor:'documentation'! |
|
86 |
||
87 |
copyright |
|
88 |
" |
|
89 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
90 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
91 |
All Rights Reserved |
|
92 |
||
93 |
This software is furnished under a license and may be used |
|
94 |
only in accordance with the terms of that license and with the |
|
95 |
inclusion of the above copyright notice. This software may not |
|
96 |
be provided or otherwise made available to, or used by, any |
|
97 |
other person. No title to or ownership of the software is |
|
98 |
hereby transferred. |
|
99 |
" |
|
100 |
! |
|
101 |
||
102 |
documentation |
|
103 |
" |
|
104 |
compiler flags (used to be defined in Scanner and Parser) have been extracted for easier |
|
105 |
individual-method customization (using ST as scripting). |
|
1711 | 106 |
|
1712 | 107 |
howTo_fileInVSE: |
108 |
ParserFlags allowSTVExtensions:true. |
|
109 |
ParserFlags allowSTVPrimitives:true. |
|
110 |
ParserFlags allowSTXEOLComments:false. |
|
1711 | 111 |
" |
1634 | 112 |
! ! |
113 |
||
114 |
!ParserFlags class methodsFor:'instance creation'! |
|
115 |
||
116 |
new |
|
117 |
^ self basicNew initialize |
|
118 |
! ! |
|
119 |
||
120 |
!ParserFlags class methodsFor:'accessing-compilation control'! |
|
121 |
||
1668 | 122 |
allowExtensionsToPrivateClasses |
123 |
^ AllowExtensionsToPrivateClasses |
|
124 |
! |
|
125 |
||
126 |
allowExtensionsToPrivateClasses:aBoolean |
|
127 |
AllowExtensionsToPrivateClasses := aBoolean |
|
128 |
! |
|
129 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
130 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
131 |
^ AllowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
132 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
133 |
"Created: / 16-11-2006 / 14:31:36 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
134 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
135 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
136 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
137 |
AllowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
138 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
139 |
"Created: / 16-11-2006 / 14:31:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
140 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
141 |
|
1634 | 142 |
arraysAreImmutable |
143 |
"return true if arrays are immutable literals" |
|
144 |
||
145 |
^ ArraysAreImmutable |
|
146 |
! |
|
147 |
||
148 |
arraysAreImmutable:aBoolean |
|
149 |
"turn on/off immutable array literals - default is false for ST-80 compatibilty." |
|
150 |
||
151 |
ArraysAreImmutable := aBoolean. |
|
152 |
||
153 |
" |
|
154 |
can be added to your private.rc file: |
|
155 |
||
156 |
ParserFlags arraysAreImmutable:true |
|
157 |
ParserFlags arraysAreImmutable:false |
|
158 |
" |
|
159 |
! |
|
160 |
||
161 |
implicitSelfSends |
|
162 |
"return true if undefined variables with |
|
163 |
lowercase first character are to be turned |
|
164 |
into implicit self sends" |
|
165 |
||
166 |
^ ImplicitSelfSends |
|
167 |
! |
|
168 |
||
169 |
implicitSelfSends:aBoolean |
|
170 |
"turn on/off implicit self sends" |
|
171 |
||
172 |
ImplicitSelfSends := aBoolean |
|
173 |
||
174 |
" |
|
175 |
Compiler implicitSelfSends:true |
|
176 |
Compiler implicitSelfSends:false |
|
177 |
" |
|
178 |
! |
|
179 |
||
180 |
stringsAreImmutable |
|
181 |
"return true if strings are immutable literals" |
|
182 |
||
183 |
^ StringsAreImmutable |
|
184 |
||
185 |
"Created: / 3.8.1998 / 14:53:25 / cg" |
|
186 |
! |
|
187 |
||
188 |
stringsAreImmutable:aBoolean |
|
189 |
"turn on/off immutable string literals - default is false for ST-80 compatibilty." |
|
190 |
||
191 |
StringsAreImmutable := aBoolean. |
|
192 |
||
193 |
" |
|
194 |
can be added to your private.rc file: |
|
195 |
||
196 |
ParserFlags stringsAreImmutable:true |
|
197 |
ParserFlags stringsAreImmutable:false |
|
198 |
" |
|
199 |
||
200 |
"Created: / 3.8.1998 / 14:53:28 / cg" |
|
201 |
! ! |
|
202 |
||
1658 | 203 |
!ParserFlags class methodsFor:'accessing-stc compilation control'! |
204 |
||
205 |
ccCompilationOptions |
|
1668 | 206 |
^ CCCompilationOptions ? '' |
1658 | 207 |
! |
208 |
||
209 |
ccCompilationOptions:aString |
|
210 |
CCCompilationOptions := aString |
|
211 |
! |
|
212 |
||
213 |
ccPath |
|
214 |
^ CCPath |
|
215 |
! |
|
216 |
||
217 |
ccPath:aSymbol |
|
218 |
CCPath := aSymbol |
|
219 |
! |
|
220 |
||
221 |
libPath |
|
222 |
^ LibPath |
|
223 |
! |
|
224 |
||
225 |
libPath:aString |
|
226 |
LibPath := aString |
|
227 |
! |
|
228 |
||
229 |
linkArgs |
|
230 |
^ LinkArgs |
|
231 |
! |
|
232 |
||
233 |
linkArgs:aString |
|
234 |
LinkArgs := aString |
|
235 |
! |
|
236 |
||
237 |
linkCommand |
|
238 |
^ LinkCommand |
|
239 |
! |
|
240 |
||
241 |
linkCommand:aString |
|
242 |
LinkCommand := aString |
|
243 |
! |
|
244 |
||
1898 | 245 |
linkSharedArgs |
246 |
^ LinkSharedArgs |
|
247 |
! |
|
248 |
||
249 |
linkSharedArgs:aString |
|
250 |
LinkSharedArgs := aString |
|
251 |
! |
|
252 |
||
1814 | 253 |
makeCommand |
254 |
^ MakeCommand |
|
255 |
||
256 |
"Created: / 09-08-2006 / 18:45:04 / fm" |
|
257 |
! |
|
258 |
||
259 |
makeCommand:aString |
|
260 |
MakeCommand := aString |
|
261 |
||
262 |
"Created: / 09-08-2006 / 18:45:12 / fm" |
|
263 |
! |
|
264 |
||
1658 | 265 |
searchedLibraries |
266 |
^ SearchedLibraries |
|
267 |
! |
|
268 |
||
269 |
searchedLibraries:aString |
|
270 |
SearchedLibraries := aString |
|
271 |
! |
|
272 |
||
273 |
stcCompilation |
|
274 |
^ STCCompilation |
|
275 |
! |
|
276 |
||
277 |
stcCompilation:aSymbol |
|
278 |
STCCompilation := aSymbol |
|
279 |
! |
|
280 |
||
281 |
stcCompilationDefines |
|
282 |
^ STCCompilationDefines |
|
283 |
! |
|
284 |
||
285 |
stcCompilationDefines:aString |
|
286 |
STCCompilationDefines := aString |
|
287 |
! |
|
288 |
||
289 |
stcCompilationIncludes |
|
290 |
^ STCCompilationIncludes |
|
291 |
! |
|
292 |
||
293 |
stcCompilationIncludes:aString |
|
294 |
STCCompilationIncludes := aString |
|
295 |
! |
|
296 |
||
297 |
stcCompilationOptions |
|
298 |
^ STCCompilationOptions |
|
299 |
! |
|
300 |
||
301 |
stcCompilationOptions:aString |
|
302 |
STCCompilationOptions := aString |
|
303 |
! |
|
304 |
||
305 |
stcKeepCIntermediate |
|
306 |
^ STCKeepCIntermediate |
|
307 |
! |
|
308 |
||
309 |
stcKeepCIntermediate:something |
|
310 |
STCKeepCIntermediate := something. |
|
1940 | 311 |
|
312 |
" |
|
313 |
STCKeepCIntermediate := true. |
|
314 |
STCKeepCIntermediate := false. |
|
315 |
" |
|
316 |
||
317 |
"Modified: / 07-11-2006 / 10:58:42 / cg" |
|
1658 | 318 |
! |
319 |
||
320 |
stcKeepOIntermediate |
|
321 |
^ STCKeepOIntermediate |
|
322 |
! |
|
323 |
||
324 |
stcKeepOIntermediate:something |
|
325 |
STCKeepOIntermediate := something. |
|
326 |
! |
|
327 |
||
328 |
stcKeepSTIntermediate |
|
329 |
^ STCKeepSTIntermediate |
|
330 |
! |
|
331 |
||
332 |
stcKeepSTIntermediate:something |
|
333 |
STCKeepSTIntermediate := something. |
|
1940 | 334 |
|
335 |
" |
|
336 |
STCKeepSTIntermediate := true. |
|
337 |
STCKeepSTIntermediate := false. |
|
338 |
" |
|
339 |
||
340 |
"Modified: / 07-11-2006 / 10:58:54 / cg" |
|
1658 | 341 |
! |
342 |
||
343 |
stcModulePath |
|
344 |
^ STCModulePath |
|
345 |
! |
|
346 |
||
347 |
stcModulePath:something |
|
348 |
STCModulePath := something. |
|
349 |
! |
|
350 |
||
351 |
stcPath |
|
352 |
^ STCPath |
|
353 |
! |
|
354 |
||
355 |
stcPath:aSymbol |
|
356 |
STCPath := aSymbol |
|
357 |
! |
|
358 |
||
2011 | 359 |
useBorlandC |
360 |
"/ ^ true. |
|
361 |
^ OperatingSystem getCCDefine ='__BORLANDC__' |
|
362 |
||
363 |
"Created: / 15-03-2007 / 13:33:32 / cg" |
|
364 |
! |
|
365 |
||
366 |
useGnuC |
|
367 |
^ OperatingSystem getCCDefine = '__GNUC__' |
|
368 |
||
369 |
"Created: / 15-03-2007 / 13:34:49 / cg" |
|
370 |
! |
|
371 |
||
1658 | 372 |
withSTCCompilation:howSymbol do:aBlock |
373 |
|prev| |
|
374 |
||
375 |
prev := self stcCompilation. |
|
376 |
self stcCompilation:howSymbol. |
|
377 |
aBlock ensure:[ self stcCompilation:prev ] |
|
378 |
! ! |
|
379 |
||
1634 | 380 |
!ParserFlags class methodsFor:'accessing-syntax-control'! |
381 |
||
382 |
allowArrayIndexSyntaxExtension |
|
383 |
"experimental" |
|
384 |
||
385 |
^ AllowArrayIndexSyntaxExtension ? false |
|
386 |
! |
|
387 |
||
388 |
allowArrayIndexSyntaxExtension:aBoolean |
|
389 |
"experimental" |
|
390 |
||
391 |
AllowArrayIndexSyntaxExtension := aBoolean. |
|
392 |
||
393 |
" |
|
394 |
self allowArrayIndexSyntaxExtension:true |
|
395 |
self allowArrayIndexSyntaxExtension:false |
|
396 |
" |
|
397 |
! |
|
398 |
||
399 |
allowDollarInIdentifier |
|
400 |
"return true, if $-characters are allowed in identifiers. |
|
401 |
Notice, that dollars are NEVER allowed as the first character in an identifier." |
|
402 |
||
403 |
^ AllowDollarInIdentifier |
|
404 |
||
405 |
"Created: 7.9.1997 / 01:32:18 / cg" |
|
406 |
"Modified: 7.9.1997 / 01:39:44 / cg" |
|
407 |
! |
|
408 |
||
409 |
allowDollarInIdentifier:aBoolean |
|
410 |
"this allows turning on/off $-characters in identifiers. |
|
411 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
412 |
If turned off (the default), dollars are not allowed in identifiers, |
|
413 |
but instead are scanned as character-constant prefix. |
|
414 |
If turned on, dollars are in identifiers are allowed, while extra |
|
415 |
dollars are still scanned as constant character prefix. |
|
416 |
If you have to fileIn old VW-Vsn2.x classes, turn this off |
|
417 |
before filing them in; i.e.: |
|
418 |
Compiler allowDollarInIdentifiers:false" |
|
419 |
||
420 |
AllowDollarInIdentifier := aBoolean. |
|
421 |
||
422 |
"Created: 7.9.1997 / 01:34:49 / cg" |
|
423 |
"Modified: 7.9.1997 / 01:39:30 / cg" |
|
424 |
! |
|
425 |
||
426 |
allowDolphinExtensions |
|
427 |
"return true, if ##(..) computed literals are allowed" |
|
428 |
||
429 |
^ AllowDolphinExtensions |
|
430 |
! |
|
431 |
||
432 |
allowDolphinExtensions:aBoolean |
|
433 |
"this allows turning on/off support for computed arrays ##(..) as in dolphin. |
|
434 |
If you want to fileIn Dolphin classes, enable this with: |
|
435 |
Compiler allowDolphinComputedArrays:true" |
|
436 |
||
437 |
AllowDolphinExtensions := aBoolean. |
|
438 |
||
439 |
" |
|
440 |
self allowDolphinExtensions:true |
|
441 |
self allowDolphinExtensions:false |
|
442 |
" |
|
443 |
! |
|
444 |
||
1950 | 445 |
allowEmptyStatements |
446 |
"return true, if empty statements are allowed (two .'s in a row). |
|
447 |
Notice, that stc cannot (yet) handle those." |
|
448 |
||
449 |
^ AllowEmptyStatements |
|
450 |
||
451 |
"Created: / 20-11-2006 / 14:29:02 / cg" |
|
452 |
! |
|
453 |
||
454 |
allowEmptyStatements:aBoolean |
|
455 |
"turn on/off, if empty statements are allowed (two .'s in a row). |
|
456 |
Notice, that stc cannot (yet) handle those." |
|
457 |
||
458 |
AllowEmptyStatements := aBoolean |
|
459 |
||
460 |
"Created: / 20-11-2006 / 14:29:15 / cg" |
|
461 |
! |
|
462 |
||
1682 | 463 |
allowExtendedSTXSyntax |
464 |
"experimental syntay extensions" |
|
465 |
||
466 |
^ AllowExtendedSTXSyntax |
|
467 |
! |
|
468 |
||
469 |
allowExtendedSTXSyntax:aBoolean |
|
470 |
"experimental syntay extensions" |
|
471 |
||
472 |
AllowExtendedSTXSyntax := aBoolean |
|
473 |
||
474 |
" |
|
475 |
self allowExtendedSTXSyntax:true |
|
476 |
'a\tb' inspect. |
|
477 |
'a\u1616b' inspect. |
|
478 |
self allowExtendedSTXSyntax:false |
|
479 |
" |
|
480 |
! |
|
481 |
||
1677 | 482 |
allowFixedPointLiterals |
483 |
"return true, if nnnsn (FixedPoint) literals are allowed" |
|
484 |
||
485 |
^ AllowFixedPointLiterals |
|
486 |
! |
|
487 |
||
488 |
allowFixedPointLiterals:aBoolean |
|
489 |
"enable/disable, if nnnsn (FixedPoint) literals are allowed" |
|
490 |
||
491 |
AllowFixedPointLiterals := aBoolean |
|
492 |
! |
|
493 |
||
1634 | 494 |
allowFunctionCallSyntaxForBlockEvaluation |
495 |
"experimental" |
|
496 |
||
497 |
^ AllowFunctionCallSyntaxForBlockEvaluation |
|
1721 | 498 |
|
499 |
" |
|
500 |
AllowFunctionCallSyntaxForBlockEvaluation := true |
|
501 |
" |
|
1634 | 502 |
! |
503 |
||
504 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
505 |
"experimental" |
|
506 |
||
507 |
AllowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
508 |
! |
|
509 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
510 |
allowHashAsBinarySelector |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
511 |
^ AllowHashAsBinarySelector |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
512 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
513 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
514 |
allowHashAsBinarySelector:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
515 |
AllowHashAsBinarySelector := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
516 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
517 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
518 |
self allowHashAsBinarySelector:true |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
519 |
self allowHashAsBinarySelector:false |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
520 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
521 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
522 |
|
1634 | 523 |
allowLiteralNameSpaceSymbols |
524 |
"return true, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
525 |
||
526 |
^ AllowLiteralNameSpaceSymbols |
|
527 |
! |
|
528 |
||
529 |
allowLiteralNameSpaceSymbols:aBoolean |
|
530 |
"controls, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
531 |
||
532 |
AllowLiteralNameSpaceSymbols := aBoolean |
|
533 |
! |
|
534 |
||
535 |
allowLocalVariableDeclarationWithInitializerExpression |
|
536 |
"experimental" |
|
537 |
||
538 |
^ AllowLocalVariableDeclarationWithInitializerExpression |
|
539 |
! |
|
540 |
||
541 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
542 |
"experimental" |
|
543 |
||
544 |
AllowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
545 |
! |
|
546 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
547 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
548 |
"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
|
549 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
550 |
^ AllowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
551 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
552 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
553 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
554 |
"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
|
555 |
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
|
556 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
557 |
AllowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
558 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
559 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
560 |
ParserFlags allowNationalCharactersInIdentifier:true |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
561 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
562 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
563 |
|
1634 | 564 |
allowOldStyleAssignment |
565 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
|
566 |
||
567 |
^ AllowOldStyleAssignment |
|
568 |
! |
|
569 |
||
570 |
allowOldStyleAssignment:aBoolean |
|
571 |
"this allows turning on/off recognition of underscore-assignment (pre ST-80v4 syntax). |
|
572 |
You must turn this off, if code with variables named '_' is to be filedIn" |
|
573 |
||
574 |
AllowOldStyleAssignment := aBoolean |
|
575 |
! |
|
576 |
||
577 |
allowQualifiedNames |
|
578 |
"return true, if #{..} qualified names are allowed" |
|
579 |
||
580 |
^ AllowQualifiedNames |
|
581 |
! |
|
582 |
||
583 |
allowQualifiedNames:aBoolean |
|
584 |
"this allows turning on/off support for qualifiedNames #{ .., } as in vw3. |
|
585 |
If you want to fileIn vw3 or later classes, enable this with: |
|
586 |
Compiler allowQualifiedNames:true |
|
587 |
Notice, that qualified names are not really supported semantically |
|
588 |
(they are parsed, but treated like regular globals) |
|
589 |
" |
|
590 |
||
591 |
AllowQualifiedNames := aBoolean. |
|
592 |
||
593 |
" |
|
594 |
self allowQualifiedNames:true |
|
595 |
self allowQualifiedNames:false |
|
596 |
" |
|
597 |
! |
|
598 |
||
599 |
allowReservedWordsAsSelectors |
|
600 |
"return true, if self, super, thisContext, nil, true and false are to be allowed |
|
601 |
as unary message selectors." |
|
602 |
||
603 |
^ AllowReservedWordsAsSelectors ? false |
|
604 |
! |
|
605 |
||
606 |
allowReservedWordsAsSelectors:aBoolean |
|
607 |
"enable/disable, if self, super, thisContext, nil, true and false are to be allowed |
|
608 |
as unary message selectors." |
|
609 |
||
610 |
AllowReservedWordsAsSelectors := aBoolean. |
|
611 |
||
612 |
" |
|
613 |
self allowReservedWordsAsSelectors:true |
|
614 |
self allowReservedWordsAsSelectors:false |
|
615 |
" |
|
616 |
! |
|
617 |
||
1702 | 618 |
allowSTVExtensions |
619 |
"return true, if support for ST/V syntax extensions is enabled." |
|
620 |
||
621 |
^ AllowSTVExtensions |
|
622 |
! |
|
623 |
||
624 |
allowSTVExtensions:aBoolean |
|
625 |
"this allows turning on/off support for ST/V extensions: |
|
626 |
If you want to fileIn ST/V classes, enable this with: |
|
627 |
Compiler allowSTVComputedArrays:true" |
|
628 |
||
629 |
AllowSTVExtensions := aBoolean. |
|
630 |
||
631 |
" |
|
1704 | 632 |
ParserFlags allowSTVExtensions:true |
633 |
ParserFlags allowSTVExtensions:false |
|
1702 | 634 |
" |
635 |
! |
|
636 |
||
1700 | 637 |
allowSTVPrimitives |
638 |
"return true, if support for ST/V primitives is enabled." |
|
639 |
||
640 |
^ AllowSTVPrimitives |
|
641 |
! |
|
642 |
||
643 |
allowSTVPrimitives:aBoolean |
|
644 |
"this allows turning on/off support for ST/V primitives" |
|
645 |
||
646 |
AllowSTVPrimitives := aBoolean |
|
1704 | 647 |
|
648 |
" |
|
649 |
ParserFlags allowSTVPrimitives:true |
|
650 |
" |
|
1700 | 651 |
! |
652 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
653 |
allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
654 |
^ AllowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
655 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
656 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
657 |
allowSTXEOLComments:aBoolean |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
658 |
AllowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
659 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
660 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
661 |
self allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
662 |
self allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
663 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
664 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
665 |
|
1634 | 666 |
allowSqueakExtensions |
667 |
"return true, if support for squeak extensions |
|
668 |
computed arrays { .., } |
|
669 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
670 |
is enabled." |
|
671 |
||
672 |
^ AllowSqueakExtensions |
|
673 |
! |
|
674 |
||
675 |
allowSqueakExtensions:aBoolean |
|
676 |
"this allows turning on/off support for squeak extensions: |
|
677 |
computed arrays { .., } |
|
678 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
679 |
||
680 |
If you want to fileIn Squeak classes, enable this with: |
|
681 |
Compiler allowSqueakComputedArrays:true" |
|
682 |
||
683 |
AllowSqueakExtensions := aBoolean. |
|
684 |
||
685 |
" |
|
686 |
self allowSqueakExtensions:true |
|
687 |
self allowSqueakExtensions:false |
|
688 |
" |
|
689 |
! |
|
690 |
||
1689 | 691 |
allowSqueakPrimitives |
692 |
"return true, if support for squeak primitives is enabled." |
|
693 |
||
694 |
^ AllowSqueakPrimitives |
|
695 |
! |
|
696 |
||
697 |
allowSqueakPrimitives:aBoolean |
|
698 |
"this allows turning on/off support for squeak primitives" |
|
699 |
||
700 |
AllowSqueakPrimitives := aBoolean |
|
701 |
! |
|
702 |
||
1634 | 703 |
allowUnderscoreInIdentifier |
704 |
"return true, if underscores are allowed in identifiers" |
|
705 |
||
706 |
^ AllowUnderscoreInIdentifier |
|
707 |
! |
|
708 |
||
709 |
allowUnderscoreInIdentifier:aBoolean |
|
710 |
"this allows turning on/off underscores in identifiers. |
|
711 |
If turned off (the default), underscores are not allowed in identifiers, |
|
712 |
but instead scanned as assignment character (old ST/80 syntax). |
|
713 |
If turned on, underscores are in identifiers are allowed, while extra |
|
714 |
underscores are still scanned as assignment. |
|
715 |
If you have to fileIn old VW-Vsn2.x classes, |
|
716 |
turn them off with: |
|
717 |
Compiler allowUnderscoreInIdentifiers:false" |
|
718 |
||
719 |
AllowUnderscoreInIdentifier := aBoolean. |
|
720 |
||
721 |
"Modified: 7.9.1997 / 01:35:19 / cg" |
|
1655 | 722 |
! |
723 |
||
724 |
allowVisualAgeESSymbolLiterals |
|
725 |
"return true, if ##symbols are allowed (treated like symbols)" |
|
726 |
||
727 |
^ AllowVisualAgeESSymbolLiterals |
|
728 |
! |
|
729 |
||
730 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
731 |
"if on, visualAge's ##symbols are allowed (treated like symbols)" |
|
732 |
||
733 |
AllowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 734 |
! |
735 |
||
736 |
allowVisualAgePrimitives |
|
737 |
"return true, if support for V'Age primitives is enabled." |
|
738 |
||
739 |
^ AllowVisualAgePrimitives |
|
740 |
! |
|
741 |
||
742 |
allowVisualAgePrimitives:aBoolean |
|
743 |
"this allows turning on/off support for V'Age primitives" |
|
744 |
||
745 |
AllowVisualAgePrimitives := aBoolean |
|
1773 | 746 |
! |
747 |
||
748 |
allowVisualWorksMethodAnnotations |
|
749 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
750 |
||
751 |
^ AllowVisualWorksMethodAnnotations |
|
752 |
||
753 |
"Created: / 07-07-2006 / 15:49:32 / cg" |
|
754 |
! |
|
755 |
||
756 |
allowVisualWorksMethodAnnotations:aBoolean |
|
757 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
758 |
||
759 |
AllowVisualWorksMethodAnnotations := aBoolean |
|
760 |
||
761 |
"Created: / 07-07-2006 / 15:49:27 / cg" |
|
1634 | 762 |
! ! |
763 |
||
764 |
!ParserFlags class methodsFor:'accessing-warning-control'! |
|
765 |
||
1652 | 766 |
warnAboutBadComments |
767 |
"controls generation of warning messages about empty comments" |
|
768 |
||
769 |
^ WarnAboutBadComments |
|
770 |
! |
|
771 |
||
772 |
warnAboutBadComments:aBoolean |
|
773 |
"controls generation of warning messages about empty comments" |
|
774 |
||
775 |
WarnAboutBadComments := aBoolean |
|
776 |
! |
|
777 |
||
1811 | 778 |
warnAboutNonLowercaseLocalVariableNames |
1740 | 779 |
"controls generation of warning messages about wrong variable names" |
780 |
||
1811 | 781 |
^ WarnAboutNonLowercaseLocalVariableNames |
1740 | 782 |
! |
783 |
||
1811 | 784 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
1740 | 785 |
"controls generation of warning messages about wrong variable names" |
786 |
||
1811 | 787 |
WarnAboutNonLowercaseLocalVariableNames := aBoolean |
1740 | 788 |
! |
789 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
790 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
791 |
^ WarnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
792 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
793 |
"Created: / 16-11-2006 / 14:31:52 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
794 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
795 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
796 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
797 |
WarnAboutPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
798 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
799 |
"Created: / 16-11-2006 / 14:31:57 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
800 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
801 |
|
2121 | 802 |
warnAboutPossiblyUnimplementedSelectors |
803 |
^ WarnAboutPossiblyUnimplementedSelectors |
|
804 |
! |
|
805 |
||
806 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
807 |
WarnAboutPossiblyUnimplementedSelectors := aBoolean |
|
808 |
! |
|
809 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
810 |
warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
811 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
812 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
813 |
^ WarnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
814 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
815 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
816 |
warnAboutReferenceToPrivateClass:aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
817 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
818 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
819 |
WarnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
820 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
821 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
822 |
warnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
823 |
"controls generation of warning messages about short variable names" |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
824 |
|
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
825 |
^ WarnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
826 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
827 |
|
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
828 |
warnAboutShortLocalVariableNames:aBoolean |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
829 |
"controls generation of warning messages about short variable names" |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
830 |
|
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
831 |
WarnAboutShortLocalVariableNames := aBoolean |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
832 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
833 |
|
1634 | 834 |
warnAboutVariableNameConventions |
835 |
"controls generation of warning messages about wrong variable names" |
|
836 |
||
837 |
^ WarnAboutVariableNameConventions |
|
838 |
! |
|
839 |
||
840 |
warnAboutVariableNameConventions:aBoolean |
|
841 |
"controls generation of warning messages about wrong variable names" |
|
842 |
||
843 |
WarnAboutVariableNameConventions := aBoolean |
|
844 |
! |
|
845 |
||
846 |
warnAboutWrongVariableNames |
|
847 |
"controls generation of warning messages about wrong variable names" |
|
848 |
||
849 |
^ WarnAboutWrongVariableNames |
|
850 |
! |
|
851 |
||
852 |
warnAboutWrongVariableNames:aBoolean |
|
853 |
"controls generation of warning messages about wrong variable names" |
|
854 |
||
855 |
WarnAboutWrongVariableNames := aBoolean |
|
856 |
! |
|
857 |
||
858 |
warnCommonMistakes |
|
859 |
"return true, if common beginners mistakes are to be warned about" |
|
860 |
||
1754 | 861 |
^ WarnCommonMistakes |
1634 | 862 |
! |
863 |
||
864 |
warnCommonMistakes:aBoolean |
|
865 |
"this allows turning on/off warnings about common beginners mistakes. |
|
866 |
Those are not really errors in the strict sense, but often lead to |
|
867 |
run time errors later. |
|
868 |
Examples are: expr or:expr2, where expr2 is not a block. |
|
869 |
If you get bored by those warnings, turn them off by adding |
|
870 |
a line as: |
|
1902 | 871 |
ParserFlags warnCommonMistakes:false |
1634 | 872 |
in your 'private.rc' file" |
873 |
||
874 |
WarnCommonMistakes := aBoolean |
|
1902 | 875 |
|
876 |
"Modified: / 05-09-2006 / 11:46:26 / cg" |
|
1634 | 877 |
! |
878 |
||
879 |
warnDollarInIdentifier |
|
880 |
"return true, if $-characters in identifiers are to be warned about" |
|
881 |
||
882 |
^ Warnings and:[WarnDollarInIdentifier] |
|
883 |
||
884 |
"Created: 7.9.1997 / 01:36:17 / cg" |
|
885 |
! |
|
886 |
||
887 |
warnDollarInIdentifier:aBoolean |
|
888 |
"this allows turning on/off warnings about $-characters in identifiers. |
|
889 |
You may find those warnings useful, to make certain that your code |
|
890 |
is portable to other smalltalk versions, which do not allow this |
|
891 |
(i.e. VW releases 2.x and maybe others). |
|
892 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
893 |
If you get bored by those warnings, turn them off by adding |
|
894 |
a line as: |
|
1902 | 895 |
ParserFlags warnDollarInIdentifier:false |
1634 | 896 |
in your 'private.rc' file" |
897 |
||
898 |
WarnDollarInIdentifier := aBoolean |
|
899 |
||
1902 | 900 |
"Created: / 07-09-1997 / 01:37:42 / cg" |
901 |
"Modified: / 05-09-2006 / 11:46:23 / cg" |
|
1634 | 902 |
! |
903 |
||
1682 | 904 |
warnHiddenVariables |
905 |
"controls generation of warning messages about hiding variables by locals" |
|
906 |
||
907 |
^ WarnHiddenVariables |
|
908 |
! |
|
909 |
||
910 |
warnHiddenVariables:aBoolean |
|
911 |
"controls generation of warning messages about hiding variables by locals" |
|
912 |
||
913 |
WarnHiddenVariables := aBoolean |
|
914 |
! |
|
915 |
||
916 |
warnInconsistentReturnValues |
|
917 |
"return true, if compiler should warn about inconsitent (boolean / non-boolean) |
|
918 |
return values" |
|
919 |
||
920 |
^ WarnInconsistentReturnValues |
|
921 |
! |
|
922 |
||
923 |
warnInconsistentReturnValues:aBoolean |
|
924 |
"constrols if the compiler should warn about inconsitent (boolean / non-boolean) |
|
925 |
return values" |
|
926 |
||
927 |
WarnInconsistentReturnValues := aBoolean |
|
928 |
! |
|
929 |
||
1634 | 930 |
warnOldStyleAssignment |
931 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be warned about" |
|
932 |
||
933 |
^ Warnings and:[WarnOldStyleAssignment] |
|
934 |
! |
|
935 |
||
936 |
warnOldStyleAssignment:aBoolean |
|
937 |
"this allows turning on/off warnings about underscore-assignment (pre ST-80v4 syntax). |
|
938 |
If you get bored by those warnings, turn them off by adding |
|
939 |
a line as: |
|
1902 | 940 |
ParserFlags warnOldStyleAssignment:false |
1634 | 941 |
in your 'private.rc' file" |
942 |
||
943 |
WarnOldStyleAssignment := aBoolean |
|
1902 | 944 |
|
945 |
"Modified: / 05-09-2006 / 11:46:17 / cg" |
|
1634 | 946 |
! |
947 |
||
948 |
warnPossibleIncompatibilities |
|
949 |
"return true, if possible incompatibilities (with other ST systems) |
|
950 |
are to be warned about" |
|
951 |
||
952 |
^ Warnings and:[WarnPossibleIncompatibilities] |
|
953 |
||
954 |
"Modified: 23.5.1997 / 12:02:02 / cg" |
|
955 |
! |
|
956 |
||
957 |
warnPossibleIncompatibilities:aBoolean |
|
958 |
"this turns warnings about possible incompatibilities (with other ST systems) |
|
959 |
on or off. |
|
960 |
If you get bored by those warnings, turn them off by adding |
|
961 |
a line as: |
|
1902 | 962 |
ParserFlags warnPossibleIncompatibilities:false |
1634 | 963 |
in your 'private.rc' file." |
964 |
||
965 |
WarnPossibleIncompatibilities := aBoolean |
|
966 |
||
1902 | 967 |
"Created: / 23-05-1997 / 12:02:45 / cg" |
968 |
"Modified: / 05-09-2006 / 11:46:14 / cg" |
|
1634 | 969 |
! |
970 |
||
971 |
warnSTXSpecials |
|
972 |
"return true, if ST/X specials are to be warned about" |
|
973 |
||
974 |
^ Warnings and:[WarnSTXSpecials] |
|
975 |
! |
|
976 |
||
977 |
warnSTXSpecials:aBoolean |
|
978 |
"this allows turning on/off warnings about stx specials. |
|
979 |
If you get bored by those warnings, turn them off by adding |
|
980 |
a line as: |
|
1902 | 981 |
ParserFlags warnSTXSpecials:false |
1634 | 982 |
in your 'private.rc' file" |
983 |
||
984 |
WarnSTXSpecials := aBoolean |
|
1902 | 985 |
|
986 |
"Modified: / 05-09-2006 / 11:46:11 / cg" |
|
1634 | 987 |
! |
988 |
||
989 |
warnUnderscoreInIdentifier |
|
990 |
"return true, if underscores in identifiers are to be warned about" |
|
991 |
||
992 |
^ Warnings and:[WarnUnderscoreInIdentifier] |
|
993 |
! |
|
994 |
||
995 |
warnUnderscoreInIdentifier:aBoolean |
|
996 |
"this allows turning on/off warnings about underscores in identifiers. |
|
997 |
You may find those warnings useful, to make certain that your code |
|
998 |
is portable to other smalltalk versions, which do not allow this |
|
999 |
(i.e. VW releases 2.x). |
|
1000 |
If you get bored by those warnings, turn them off by adding |
|
1001 |
a line as: |
|
1902 | 1002 |
ParserFlags warnUnderscoreInIdentifier:false |
1634 | 1003 |
in your 'private.rc' file" |
1004 |
||
1005 |
WarnUnderscoreInIdentifier := aBoolean |
|
1006 |
||
1902 | 1007 |
"Modified: / 05-09-2006 / 11:46:08 / cg" |
1634 | 1008 |
! |
1009 |
||
1010 |
warnUnusedVars |
|
1011 |
"controls generation of warning messages about unued method variables" |
|
1012 |
||
1013 |
^ WarnUnusedVars |
|
1014 |
! |
|
1015 |
||
1016 |
warnUnusedVars:aBoolean |
|
1017 |
"controls generation of warning messages about unued method variables" |
|
1018 |
||
1019 |
WarnUnusedVars := aBoolean |
|
1020 |
! |
|
1021 |
||
1022 |
warnings |
|
1023 |
"return true, if any warnings are to be shown" |
|
1024 |
||
1025 |
^ Warnings |
|
1026 |
! |
|
1027 |
||
1028 |
warnings:aBoolean |
|
1029 |
"this allows turning on/off all warnings; the default is on. |
|
1030 |
You can turn off warnings in your 'private.rc' file with |
|
1902 | 1031 |
ParserFlags warnings:false |
1634 | 1032 |
" |
1033 |
||
1034 |
Warnings := aBoolean |
|
1035 |
||
1902 | 1036 |
" |
1037 |
ParserFlags warnings |
|
1038 |
ParserFlags warnings:true |
|
1039 |
ParserFlags warnings:false |
|
1040 |
" |
|
1041 |
||
1042 |
"Modified: / 05-09-2006 / 11:46:47 / cg" |
|
1634 | 1043 |
! ! |
1044 |
||
1045 |
!ParserFlags class methodsFor:'class initialization'! |
|
1046 |
||
1047 |
initialize |
|
1048 |
Warnings := true. |
|
1049 |
WarnUndeclared := true. |
|
1050 |
WarnUnusedVars := true. |
|
1051 |
WarnSTXSpecials := false. |
|
1052 |
WarnST80Directives := false. |
|
1053 |
WarnAboutWrongVariableNames := true. |
|
1054 |
WarnAboutVariableNameConventions := true. |
|
1652 | 1055 |
WarnAboutBadComments := true. |
1634 | 1056 |
WarnUnderscoreInIdentifier := false. |
1057 |
WarnDollarInIdentifier := true. |
|
1058 |
WarnOldStyleAssignment := true. |
|
1059 |
WarnCommonMistakes := true. |
|
1060 |
WarnPossibleIncompatibilities := false. |
|
1638 | 1061 |
WarnHiddenVariables := true. |
1682 | 1062 |
WarnInconsistentReturnValues := true. |
1811 | 1063 |
WarnAboutNonLowercaseLocalVariableNames := true. |
2083
9e9ee3362d7d
Switch off short variable name warnings
Stefan Vogel <sv@exept.de>
parents:
2081
diff
changeset
|
1064 |
WarnAboutShortLocalVariableNames := false. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1065 |
WarnAboutPossibleSTCCompilationProblems := true. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1066 |
WarnAboutReferenceToPrivateClass := true. |
2121 | 1067 |
WarnAboutPossiblyUnimplementedSelectors := true. |
1634 | 1068 |
|
1069 |
AllowReservedWordsAsSelectors := false. |
|
1070 |
AllowUnderscoreInIdentifier := true. "/ underscores in identifiers |
|
1071 |
AllowDollarInIdentifier := false. "/ st80-vms dollars in identifiers |
|
1072 |
AllowOldStyleAssignment := true. "/ st80 underscore as assignment |
|
1073 |
AllowDolphinExtensions := false. "/ dolphin computed literal |
|
1074 |
AllowQualifiedNames := false. "/ vw3 qualified names |
|
1075 |
AllowExtendedBinarySelectors := false. "/ vw5.4 extended binary selectors (plus/minus, center-dot etc.) |
|
1076 |
AllowLiteralNameSpaceSymbols := true. "/ st/x literal nameSpace-symbols (#foo::bar) |
|
1077 |
AllowArrayIndexSyntaxExtension := false. |
|
1078 |
AllowFunctionCallSyntaxForBlockEvaluation := false. |
|
1079 |
AllowLocalVariableDeclarationWithInitializerExpression := false. |
|
1080 |
AllowDomainVariables := false. |
|
1081 |
AllowArrayIndexSyntaxExtension := false. |
|
1082 |
AllowReservedWordsAsSelectors := true. |
|
1083 |
AllowVariableReferences := false. |
|
1084 |
AllowLazyValueExtension := false. |
|
1085 |
AllowFixedPointLiterals := false. |
|
1086 |
AllowExtendedSTXSyntax := false. |
|
1655 | 1087 |
AllowVisualAgeESSymbolLiterals := false. |
1668 | 1088 |
AllowExtensionsToPrivateClasses := true. |
1689 | 1089 |
AllowVisualAgePrimitives := false. |
1702 | 1090 |
AllowSqueakExtensions := false. "/ squeak computed array |
1689 | 1091 |
AllowSqueakPrimitives := false. |
1702 | 1092 |
AllowSTVPrimitives := false. "/ number-sign syntax |
1093 |
AllowSTVExtensions := false. |
|
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1094 |
AllowNationalCharactersInIdentifier := false. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1095 |
AllowHashAsBinarySelector := true. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1096 |
AllowSTXEOLComments := true. |
1773 | 1097 |
AllowVisualWorksMethodAnnotations := false. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1098 |
AllowPossibleSTCCompilationProblems := true. |
1950 | 1099 |
AllowEmptyStatements := false. |
1634 | 1100 |
|
1101 |
ArraysAreImmutable := false. "/ no longer care for ST-80 compatibility |
|
1102 |
StringsAreImmutable := false. "/ no longer care for ST-80 compatibility |
|
1103 |
ImplicitSelfSends := false. |
|
1104 |
||
1658 | 1105 |
STCKeepCIntermediate := false. |
1106 |
STCKeepOIntermediate := false. |
|
1107 |
STCKeepSTIntermediate := false. |
|
1108 |
STCModulePath := './modules'. |
|
1109 |
STCCompilation := #default. |
|
1110 |
||
1111 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
1668 | 1112 |
'C:\Borland\bcc55' asFilename exists ifTrue:[ |
1113 |
STCCompilationIncludes := '-I..\..\include -I..\..\libopengl -IC:\Borland\bcc55\Include'. |
|
1114 |
LinkArgs := '-L..\..\libbc -LC:\Borland\bcc55\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1115 |
] ifFalse:[ |
|
1116 |
STCCompilationIncludes := '-I..\..\include -I..\..\libopengl -IC:\Borland\xxxxx\Include'. |
|
1117 |
LinkArgs := '-L..\..\libbc -LC:\Borland\xxxxx\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1118 |
]. |
|
1658 | 1119 |
STCCompilationDefines := '-DWIN32'. |
1120 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
1121 |
STCPath := '..\..\stc\stc.exe'. |
|
2011 | 1122 |
self useBorlandC ifTrue:[ |
1814 | 1123 |
CCPath := 'bcc32'. |
1124 |
MakeCommand := 'bmake'. |
|
1125 |
CCCompilationOptions := '-w-'. |
|
1668 | 1126 |
] ifFalse:[ |
1814 | 1127 |
CCPath := 'cl'. |
1128 |
MakeCommand := 'nmake'. |
|
1129 |
CCCompilationOptions := '-w-'. |
|
1668 | 1130 |
]. |
1658 | 1131 |
LinkCommand := 'ilink32'. |
1132 |
LibPath := ''. |
|
1660
c999eda0067a
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
1658
diff
changeset
|
1133 |
SearchedLibraries := #('import32.lib'). |
2061 | 1134 |
"/ SearchedLibraries := #('import32.lib' 'glu32.lib' 'opengl32.lib'). |
1658 | 1135 |
] ifFalse:[ |
1136 |
STCCompilationIncludes := '-I../../include'. |
|
1137 |
STCCompilationDefines := ''. |
|
1138 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
1139 |
STCPath := '../../stc/stc'. |
|
1140 |
CCCompilationOptions := '-O'. |
|
2011 | 1141 |
ParserFlags useGnuC ifTrue:[ |
1668 | 1142 |
CCPath := 'gcc' |
1143 |
] ifFalse:[ |
|
1144 |
CCPath := 'cc' |
|
1145 |
]. |
|
1658 | 1146 |
LinkArgs := ''. |
1147 |
LinkCommand := 'ld'. |
|
1148 |
LibPath := ''. |
|
1660
c999eda0067a
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
1658
diff
changeset
|
1149 |
SearchedLibraries := #(). |
1814 | 1150 |
MakeCommand := 'make'. |
1658 | 1151 |
]. |
1152 |
||
1634 | 1153 |
" |
1154 |
ParserFlags initialize |
|
1155 |
" |
|
1773 | 1156 |
|
1814 | 1157 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
2011 | 1158 |
"Modified: / 15-03-2007 / 13:35:00 / cg" |
1634 | 1159 |
! ! |
1160 |
||
1658 | 1161 |
!ParserFlags methodsFor:'accessing-compilation control'! |
1162 |
||
1668 | 1163 |
allowExtensionsToPrivateClasses |
1164 |
^ allowExtensionsToPrivateClasses |
|
1165 |
! |
|
1166 |
||
1167 |
allowExtensionsToPrivateClasses:aBoolean |
|
1168 |
allowExtensionsToPrivateClasses := aBoolean |
|
1169 |
! |
|
1170 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1171 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1172 |
^ allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1173 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1174 |
"Created: / 16-11-2006 / 14:24:54 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1175 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1176 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1177 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1178 |
allowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1179 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1180 |
"Created: / 16-11-2006 / 14:24:56 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1181 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1182 |
|
1658 | 1183 |
arraysAreImmutable |
1184 |
^ arraysAreImmutable |
|
1185 |
! |
|
1186 |
||
1187 |
arraysAreImmutable:aBoolean |
|
1188 |
arraysAreImmutable := aBoolean. |
|
1189 |
! |
|
1190 |
||
1717
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1191 |
flattenVisualWorksNamespaces |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1192 |
^ true |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1193 |
! |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1194 |
|
1658 | 1195 |
stringsAreImmutable |
1196 |
^ stringsAreImmutable |
|
1197 |
! |
|
1198 |
||
1199 |
stringsAreImmutable:aBoolean |
|
1200 |
stringsAreImmutable := aBoolean. |
|
1201 |
! ! |
|
1202 |
||
1203 |
!ParserFlags methodsFor:'accessing-stc compilation control'! |
|
1204 |
||
1205 |
ccCompilationOptions |
|
1668 | 1206 |
^ ccCompilationOptions ? '' |
1658 | 1207 |
! |
1208 |
||
1209 |
ccCompilationOptions:something |
|
1210 |
ccCompilationOptions := something. |
|
1211 |
! |
|
1212 |
||
1213 |
ccPath |
|
1214 |
^ ccPath |
|
1215 |
! |
|
1216 |
||
1217 |
ccPath:something |
|
1218 |
ccPath := something. |
|
1219 |
! |
|
1220 |
||
1221 |
implicitSelfSends |
|
1222 |
^ implicitSelfSends |
|
1223 |
! |
|
1224 |
||
1225 |
implicitSelfSends:aBoolean |
|
1226 |
implicitSelfSends := aBoolean. |
|
1227 |
! |
|
1228 |
||
1229 |
libPath |
|
1230 |
^ libPath |
|
1231 |
! |
|
1232 |
||
1233 |
libPath:aString |
|
1234 |
libPath := aString |
|
1235 |
! |
|
1236 |
||
1237 |
linkArgs |
|
1238 |
^ linkArgs |
|
1239 |
! |
|
1240 |
||
1241 |
linkArgs:aString |
|
1242 |
linkArgs := aString |
|
1243 |
! |
|
1244 |
||
1245 |
linkCommand |
|
1246 |
^ linkCommand |
|
1247 |
! |
|
1248 |
||
1249 |
linkCommand:aString |
|
1250 |
linkCommand := aString |
|
1251 |
! |
|
1252 |
||
1898 | 1253 |
linkSharedArgs |
1254 |
^ linkSharedArgs |
|
1255 |
! |
|
1256 |
||
1257 |
linkSharedArgs:aString |
|
1258 |
linkSharedArgs := aString |
|
1259 |
! |
|
1260 |
||
1658 | 1261 |
searchedLibraries |
1262 |
^ searchedLibraries |
|
1263 |
! |
|
1264 |
||
1265 |
searchedLibraries:aString |
|
1266 |
searchedLibraries := aString |
|
1267 |
! |
|
1268 |
||
1269 |
stcCompilation |
|
1270 |
^ stcCompilation |
|
1271 |
! |
|
1272 |
||
1273 |
stcCompilation:something |
|
1274 |
stcCompilation := something. |
|
1275 |
! |
|
1276 |
||
1277 |
stcCompilationDefines |
|
1278 |
^ stcCompilationDefines |
|
1279 |
! |
|
1280 |
||
1281 |
stcCompilationDefines:something |
|
1282 |
stcCompilationDefines := something. |
|
1283 |
! |
|
1284 |
||
1285 |
stcCompilationIncludes |
|
1286 |
^ stcCompilationIncludes |
|
1287 |
! |
|
1288 |
||
1289 |
stcCompilationIncludes:something |
|
1290 |
stcCompilationIncludes := something. |
|
1291 |
! |
|
1292 |
||
1293 |
stcCompilationOptions |
|
1294 |
^ stcCompilationOptions |
|
1295 |
! |
|
1296 |
||
1297 |
stcCompilationOptions:something |
|
1298 |
stcCompilationOptions := something. |
|
1299 |
! |
|
1300 |
||
1301 |
stcKeepCIntermediate |
|
1302 |
^ stcKeepCIntermediate |
|
1303 |
! |
|
1304 |
||
1305 |
stcKeepCIntermediate:something |
|
1306 |
stcKeepCIntermediate := something. |
|
1307 |
! |
|
1308 |
||
1309 |
stcKeepOIntermediate |
|
1310 |
^ stcKeepOIntermediate |
|
1311 |
! |
|
1312 |
||
1313 |
stcKeepOIntermediate:something |
|
1314 |
stcKeepOIntermediate := something. |
|
1315 |
! |
|
1316 |
||
1317 |
stcKeepSTIntermediate |
|
1318 |
^ stcKeepSTIntermediate |
|
1319 |
! |
|
1320 |
||
1321 |
stcKeepSTIntermediate:something |
|
1322 |
stcKeepSTIntermediate := something. |
|
1323 |
! |
|
1324 |
||
1325 |
stcModulePath |
|
1326 |
^ stcModulePath |
|
1327 |
! |
|
1328 |
||
1329 |
stcModulePath:something |
|
1330 |
stcModulePath := something. |
|
1331 |
! |
|
1332 |
||
1333 |
stcPath |
|
1334 |
^ stcPath |
|
1335 |
! |
|
1336 |
||
1337 |
stcPath:something |
|
1338 |
stcPath := something. |
|
1339 |
! ! |
|
1340 |
||
1341 |
!ParserFlags methodsFor:'accessing-syntax-control'! |
|
1634 | 1342 |
|
1343 |
allowArrayIndexSyntaxExtension |
|
1344 |
^ allowArrayIndexSyntaxExtension |
|
1345 |
! |
|
1346 |
||
1347 |
allowArrayIndexSyntaxExtension:aBoolean |
|
1348 |
allowArrayIndexSyntaxExtension := aBoolean. |
|
1349 |
! |
|
1350 |
||
1351 |
allowDollarInIdentifier |
|
1352 |
^ allowDollarInIdentifier |
|
1353 |
! |
|
1354 |
||
1355 |
allowDollarInIdentifier:aBoolean |
|
1356 |
allowDollarInIdentifier := aBoolean. |
|
1357 |
! |
|
1358 |
||
1359 |
allowDolphinExtensions |
|
1360 |
^ allowDolphinExtensions |
|
1361 |
! |
|
1362 |
||
1363 |
allowDolphinExtensions:aBoolean |
|
1364 |
allowDolphinExtensions := aBoolean |
|
1365 |
! |
|
1366 |
||
1367 |
allowDomainVariables |
|
1368 |
^ allowDomainVariables |
|
1369 |
! |
|
1370 |
||
1371 |
allowDomainVariables:aBoolean |
|
1372 |
allowDomainVariables := aBoolean. |
|
1373 |
! |
|
1374 |
||
1950 | 1375 |
allowEmptyStatements |
1376 |
^ allowEmptyStatements ? false |
|
1377 |
||
1378 |
"Created: / 20-11-2006 / 13:56:14 / cg" |
|
1379 |
! |
|
1380 |
||
1381 |
allowEmptyStatements:aBoolean |
|
1382 |
allowEmptyStatements := aBoolean. |
|
1383 |
||
1384 |
"Created: / 20-11-2006 / 14:26:48 / cg" |
|
1385 |
! |
|
1386 |
||
1634 | 1387 |
allowExtendedBinarySelectors |
1388 |
^ allowExtendedBinarySelectors |
|
1389 |
! |
|
1390 |
||
1391 |
allowExtendedBinarySelectors:aBoolean |
|
1392 |
allowExtendedBinarySelectors := aBoolean. |
|
1393 |
! |
|
1394 |
||
1395 |
allowExtendedSTXSyntax |
|
1396 |
^ allowExtendedSTXSyntax |
|
1397 |
! |
|
1398 |
||
1399 |
allowExtendedSTXSyntax:something |
|
1400 |
allowExtendedSTXSyntax := something. |
|
1401 |
! |
|
1402 |
||
1403 |
allowFixedPointLiterals |
|
1404 |
^ allowFixedPointLiterals |
|
1405 |
! |
|
1406 |
||
1407 |
allowFixedPointLiterals:something |
|
1408 |
allowFixedPointLiterals := something. |
|
1409 |
! |
|
1410 |
||
1411 |
allowFunctionCallSyntaxForBlockEvaluation |
|
1412 |
^ allowFunctionCallSyntaxForBlockEvaluation |
|
1413 |
! |
|
1414 |
||
1415 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
1416 |
allowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
1417 |
! |
|
1418 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1419 |
allowHashAsBinarySelector |
1713 | 1420 |
^ allowHashAsBinarySelector |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1421 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1422 |
|
1634 | 1423 |
allowLazyValueExtension |
1424 |
^ allowLazyValueExtension |
|
1425 |
! |
|
1426 |
||
1427 |
allowLazyValueExtension:something |
|
1428 |
allowLazyValueExtension := something. |
|
1429 |
! |
|
1430 |
||
1431 |
allowLiteralNameSpaceSymbols |
|
1432 |
^ allowLiteralNameSpaceSymbols |
|
1433 |
! |
|
1434 |
||
1435 |
allowLiteralNameSpaceSymbols:aBoolean |
|
1436 |
allowLiteralNameSpaceSymbols := aBoolean |
|
1437 |
! |
|
1438 |
||
1439 |
allowLocalVariableDeclarationWithInitializerExpression |
|
1440 |
^ allowLocalVariableDeclarationWithInitializerExpression |
|
1441 |
! |
|
1442 |
||
1443 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
1444 |
allowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
1445 |
! |
|
1446 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1447 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1448 |
^ allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1449 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1450 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1451 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1452 |
allowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1453 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1454 |
|
1634 | 1455 |
allowOldStyleAssignment |
1456 |
^ allowOldStyleAssignment |
|
1457 |
! |
|
1458 |
||
1459 |
allowOldStyleAssignment:aBoolean |
|
1460 |
allowOldStyleAssignment := aBoolean |
|
1461 |
! |
|
1462 |
||
1463 |
allowQualifiedNames |
|
1464 |
^ allowQualifiedNames |
|
1465 |
! |
|
1466 |
||
1467 |
allowQualifiedNames:aBoolean |
|
1468 |
allowQualifiedNames := aBoolean. |
|
1469 |
! |
|
1470 |
||
1471 |
allowReservedWordsAsSelectors |
|
1472 |
^ allowReservedWordsAsSelectors |
|
1473 |
! |
|
1474 |
||
1475 |
allowReservedWordsAsSelectors:aBoolean |
|
1476 |
allowReservedWordsAsSelectors := aBoolean. |
|
1477 |
! |
|
1478 |
||
1703 | 1479 |
allowSTVExtensions |
1480 |
"return true, if support for ST/V extensions is enabled." |
|
1481 |
||
1482 |
^ allowSTVExtensions |
|
1483 |
! |
|
1484 |
||
1701 | 1485 |
allowSTVPrimitives |
1486 |
"return true, if support for ST/V primitives is enabled." |
|
1487 |
||
1488 |
^ allowSTVPrimitives |
|
1489 |
! |
|
1490 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1491 |
allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1492 |
^ allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1493 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1494 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1495 |
allowSTXEOLComments:aBoolean |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1496 |
allowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1497 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1498 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1499 |
ParserFlags allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1500 |
ParserFlags allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1501 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1502 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1503 |
|
1634 | 1504 |
allowSqueakExtensions |
1505 |
"return true, if support for squeak extensions |
|
1506 |
computed arrays { .., } |
|
1507 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1508 |
is enabled." |
|
1509 |
||
1510 |
^ allowSqueakExtensions |
|
1511 |
! |
|
1512 |
||
1513 |
allowSqueakExtensions:aBoolean |
|
1514 |
"this allows turning on/off support for squeak extensions: |
|
1515 |
computed arrays { .., } |
|
1516 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1517 |
" |
|
1518 |
||
1519 |
allowSqueakExtensions := aBoolean |
|
1520 |
! |
|
1521 |
||
1689 | 1522 |
allowSqueakPrimitives |
1523 |
"return true, if support for squeak primitives is enabled." |
|
1524 |
||
1525 |
^ allowSqueakPrimitives |
|
1526 |
! |
|
1527 |
||
1528 |
allowSqueakPrimitives:aBoolean |
|
1529 |
"this allows turning on/off support for squeak primitives" |
|
1530 |
||
1531 |
allowSqueakPrimitives := aBoolean |
|
1532 |
! |
|
1533 |
||
1634 | 1534 |
allowUnderscoreInIdentifier |
1535 |
^ allowUnderscoreInIdentifier |
|
1536 |
! |
|
1537 |
||
1538 |
allowUnderscoreInIdentifier:aBoolean |
|
1539 |
allowUnderscoreInIdentifier := aBoolean |
|
1540 |
! |
|
1541 |
||
1542 |
allowVariableReferences |
|
1543 |
^ allowVariableReferences |
|
1544 |
! |
|
1545 |
||
1546 |
allowVariableReferences:aBoolean |
|
1547 |
allowVariableReferences := aBoolean. |
|
1548 |
! |
|
1549 |
||
1655 | 1550 |
allowVisualAgeESSymbolLiterals |
1551 |
^ allowVisualAgeESSymbolLiterals |
|
1552 |
! |
|
1553 |
||
1554 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
1555 |
allowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 1556 |
! |
1557 |
||
1558 |
allowVisualAgePrimitives |
|
1559 |
"return true, if support for V'Age primitives is enabled." |
|
1560 |
||
1561 |
^ allowVisualAgePrimitives |
|
1562 |
! |
|
1563 |
||
1564 |
allowVisualAgePrimitives:aBoolean |
|
1565 |
"this allows turning on/off support for V'Age primitives" |
|
1566 |
||
1567 |
allowVisualAgePrimitives := aBoolean |
|
1773 | 1568 |
! |
1569 |
||
1570 |
allowVisualWorksMethodAnnotations |
|
1571 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
1572 |
||
1573 |
^ allowVisualWorksMethodAnnotations |
|
1574 |
||
1575 |
"Created: / 07-07-2006 / 15:48:30 / cg" |
|
1576 |
! |
|
1577 |
||
1578 |
allowVisualWorksMethodAnnotations:aBoolean |
|
1579 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
1580 |
||
1581 |
^ allowVisualWorksMethodAnnotations := aBoolean |
|
1582 |
||
1583 |
"Created: / 07-07-2006 / 15:49:03 / cg" |
|
1658 | 1584 |
! ! |
1634 | 1585 |
|
1658 | 1586 |
!ParserFlags methodsFor:'accessing-warning-control'! |
1634 | 1587 |
|
1652 | 1588 |
warnAboutBadComments |
1589 |
^ warnAboutBadComments |
|
1590 |
! |
|
1591 |
||
1592 |
warnAboutBadComments:aBoolean |
|
1593 |
warnAboutBadComments := aBoolean. |
|
1594 |
! |
|
1595 |
||
1811 | 1596 |
warnAboutNonLowercaseLocalVariableNames |
1597 |
^ warnAboutNonLowercaseLocalVariableNames |
|
1740 | 1598 |
! |
1599 |
||
1811 | 1600 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
1601 |
warnAboutNonLowercaseLocalVariableNames := aBoolean. |
|
1740 | 1602 |
! |
1603 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1604 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1605 |
^ warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1606 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1607 |
"Created: / 16-11-2006 / 14:24:38 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1608 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1609 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1610 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1611 |
warnAboutPossibleSTCCompilationProblems := aBoolean. |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1612 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1613 |
"Created: / 16-11-2006 / 14:24:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1614 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1615 |
|
2121 | 1616 |
warnAboutPossiblyUnimplementedSelectors |
1617 |
^ warnAboutPossiblyUnimplementedSelectors |
|
1618 |
! |
|
1619 |
||
1620 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
1621 |
warnAboutPossiblyUnimplementedSelectors := aBoolean. |
|
1622 |
! |
|
1623 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1624 |
warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1625 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1626 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1627 |
^ warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1628 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1629 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1630 |
warnAboutReferenceToPrivateClass:aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1631 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1632 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1633 |
warnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1634 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1635 |
|
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1636 |
warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1637 |
^ warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1638 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1639 |
|
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1640 |
warnAboutShortLocalVariableNames:aBoolean |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1641 |
warnAboutShortLocalVariableNames := aBoolean. |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1642 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1643 |
|
1634 | 1644 |
warnAboutVariableNameConventions |
1645 |
^ warnAboutVariableNameConventions |
|
1646 |
! |
|
1647 |
||
1648 |
warnAboutVariableNameConventions:aBoolean |
|
1649 |
warnAboutVariableNameConventions := aBoolean. |
|
1650 |
! |
|
1651 |
||
1652 |
warnAboutWrongVariableNames |
|
1653 |
^ warnAboutWrongVariableNames |
|
1654 |
! |
|
1655 |
||
1656 |
warnAboutWrongVariableNames:aBoolean |
|
1657 |
warnAboutWrongVariableNames := aBoolean. |
|
1658 |
! |
|
1659 |
||
1660 |
warnCommonMistakes |
|
1661 |
^ warnCommonMistakes |
|
1662 |
! |
|
1663 |
||
1664 |
warnCommonMistakes:aBoolean |
|
1665 |
warnCommonMistakes := aBoolean. |
|
1666 |
! |
|
1667 |
||
1668 |
warnDollarInIdentifier |
|
1669 |
^ warnDollarInIdentifier |
|
1670 |
! |
|
1671 |
||
1672 |
warnDollarInIdentifier:aBoolean |
|
1673 |
warnDollarInIdentifier := aBoolean. |
|
1674 |
! |
|
1675 |
||
1638 | 1676 |
warnHiddenVariables |
1677 |
^ warnHiddenVariables |
|
1678 |
! |
|
1679 |
||
1680 |
warnHiddenVariables:aBoolean |
|
1681 |
warnHiddenVariables := aBoolean. |
|
1682 |
! |
|
1683 |
||
1682 | 1684 |
warnInconsistentReturnValues |
1685 |
^ warnInconsistentReturnValues |
|
1686 |
! |
|
1687 |
||
1688 |
warnInconsistentReturnValues:aBoolean |
|
1689 |
warnInconsistentReturnValues := aBoolean. |
|
1690 |
! |
|
1691 |
||
1634 | 1692 |
warnOldStyleAssignment |
1693 |
^ warnOldStyleAssignment |
|
1694 |
! |
|
1695 |
||
1696 |
warnOldStyleAssignment:aBoolean |
|
1697 |
warnOldStyleAssignment := aBoolean. |
|
1698 |
! |
|
1699 |
||
1700 |
warnPossibleIncompatibilities |
|
2057 | 1701 |
"holds true, if possible incompatibilities (with other ST systems) |
1702 |
are to be warned about" |
|
1703 |
||
1634 | 1704 |
^ warnPossibleIncompatibilities |
1705 |
! |
|
1706 |
||
1707 |
warnPossibleIncompatibilities:aBoolean |
|
2057 | 1708 |
"holds true, if possible incompatibilities (with other ST systems) |
1709 |
are to be warned about" |
|
1710 |
||
1634 | 1711 |
warnPossibleIncompatibilities := aBoolean. |
1712 |
! |
|
1713 |
||
1714 |
warnST80Directives |
|
1715 |
^ warnST80Directives |
|
1716 |
! |
|
1717 |
||
1718 |
warnST80Directives:something |
|
1719 |
warnST80Directives := something. |
|
1720 |
! |
|
1721 |
||
1722 |
warnSTXHereExtensionUsed |
|
1723 |
^ warnSTXHereExtensionUsed |
|
1724 |
! |
|
1725 |
||
1726 |
warnSTXHereExtensionUsed:aBoolean |
|
1727 |
warnSTXHereExtensionUsed := aBoolean. |
|
1728 |
! |
|
1729 |
||
1730 |
warnSTXNameSpaceUse |
|
1731 |
^ warnSTXNameSpaceUse |
|
1732 |
! |
|
1733 |
||
1734 |
warnSTXNameSpaceUse:aBoolean |
|
1735 |
warnSTXNameSpaceUse := aBoolean. |
|
1736 |
! |
|
1737 |
||
1738 |
warnSTXSpecialComment |
|
1739 |
^ warnSTXSpecialComment |
|
1740 |
! |
|
1741 |
||
1742 |
warnSTXSpecialComment:aBoolean |
|
1743 |
warnSTXSpecialComment := aBoolean. |
|
1744 |
! |
|
1745 |
||
1746 |
warnUndeclared |
|
1747 |
^ warnUndeclared |
|
1748 |
! |
|
1749 |
||
1750 |
warnUndeclared:aBoolean |
|
1751 |
warnUndeclared := aBoolean. |
|
1752 |
! |
|
1753 |
||
1754 |
warnUnderscoreInIdentifier |
|
1755 |
^ warnUnderscoreInIdentifier |
|
1756 |
! |
|
1757 |
||
1758 |
warnUnderscoreInIdentifier:aBoolean |
|
1759 |
warnUnderscoreInIdentifier := aBoolean. |
|
1760 |
! |
|
1761 |
||
1762 |
warnUnusedVars |
|
1763 |
^ warnUnusedVars |
|
1764 |
! |
|
1765 |
||
1766 |
warnUnusedVars:aBoolean |
|
1767 |
warnUnusedVars := aBoolean. |
|
1662 | 1768 |
! |
1769 |
||
1770 |
warnings |
|
1771 |
^ warnings |
|
1772 |
! |
|
1773 |
||
1774 |
warnings:something |
|
1775 |
warnings := something. |
|
1634 | 1776 |
! ! |
1777 |
||
1778 |
!ParserFlags methodsFor:'initialization'! |
|
1779 |
||
1780 |
initialize |
|
1662 | 1781 |
warnings := Warnings. |
1634 | 1782 |
warnUndeclared := WarnUndeclared. |
1783 |
warnUnusedVars := WarnUnusedVars. |
|
1784 |
warnST80Directives := WarnST80Directives. |
|
1785 |
warnSTXSpecialComment := WarnSTXSpecials. |
|
1786 |
warnSTXNameSpaceUse := WarnSTXSpecials. |
|
1787 |
warnSTXHereExtensionUsed := WarnSTXSpecials. |
|
1788 |
warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier. |
|
1789 |
warnDollarInIdentifier := WarnDollarInIdentifier. |
|
1790 |
warnOldStyleAssignment := WarnOldStyleAssignment. |
|
1791 |
warnCommonMistakes := WarnCommonMistakes. |
|
1792 |
warnPossibleIncompatibilities := WarnPossibleIncompatibilities. |
|
1793 |
warnAboutVariableNameConventions := WarnAboutVariableNameConventions. |
|
1794 |
warnAboutWrongVariableNames := WarnAboutWrongVariableNames. |
|
1652 | 1795 |
warnAboutBadComments := WarnAboutBadComments. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1796 |
warnAboutReferenceToPrivateClass := WarnAboutReferenceToPrivateClass. |
1638 | 1797 |
warnHiddenVariables := WarnHiddenVariables. |
1682 | 1798 |
warnInconsistentReturnValues := WarnInconsistentReturnValues. |
1811 | 1799 |
warnAboutNonLowercaseLocalVariableNames := WarnAboutNonLowercaseLocalVariableNames. |
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1800 |
warnAboutShortLocalVariableNames := WarnAboutShortLocalVariableNames. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1801 |
warnAboutPossibleSTCCompilationProblems := WarnAboutPossibleSTCCompilationProblems. |
2121 | 1802 |
warnAboutPossiblyUnimplementedSelectors := WarnAboutPossiblyUnimplementedSelectors. |
1634 | 1803 |
|
1804 |
allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier. |
|
1805 |
allowDollarInIdentifier := AllowDollarInIdentifier. |
|
1806 |
allowOldStyleAssignment := AllowOldStyleAssignment. |
|
1807 |
allowSqueakExtensions := AllowSqueakExtensions. |
|
1808 |
allowDolphinExtensions := AllowDolphinExtensions. |
|
1809 |
allowLiteralNameSpaceSymbols := AllowLiteralNameSpaceSymbols. |
|
1810 |
allowExtendedBinarySelectors := AllowExtendedBinarySelectors. |
|
1811 |
allowFunctionCallSyntaxForBlockEvaluation := AllowFunctionCallSyntaxForBlockEvaluation. |
|
1812 |
allowLocalVariableDeclarationWithInitializerExpression := AllowLocalVariableDeclarationWithInitializerExpression. |
|
1813 |
allowDomainVariables := AllowDomainVariables. |
|
1814 |
allowArrayIndexSyntaxExtension := AllowArrayIndexSyntaxExtension. |
|
1815 |
allowReservedWordsAsSelectors := AllowReservedWordsAsSelectors. |
|
1816 |
allowVariableReferences := AllowVariableReferences. |
|
1817 |
allowLazyValueExtension := AllowLazyValueExtension. |
|
1818 |
allowFixedPointLiterals := AllowFixedPointLiterals. |
|
1819 |
allowExtendedSTXSyntax := AllowExtendedSTXSyntax. |
|
1820 |
allowQualifiedNames := AllowQualifiedNames. |
|
1655 | 1821 |
allowVisualAgeESSymbolLiterals := AllowVisualAgeESSymbolLiterals. |
1668 | 1822 |
allowExtensionsToPrivateClasses := AllowExtensionsToPrivateClasses. |
1689 | 1823 |
allowVisualAgePrimitives := AllowVisualAgePrimitives. |
1824 |
allowSqueakPrimitives := AllowSqueakPrimitives. |
|
1700 | 1825 |
allowSTVPrimitives := AllowSTVPrimitives. |
1702 | 1826 |
allowSTVExtensions := AllowSTVExtensions. |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1827 |
allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1828 |
allowHashAsBinarySelector := AllowHashAsBinarySelector. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1829 |
allowSTXEOLComments := AllowSTXEOLComments. |
1773 | 1830 |
allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1831 |
allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems. |
1950 | 1832 |
allowEmptyStatements := AllowEmptyStatements. |
1634 | 1833 |
|
1834 |
arraysAreImmutable := ArraysAreImmutable ? true. |
|
1835 |
stringsAreImmutable := StringsAreImmutable ? true. |
|
1836 |
implicitSelfSends := ImplicitSelfSends ? false. |
|
1837 |
||
1658 | 1838 |
stcKeepCIntermediate := STCKeepCIntermediate. |
1839 |
stcKeepOIntermediate := STCKeepOIntermediate. |
|
1840 |
stcKeepSTIntermediate := STCKeepSTIntermediate. |
|
1841 |
stcModulePath := STCModulePath. |
|
1842 |
stcCompilation := STCCompilation. |
|
1843 |
stcCompilationIncludes := STCCompilationIncludes. |
|
1844 |
stcCompilationDefines := STCCompilationDefines. |
|
1845 |
stcCompilationOptions := STCCompilationOptions. |
|
1846 |
stcPath := STCPath. |
|
1847 |
ccCompilationOptions := CCCompilationOptions. |
|
1848 |
ccPath := CCPath. |
|
1849 |
linkArgs := LinkArgs. |
|
1850 |
linkCommand := LinkCommand. |
|
1851 |
libPath := LibPath. |
|
1852 |
searchedLibraries := SearchedLibraries. |
|
1853 |
||
1634 | 1854 |
" |
1855 |
ParserFlags initialize. |
|
1856 |
self new inspect. |
|
1857 |
" |
|
1773 | 1858 |
|
1950 | 1859 |
"Modified: / 20-11-2006 / 14:28:02 / cg" |
1634 | 1860 |
! ! |
1861 |
||
1862 |
!ParserFlags class methodsFor:'documentation'! |
|
1863 |
||
1864 |
version |
|
2121 | 1865 |
^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.43 2008-10-24 12:50:36 cg Exp $' |
1634 | 1866 |
! ! |
1867 |
||
1868 |
ParserFlags initialize! |