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