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