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