author | Claus Gittinger <cg@exept.de> |
Mon, 23 May 2011 17:51:42 +0200 | |
changeset 2494 | 8c4913740254 |
parent 2490 | cb034ba95b0c |
child 2624 | 0c171a7d3fa9 |
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. |
|
1194 |
STCModulePath := './modules'. |
|
1195 |
STCCompilation := #default. |
|
1196 |
||
1197 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
1668 | 1198 |
'C:\Borland\bcc55' asFilename exists ifTrue:[ |
1199 |
STCCompilationIncludes := '-I..\..\include -I..\..\libopengl -IC:\Borland\bcc55\Include'. |
|
1200 |
LinkArgs := '-L..\..\libbc -LC:\Borland\bcc55\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1201 |
] ifFalse:[ |
|
1202 |
STCCompilationIncludes := '-I..\..\include -I..\..\libopengl -IC:\Borland\xxxxx\Include'. |
|
1203 |
LinkArgs := '-L..\..\libbc -LC:\Borland\xxxxx\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1204 |
]. |
|
1658 | 1205 |
STCCompilationDefines := '-DWIN32'. |
1206 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
1207 |
STCPath := '..\..\stc\stc.exe'. |
|
2011 | 1208 |
self useBorlandC ifTrue:[ |
1814 | 1209 |
CCPath := 'bcc32'. |
1210 |
MakeCommand := 'bmake'. |
|
1211 |
CCCompilationOptions := '-w-'. |
|
1668 | 1212 |
] ifFalse:[ |
1814 | 1213 |
CCPath := 'cl'. |
1214 |
MakeCommand := 'nmake'. |
|
1215 |
CCCompilationOptions := '-w-'. |
|
1668 | 1216 |
]. |
1658 | 1217 |
LinkCommand := 'ilink32'. |
1218 |
LibPath := ''. |
|
1660
c999eda0067a
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
1658
diff
changeset
|
1219 |
SearchedLibraries := #('import32.lib'). |
2061 | 1220 |
"/ SearchedLibraries := #('import32.lib' 'glu32.lib' 'opengl32.lib'). |
1658 | 1221 |
] ifFalse:[ |
1222 |
STCCompilationIncludes := '-I../../include'. |
|
1223 |
STCCompilationDefines := ''. |
|
1224 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
1225 |
STCPath := '../../stc/stc'. |
|
1226 |
CCCompilationOptions := '-O'. |
|
2011 | 1227 |
ParserFlags useGnuC ifTrue:[ |
1668 | 1228 |
CCPath := 'gcc' |
1229 |
] ifFalse:[ |
|
1230 |
CCPath := 'cc' |
|
1231 |
]. |
|
1658 | 1232 |
LinkArgs := ''. |
1233 |
LinkCommand := 'ld'. |
|
1234 |
LibPath := ''. |
|
1660
c999eda0067a
stc flags moved to ParserFlags
Claus Gittinger <cg@exept.de>
parents:
1658
diff
changeset
|
1235 |
SearchedLibraries := #(). |
1814 | 1236 |
MakeCommand := 'make'. |
1658 | 1237 |
]. |
1238 |
||
1634 | 1239 |
" |
1240 |
ParserFlags initialize |
|
1241 |
" |
|
1773 | 1242 |
|
1814 | 1243 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
2411
fb5d5d0cc373
oops - its in userPrefs (a SystemBrowser setting)
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
1244 |
"Modified: / 17-07-2010 / 14:45:19 / cg" |
1634 | 1245 |
! ! |
1246 |
||
1658 | 1247 |
!ParserFlags methodsFor:'accessing-compilation control'! |
1248 |
||
1668 | 1249 |
allowExtensionsToPrivateClasses |
1250 |
^ allowExtensionsToPrivateClasses |
|
1251 |
! |
|
1252 |
||
1253 |
allowExtensionsToPrivateClasses:aBoolean |
|
1254 |
allowExtensionsToPrivateClasses := aBoolean |
|
1255 |
! |
|
1256 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1257 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1258 |
^ allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1259 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1260 |
"Created: / 16-11-2006 / 14:24:54 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1261 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1262 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1263 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1264 |
allowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1265 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1266 |
"Created: / 16-11-2006 / 14:24:56 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1267 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1268 |
|
1658 | 1269 |
arraysAreImmutable |
1270 |
^ arraysAreImmutable |
|
1271 |
! |
|
1272 |
||
1273 |
arraysAreImmutable:aBoolean |
|
1274 |
arraysAreImmutable := aBoolean. |
|
1275 |
! |
|
1276 |
||
1717
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1277 |
flattenVisualWorksNamespaces |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1278 |
^ true |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1279 |
! |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
1280 |
|
1658 | 1281 |
stringsAreImmutable |
1282 |
^ stringsAreImmutable |
|
1283 |
! |
|
1284 |
||
1285 |
stringsAreImmutable:aBoolean |
|
1286 |
stringsAreImmutable := aBoolean. |
|
1287 |
! ! |
|
1288 |
||
1289 |
!ParserFlags methodsFor:'accessing-stc compilation control'! |
|
1290 |
||
1291 |
ccCompilationOptions |
|
1668 | 1292 |
^ ccCompilationOptions ? '' |
1658 | 1293 |
! |
1294 |
||
1295 |
ccCompilationOptions:something |
|
1296 |
ccCompilationOptions := something. |
|
1297 |
! |
|
1298 |
||
1299 |
ccPath |
|
1300 |
^ ccPath |
|
1301 |
! |
|
1302 |
||
1303 |
ccPath:something |
|
1304 |
ccPath := something. |
|
1305 |
! |
|
1306 |
||
1307 |
implicitSelfSends |
|
1308 |
^ implicitSelfSends |
|
1309 |
! |
|
1310 |
||
1311 |
implicitSelfSends:aBoolean |
|
1312 |
implicitSelfSends := aBoolean. |
|
1313 |
! |
|
1314 |
||
1315 |
libPath |
|
1316 |
^ libPath |
|
1317 |
! |
|
1318 |
||
1319 |
libPath:aString |
|
1320 |
libPath := aString |
|
1321 |
! |
|
1322 |
||
1323 |
linkArgs |
|
1324 |
^ linkArgs |
|
1325 |
! |
|
1326 |
||
1327 |
linkArgs:aString |
|
1328 |
linkArgs := aString |
|
1329 |
! |
|
1330 |
||
1331 |
linkCommand |
|
1332 |
^ linkCommand |
|
1333 |
! |
|
1334 |
||
1335 |
linkCommand:aString |
|
1336 |
linkCommand := aString |
|
1337 |
! |
|
1338 |
||
1898 | 1339 |
linkSharedArgs |
1340 |
^ linkSharedArgs |
|
1341 |
! |
|
1342 |
||
1343 |
linkSharedArgs:aString |
|
1344 |
linkSharedArgs := aString |
|
1345 |
! |
|
1346 |
||
1658 | 1347 |
searchedLibraries |
1348 |
^ searchedLibraries |
|
1349 |
! |
|
1350 |
||
1351 |
searchedLibraries:aString |
|
1352 |
searchedLibraries := aString |
|
1353 |
! |
|
1354 |
||
1355 |
stcCompilation |
|
1356 |
^ stcCompilation |
|
1357 |
! |
|
1358 |
||
1359 |
stcCompilation:something |
|
1360 |
stcCompilation := something. |
|
1361 |
! |
|
1362 |
||
1363 |
stcCompilationDefines |
|
1364 |
^ stcCompilationDefines |
|
1365 |
! |
|
1366 |
||
1367 |
stcCompilationDefines:something |
|
1368 |
stcCompilationDefines := something. |
|
1369 |
! |
|
1370 |
||
1371 |
stcCompilationIncludes |
|
1372 |
^ stcCompilationIncludes |
|
1373 |
! |
|
1374 |
||
1375 |
stcCompilationIncludes:something |
|
1376 |
stcCompilationIncludes := something. |
|
1377 |
! |
|
1378 |
||
1379 |
stcCompilationOptions |
|
1380 |
^ stcCompilationOptions |
|
1381 |
! |
|
1382 |
||
1383 |
stcCompilationOptions:something |
|
1384 |
stcCompilationOptions := something. |
|
1385 |
! |
|
1386 |
||
1387 |
stcKeepCIntermediate |
|
1388 |
^ stcKeepCIntermediate |
|
1389 |
! |
|
1390 |
||
1391 |
stcKeepCIntermediate:something |
|
1392 |
stcKeepCIntermediate := something. |
|
1393 |
! |
|
1394 |
||
1395 |
stcKeepOIntermediate |
|
1396 |
^ stcKeepOIntermediate |
|
1397 |
! |
|
1398 |
||
1399 |
stcKeepOIntermediate:something |
|
1400 |
stcKeepOIntermediate := something. |
|
1401 |
! |
|
1402 |
||
2490 | 1403 |
stcKeepSIntermediate |
1404 |
^ false |
|
1405 |
"/ ^ true |
|
1406 |
! |
|
1407 |
||
1658 | 1408 |
stcKeepSTIntermediate |
1409 |
^ stcKeepSTIntermediate |
|
1410 |
! |
|
1411 |
||
1412 |
stcKeepSTIntermediate:something |
|
1413 |
stcKeepSTIntermediate := something. |
|
1414 |
! |
|
1415 |
||
1416 |
stcModulePath |
|
1417 |
^ stcModulePath |
|
1418 |
! |
|
1419 |
||
1420 |
stcModulePath:something |
|
1421 |
stcModulePath := something. |
|
1422 |
! |
|
1423 |
||
1424 |
stcPath |
|
1425 |
^ stcPath |
|
1426 |
! |
|
1427 |
||
1428 |
stcPath:something |
|
1429 |
stcPath := something. |
|
1430 |
! ! |
|
1431 |
||
1432 |
!ParserFlags methodsFor:'accessing-syntax-control'! |
|
1634 | 1433 |
|
1434 |
allowArrayIndexSyntaxExtension |
|
1435 |
^ allowArrayIndexSyntaxExtension |
|
1436 |
! |
|
1437 |
||
1438 |
allowArrayIndexSyntaxExtension:aBoolean |
|
1439 |
allowArrayIndexSyntaxExtension := aBoolean. |
|
1440 |
! |
|
1441 |
||
2306 | 1442 |
allowCaretAsBinop |
1443 |
^ allowCaretAsBinop |
|
1444 |
! |
|
1445 |
||
1446 |
allowCaretAsBinop:aBoolean |
|
1447 |
allowCaretAsBinop := aBoolean. |
|
1448 |
! |
|
1449 |
||
2312 | 1450 |
allowCharacterEscapes |
1451 |
^ allowCharacterEscapes |
|
1452 |
! |
|
1453 |
||
1454 |
allowCharacterEscapes:aBoolean |
|
1455 |
allowCharacterEscapes := aBoolean. |
|
1456 |
! |
|
1457 |
||
1634 | 1458 |
allowDollarInIdentifier |
1459 |
^ allowDollarInIdentifier |
|
1460 |
! |
|
1461 |
||
1462 |
allowDollarInIdentifier:aBoolean |
|
1463 |
allowDollarInIdentifier := aBoolean. |
|
1464 |
! |
|
1465 |
||
1466 |
allowDolphinExtensions |
|
1467 |
^ allowDolphinExtensions |
|
1468 |
! |
|
1469 |
||
1470 |
allowDolphinExtensions:aBoolean |
|
1471 |
allowDolphinExtensions := aBoolean |
|
1472 |
! |
|
1473 |
||
1474 |
allowDomainVariables |
|
1475 |
^ allowDomainVariables |
|
1476 |
! |
|
1477 |
||
1478 |
allowDomainVariables:aBoolean |
|
1479 |
allowDomainVariables := aBoolean. |
|
1480 |
! |
|
1481 |
||
1950 | 1482 |
allowEmptyStatements |
1483 |
^ allowEmptyStatements ? false |
|
1484 |
||
1485 |
"Created: / 20-11-2006 / 13:56:14 / cg" |
|
1486 |
! |
|
1487 |
||
1488 |
allowEmptyStatements:aBoolean |
|
1489 |
allowEmptyStatements := aBoolean. |
|
1490 |
||
1491 |
"Created: / 20-11-2006 / 14:26:48 / cg" |
|
1492 |
! |
|
1493 |
||
1634 | 1494 |
allowExtendedBinarySelectors |
1495 |
^ allowExtendedBinarySelectors |
|
1496 |
! |
|
1497 |
||
1498 |
allowExtendedBinarySelectors:aBoolean |
|
1499 |
allowExtendedBinarySelectors := aBoolean. |
|
1500 |
! |
|
1501 |
||
1502 |
allowExtendedSTXSyntax |
|
1503 |
^ allowExtendedSTXSyntax |
|
1504 |
! |
|
1505 |
||
1506 |
allowExtendedSTXSyntax:something |
|
1507 |
allowExtendedSTXSyntax := something. |
|
1508 |
! |
|
1509 |
||
1510 |
allowFixedPointLiterals |
|
1511 |
^ allowFixedPointLiterals |
|
1512 |
! |
|
1513 |
||
1514 |
allowFixedPointLiterals:something |
|
1515 |
allowFixedPointLiterals := something. |
|
1516 |
! |
|
1517 |
||
1518 |
allowFunctionCallSyntaxForBlockEvaluation |
|
1519 |
^ allowFunctionCallSyntaxForBlockEvaluation |
|
1520 |
! |
|
1521 |
||
1522 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
1523 |
allowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
1524 |
! |
|
1525 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1526 |
allowHashAsBinarySelector |
1713 | 1527 |
^ allowHashAsBinarySelector |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1528 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1529 |
|
1634 | 1530 |
allowLazyValueExtension |
1531 |
^ allowLazyValueExtension |
|
1532 |
! |
|
1533 |
||
1534 |
allowLazyValueExtension:something |
|
1535 |
allowLazyValueExtension := something. |
|
1536 |
! |
|
1537 |
||
1538 |
allowLiteralNameSpaceSymbols |
|
1539 |
^ allowLiteralNameSpaceSymbols |
|
1540 |
! |
|
1541 |
||
1542 |
allowLiteralNameSpaceSymbols:aBoolean |
|
1543 |
allowLiteralNameSpaceSymbols := aBoolean |
|
1544 |
! |
|
1545 |
||
1546 |
allowLocalVariableDeclarationWithInitializerExpression |
|
1547 |
^ allowLocalVariableDeclarationWithInitializerExpression |
|
1548 |
! |
|
1549 |
||
1550 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
1551 |
allowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
1552 |
! |
|
1553 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1554 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1555 |
^ allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1556 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1557 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1558 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1559 |
allowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1560 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1561 |
|
1634 | 1562 |
allowOldStyleAssignment |
1563 |
^ allowOldStyleAssignment |
|
1564 |
! |
|
1565 |
||
1566 |
allowOldStyleAssignment:aBoolean |
|
1567 |
allowOldStyleAssignment := aBoolean |
|
1568 |
! |
|
1569 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1570 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1571 |
^ allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1572 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1573 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1574 |
allowPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1575 |
allowPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1576 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1577 |
|
1634 | 1578 |
allowQualifiedNames |
1579 |
^ allowQualifiedNames |
|
1580 |
! |
|
1581 |
||
1582 |
allowQualifiedNames:aBoolean |
|
1583 |
allowQualifiedNames := aBoolean. |
|
1584 |
! |
|
1585 |
||
1586 |
allowReservedWordsAsSelectors |
|
1587 |
^ allowReservedWordsAsSelectors |
|
1588 |
! |
|
1589 |
||
1590 |
allowReservedWordsAsSelectors:aBoolean |
|
1591 |
allowReservedWordsAsSelectors := aBoolean. |
|
1592 |
! |
|
1593 |
||
1703 | 1594 |
allowSTVExtensions |
1595 |
"return true, if support for ST/V extensions is enabled." |
|
1596 |
||
1597 |
^ allowSTVExtensions |
|
1598 |
! |
|
1599 |
||
1701 | 1600 |
allowSTVPrimitives |
1601 |
"return true, if support for ST/V primitives is enabled." |
|
1602 |
||
1603 |
^ allowSTVPrimitives |
|
1604 |
! |
|
1605 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1606 |
allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1607 |
^ allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1608 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1609 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1610 |
allowSTXEOLComments:aBoolean |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1611 |
allowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1612 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1613 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1614 |
ParserFlags allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1615 |
ParserFlags allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1616 |
" |
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 |
|
2494 | 1619 |
allowSTXFunctions |
1620 |
^ false |
|
1621 |
||
1622 |
"Created: / 23-05-2011 / 17:43:45 / cg" |
|
1623 |
! |
|
1624 |
||
1634 | 1625 |
allowSqueakExtensions |
1626 |
"return true, if support for squeak extensions |
|
1627 |
computed arrays { .., } |
|
1628 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1629 |
is enabled." |
|
1630 |
||
1631 |
^ allowSqueakExtensions |
|
1632 |
! |
|
1633 |
||
1634 |
allowSqueakExtensions:aBoolean |
|
1635 |
"this allows turning on/off support for squeak extensions: |
|
1636 |
computed arrays { .., } |
|
1637 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1638 |
" |
|
1639 |
||
1640 |
allowSqueakExtensions := aBoolean |
|
1641 |
! |
|
1642 |
||
1689 | 1643 |
allowSqueakPrimitives |
1644 |
"return true, if support for squeak primitives is enabled." |
|
1645 |
||
1646 |
^ allowSqueakPrimitives |
|
1647 |
! |
|
1648 |
||
1649 |
allowSqueakPrimitives:aBoolean |
|
1650 |
"this allows turning on/off support for squeak primitives" |
|
1651 |
||
1652 |
allowSqueakPrimitives := aBoolean |
|
1653 |
! |
|
1654 |
||
2313 | 1655 |
allowStringEscapes |
1656 |
^ allowStringEscapes |
|
1657 |
! |
|
1658 |
||
1659 |
allowStringEscapes:aBoolean |
|
1660 |
allowStringEscapes := aBoolean. |
|
1661 |
! |
|
1662 |
||
1634 | 1663 |
allowUnderscoreInIdentifier |
1664 |
^ allowUnderscoreInIdentifier |
|
1665 |
! |
|
1666 |
||
1667 |
allowUnderscoreInIdentifier:aBoolean |
|
1668 |
allowUnderscoreInIdentifier := aBoolean |
|
1669 |
! |
|
1670 |
||
2310 | 1671 |
allowUnicodeCharacters |
1672 |
^ allowUnicodeCharacters |
|
1673 |
! |
|
1674 |
||
1675 |
allowUnicodeCharacters:aBoolean |
|
1676 |
allowUnicodeCharacters := aBoolean |
|
1677 |
! |
|
1678 |
||
2307 | 1679 |
allowUnicodeStrings |
1680 |
^ allowUnicodeStrings |
|
1681 |
! |
|
1682 |
||
1683 |
allowUnicodeStrings:aBoolean |
|
1684 |
allowUnicodeStrings := aBoolean |
|
1685 |
! |
|
1686 |
||
1634 | 1687 |
allowVariableReferences |
1688 |
^ allowVariableReferences |
|
1689 |
! |
|
1690 |
||
1691 |
allowVariableReferences:aBoolean |
|
1692 |
allowVariableReferences := aBoolean. |
|
1693 |
! |
|
1694 |
||
1655 | 1695 |
allowVisualAgeESSymbolLiterals |
1696 |
^ allowVisualAgeESSymbolLiterals |
|
1697 |
! |
|
1698 |
||
1699 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
1700 |
allowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 1701 |
! |
1702 |
||
1703 |
allowVisualAgePrimitives |
|
1704 |
"return true, if support for V'Age primitives is enabled." |
|
1705 |
||
1706 |
^ allowVisualAgePrimitives |
|
1707 |
! |
|
1708 |
||
1709 |
allowVisualAgePrimitives:aBoolean |
|
1710 |
"this allows turning on/off support for V'Age primitives" |
|
1711 |
||
1712 |
allowVisualAgePrimitives := aBoolean |
|
1773 | 1713 |
! |
1714 |
||
1715 |
allowVisualWorksMethodAnnotations |
|
1716 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
1717 |
||
1718 |
^ allowVisualWorksMethodAnnotations |
|
1719 |
||
1720 |
"Created: / 07-07-2006 / 15:48:30 / cg" |
|
1721 |
! |
|
1722 |
||
1723 |
allowVisualWorksMethodAnnotations:aBoolean |
|
1724 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
1725 |
||
1726 |
^ allowVisualWorksMethodAnnotations := aBoolean |
|
1727 |
||
1728 |
"Created: / 07-07-2006 / 15:49:03 / cg" |
|
1658 | 1729 |
! ! |
1634 | 1730 |
|
1658 | 1731 |
!ParserFlags methodsFor:'accessing-warning-control'! |
1634 | 1732 |
|
1652 | 1733 |
warnAboutBadComments |
1734 |
^ warnAboutBadComments |
|
1735 |
! |
|
1736 |
||
1737 |
warnAboutBadComments:aBoolean |
|
1738 |
warnAboutBadComments := aBoolean. |
|
1739 |
! |
|
1740 |
||
1811 | 1741 |
warnAboutNonLowercaseLocalVariableNames |
1742 |
^ warnAboutNonLowercaseLocalVariableNames |
|
1740 | 1743 |
! |
1744 |
||
1811 | 1745 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
1746 |
warnAboutNonLowercaseLocalVariableNames := aBoolean. |
|
1740 | 1747 |
! |
1748 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1749 |
warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1750 |
^ warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1751 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1752 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1753 |
warnAboutPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1754 |
warnAboutPeriodInSymbol := aBoolean. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1755 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1756 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1757 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1758 |
^ warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1759 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1760 |
"Created: / 16-11-2006 / 14:24:38 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1761 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1762 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1763 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1764 |
warnAboutPossibleSTCCompilationProblems := aBoolean. |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1765 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1766 |
"Created: / 16-11-2006 / 14:24:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1767 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1768 |
|
2121 | 1769 |
warnAboutPossiblyUnimplementedSelectors |
1770 |
^ warnAboutPossiblyUnimplementedSelectors |
|
1771 |
! |
|
1772 |
||
1773 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
1774 |
warnAboutPossiblyUnimplementedSelectors := aBoolean. |
|
1775 |
! |
|
1776 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1777 |
warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1778 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1779 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1780 |
^ warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1781 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1782 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1783 |
warnAboutReferenceToPrivateClass:aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1784 |
"controls generation of warning messages when a private class is referenced" |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1785 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1786 |
warnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1787 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1788 |
|
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1789 |
warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1790 |
^ warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1791 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1792 |
|
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1793 |
warnAboutShortLocalVariableNames:aBoolean |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1794 |
warnAboutShortLocalVariableNames := aBoolean. |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1795 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1796 |
|
1634 | 1797 |
warnAboutVariableNameConventions |
1798 |
^ warnAboutVariableNameConventions |
|
1799 |
! |
|
1800 |
||
1801 |
warnAboutVariableNameConventions:aBoolean |
|
1802 |
warnAboutVariableNameConventions := aBoolean. |
|
1803 |
! |
|
1804 |
||
1805 |
warnAboutWrongVariableNames |
|
1806 |
^ warnAboutWrongVariableNames |
|
1807 |
! |
|
1808 |
||
1809 |
warnAboutWrongVariableNames:aBoolean |
|
1810 |
warnAboutWrongVariableNames := aBoolean. |
|
1811 |
! |
|
1812 |
||
1813 |
warnCommonMistakes |
|
1814 |
^ warnCommonMistakes |
|
1815 |
! |
|
1816 |
||
1817 |
warnCommonMistakes:aBoolean |
|
1818 |
warnCommonMistakes := aBoolean. |
|
1819 |
! |
|
1820 |
||
1821 |
warnDollarInIdentifier |
|
1822 |
^ warnDollarInIdentifier |
|
1823 |
! |
|
1824 |
||
1825 |
warnDollarInIdentifier:aBoolean |
|
1826 |
warnDollarInIdentifier := aBoolean. |
|
1827 |
! |
|
1828 |
||
1638 | 1829 |
warnHiddenVariables |
1830 |
^ warnHiddenVariables |
|
1831 |
! |
|
1832 |
||
1833 |
warnHiddenVariables:aBoolean |
|
2465 | 1834 |
"controls generation of warning messages about hiding variables by locals" |
1835 |
||
1638 | 1836 |
warnHiddenVariables := aBoolean. |
2465 | 1837 |
|
1838 |
"Modified: / 30-11-2010 / 15:00:55 / cg" |
|
1638 | 1839 |
! |
1840 |
||
1682 | 1841 |
warnInconsistentReturnValues |
1842 |
^ warnInconsistentReturnValues |
|
1843 |
! |
|
1844 |
||
1845 |
warnInconsistentReturnValues:aBoolean |
|
1846 |
warnInconsistentReturnValues := aBoolean. |
|
1847 |
! |
|
1848 |
||
1634 | 1849 |
warnOldStyleAssignment |
1850 |
^ warnOldStyleAssignment |
|
1851 |
! |
|
1852 |
||
1853 |
warnOldStyleAssignment:aBoolean |
|
1854 |
warnOldStyleAssignment := aBoolean. |
|
1855 |
! |
|
1856 |
||
1857 |
warnPossibleIncompatibilities |
|
2057 | 1858 |
"holds true, if possible incompatibilities (with other ST systems) |
1859 |
are to be warned about" |
|
1860 |
||
1634 | 1861 |
^ warnPossibleIncompatibilities |
1862 |
! |
|
1863 |
||
1864 |
warnPossibleIncompatibilities:aBoolean |
|
2057 | 1865 |
"holds true, if possible incompatibilities (with other ST systems) |
1866 |
are to be warned about" |
|
1867 |
||
1634 | 1868 |
warnPossibleIncompatibilities := aBoolean. |
1869 |
! |
|
1870 |
||
1871 |
warnST80Directives |
|
1872 |
^ warnST80Directives |
|
1873 |
! |
|
1874 |
||
2476 | 1875 |
warnST80Directives:aBoolean |
1876 |
warnST80Directives := aBoolean. |
|
1877 |
||
1878 |
"Modified: / 30-01-2011 / 13:01:06 / cg" |
|
1634 | 1879 |
! |
1880 |
||
1881 |
warnSTXHereExtensionUsed |
|
1882 |
^ warnSTXHereExtensionUsed |
|
1883 |
! |
|
1884 |
||
1885 |
warnSTXHereExtensionUsed:aBoolean |
|
1886 |
warnSTXHereExtensionUsed := aBoolean. |
|
1887 |
! |
|
1888 |
||
1889 |
warnSTXNameSpaceUse |
|
1890 |
^ warnSTXNameSpaceUse |
|
1891 |
! |
|
1892 |
||
1893 |
warnSTXNameSpaceUse:aBoolean |
|
1894 |
warnSTXNameSpaceUse := aBoolean. |
|
1895 |
! |
|
1896 |
||
1897 |
warnSTXSpecialComment |
|
1898 |
^ warnSTXSpecialComment |
|
1899 |
! |
|
1900 |
||
1901 |
warnSTXSpecialComment:aBoolean |
|
1902 |
warnSTXSpecialComment := aBoolean. |
|
1903 |
! |
|
1904 |
||
1905 |
warnUndeclared |
|
1906 |
^ warnUndeclared |
|
1907 |
! |
|
1908 |
||
1909 |
warnUndeclared:aBoolean |
|
1910 |
warnUndeclared := aBoolean. |
|
1911 |
! |
|
1912 |
||
1913 |
warnUnderscoreInIdentifier |
|
1914 |
^ warnUnderscoreInIdentifier |
|
1915 |
! |
|
1916 |
||
1917 |
warnUnderscoreInIdentifier:aBoolean |
|
1918 |
warnUnderscoreInIdentifier := aBoolean. |
|
1919 |
! |
|
1920 |
||
1921 |
warnUnusedVars |
|
1922 |
^ warnUnusedVars |
|
1923 |
! |
|
1924 |
||
1925 |
warnUnusedVars:aBoolean |
|
1926 |
warnUnusedVars := aBoolean. |
|
1662 | 1927 |
! |
1928 |
||
1929 |
warnings |
|
2477 | 1930 |
^ warnings ? true |
1931 |
||
1932 |
"Modified: / 30-01-2011 / 13:05:48 / cg" |
|
1662 | 1933 |
! |
1934 |
||
2476 | 1935 |
warnings:aBoolean |
1936 |
warnings := aBoolean. |
|
1937 |
||
1938 |
"Modified: / 30-01-2011 / 13:00:51 / cg" |
|
1634 | 1939 |
! ! |
1940 |
||
1941 |
!ParserFlags methodsFor:'initialization'! |
|
1942 |
||
1943 |
initialize |
|
1662 | 1944 |
warnings := Warnings. |
1634 | 1945 |
warnUndeclared := WarnUndeclared. |
1946 |
warnUnusedVars := WarnUnusedVars. |
|
1947 |
warnST80Directives := WarnST80Directives. |
|
1948 |
warnSTXSpecialComment := WarnSTXSpecials. |
|
1949 |
warnSTXNameSpaceUse := WarnSTXSpecials. |
|
1950 |
warnSTXHereExtensionUsed := WarnSTXSpecials. |
|
1951 |
warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier. |
|
1952 |
warnDollarInIdentifier := WarnDollarInIdentifier. |
|
1953 |
warnOldStyleAssignment := WarnOldStyleAssignment. |
|
1954 |
warnCommonMistakes := WarnCommonMistakes. |
|
1955 |
warnPossibleIncompatibilities := WarnPossibleIncompatibilities. |
|
1956 |
warnAboutVariableNameConventions := WarnAboutVariableNameConventions. |
|
1957 |
warnAboutWrongVariableNames := WarnAboutWrongVariableNames. |
|
1652 | 1958 |
warnAboutBadComments := WarnAboutBadComments. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1959 |
warnAboutReferenceToPrivateClass := WarnAboutReferenceToPrivateClass. |
1638 | 1960 |
warnHiddenVariables := WarnHiddenVariables. |
1682 | 1961 |
warnInconsistentReturnValues := WarnInconsistentReturnValues. |
1811 | 1962 |
warnAboutNonLowercaseLocalVariableNames := WarnAboutNonLowercaseLocalVariableNames. |
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
1963 |
warnAboutShortLocalVariableNames := WarnAboutShortLocalVariableNames. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1964 |
warnAboutPossibleSTCCompilationProblems := WarnAboutPossibleSTCCompilationProblems. |
2121 | 1965 |
warnAboutPossiblyUnimplementedSelectors := WarnAboutPossiblyUnimplementedSelectors. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1966 |
warnAboutPeriodInSymbol := WarnAboutPeriodInSymbol. |
1634 | 1967 |
|
1968 |
allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier. |
|
1969 |
allowDollarInIdentifier := AllowDollarInIdentifier. |
|
1970 |
allowOldStyleAssignment := AllowOldStyleAssignment. |
|
1971 |
allowSqueakExtensions := AllowSqueakExtensions. |
|
1972 |
allowDolphinExtensions := AllowDolphinExtensions. |
|
1973 |
allowLiteralNameSpaceSymbols := AllowLiteralNameSpaceSymbols. |
|
1974 |
allowExtendedBinarySelectors := AllowExtendedBinarySelectors. |
|
2306 | 1975 |
allowCaretAsBinop := AllowCaretAsBinop. |
1634 | 1976 |
allowFunctionCallSyntaxForBlockEvaluation := AllowFunctionCallSyntaxForBlockEvaluation. |
1977 |
allowLocalVariableDeclarationWithInitializerExpression := AllowLocalVariableDeclarationWithInitializerExpression. |
|
1978 |
allowDomainVariables := AllowDomainVariables. |
|
1979 |
allowArrayIndexSyntaxExtension := AllowArrayIndexSyntaxExtension. |
|
1980 |
allowReservedWordsAsSelectors := AllowReservedWordsAsSelectors. |
|
1981 |
allowVariableReferences := AllowVariableReferences. |
|
1982 |
allowLazyValueExtension := AllowLazyValueExtension. |
|
1983 |
allowFixedPointLiterals := AllowFixedPointLiterals. |
|
1984 |
allowExtendedSTXSyntax := AllowExtendedSTXSyntax. |
|
1985 |
allowQualifiedNames := AllowQualifiedNames. |
|
1655 | 1986 |
allowVisualAgeESSymbolLiterals := AllowVisualAgeESSymbolLiterals. |
1668 | 1987 |
allowExtensionsToPrivateClasses := AllowExtensionsToPrivateClasses. |
1689 | 1988 |
allowVisualAgePrimitives := AllowVisualAgePrimitives. |
1989 |
allowSqueakPrimitives := AllowSqueakPrimitives. |
|
1700 | 1990 |
allowSTVPrimitives := AllowSTVPrimitives. |
1702 | 1991 |
allowSTVExtensions := AllowSTVExtensions. |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1992 |
allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
1993 |
allowHashAsBinarySelector := AllowHashAsBinarySelector. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1994 |
allowSTXEOLComments := AllowSTXEOLComments. |
1773 | 1995 |
allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1996 |
allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems. |
1950 | 1997 |
allowEmptyStatements := AllowEmptyStatements. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1998 |
allowPeriodInSymbol := AllowPeriodInSymbol. |
2311 | 1999 |
"/ these are only supported in the new compiler |
2307 | 2000 |
allowUnicodeStrings := AllowUnicodeStrings. |
2310 | 2001 |
allowUnicodeCharacters := AllowUnicodeCharacters. |
2311 | 2002 |
allowCharacterEscapes := AllowCharacterEscapes. |
2313 | 2003 |
allowStringEscapes := AllowStringEscapes. |
1634 | 2004 |
|
2005 |
arraysAreImmutable := ArraysAreImmutable ? true. |
|
2006 |
stringsAreImmutable := StringsAreImmutable ? true. |
|
2007 |
implicitSelfSends := ImplicitSelfSends ? false. |
|
2008 |
||
1658 | 2009 |
stcKeepCIntermediate := STCKeepCIntermediate. |
2010 |
stcKeepOIntermediate := STCKeepOIntermediate. |
|
2011 |
stcKeepSTIntermediate := STCKeepSTIntermediate. |
|
2012 |
stcModulePath := STCModulePath. |
|
2013 |
stcCompilation := STCCompilation. |
|
2014 |
stcCompilationIncludes := STCCompilationIncludes. |
|
2015 |
stcCompilationDefines := STCCompilationDefines. |
|
2016 |
stcCompilationOptions := STCCompilationOptions. |
|
2017 |
stcPath := STCPath. |
|
2018 |
ccCompilationOptions := CCCompilationOptions. |
|
2019 |
ccPath := CCPath. |
|
2020 |
linkArgs := LinkArgs. |
|
2021 |
linkCommand := LinkCommand. |
|
2022 |
libPath := LibPath. |
|
2023 |
searchedLibraries := SearchedLibraries. |
|
2024 |
||
1634 | 2025 |
" |
2026 |
ParserFlags initialize. |
|
2027 |
self new inspect. |
|
2028 |
" |
|
1773 | 2029 |
|
2411
fb5d5d0cc373
oops - its in userPrefs (a SystemBrowser setting)
Claus Gittinger <cg@exept.de>
parents:
2410
diff
changeset
|
2030 |
"Modified: / 17-07-2010 / 14:44:56 / cg" |
1634 | 2031 |
! ! |
2032 |
||
2033 |
!ParserFlags class methodsFor:'documentation'! |
|
2034 |
||
2035 |
version |
|
2494 | 2036 |
^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.63 2011-05-23 15:51:42 cg Exp $' |
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2037 |
! |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2038 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2039 |
version_CVS |
2494 | 2040 |
^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.63 2011-05-23 15:51:42 cg Exp $' |
1634 | 2041 |
! ! |
2042 |
||
2043 |
ParserFlags initialize! |