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