author | Claus Gittinger <cg@exept.de> |
Mon, 12 Dec 2016 13:38:37 +0100 | |
changeset 4078 | 2ab3356da639 |
parent 4051 | 8ba6c9877134 |
child 4061 | ebdd14acce2d |
child 4085 | 37418a44b701 |
permissions | -rw-r--r-- |
1634 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
3 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
3396 | 4 |
All Rights Reserved |
1634 | 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 |
" |
|
3576 | 13 |
"{ Package: 'stx:libcomp' }" |
14 |
||
15 |
"{ NameSpace: Smalltalk }" |
|
16 |
||
17 |
Object subclass:#ParserFlags |
|
18 |
instanceVariableNames:'warnings warnUnusedVars warnUndeclared warnST80Directives |
|
19 |
warnSTXHereExtensionUsed warnSTXSpecialComment |
|
20 |
warnUnderscoreInIdentifier warnOldStyleAssignment |
|
21 |
warnCommonMistakes warnSTXNameSpaceUse |
|
22 |
warnPossibleIncompatibilities warnDollarInIdentifier |
|
4041 | 23 |
warnParagraphInIdentifier warnHiddenVariables |
24 |
warnAboutVariableNameConventions warnAboutWrongVariableNames |
|
25 |
warnAboutBadComments warnInconsistentReturnValues |
|
3576 | 26 |
warnAboutNonLowercaseLocalVariableNames |
27 |
warnAboutPossibleSTCCompilationProblems |
|
28 |
warnAboutReferenceToPrivateClass warnAboutShortLocalVariableNames |
|
29 |
warnAboutPossiblyUnimplementedSelectors |
|
30 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
|
31 |
warnPlausibilityChecks allowLiteralNameSpaceSymbols |
|
32 |
allowUnderscoreInIdentifier allowDollarInIdentifier |
|
4041 | 33 |
allowParagraphInIdentifier allowOldStyleAssignment |
34 |
allowSqueakExtensions allowDolphinExtensions |
|
35 |
allowExtendedBinarySelectors allowQualifiedNames |
|
36 |
allowFunctionCallSyntaxForBlockEvaluation |
|
3576 | 37 |
allowLocalVariableDeclarationWithInitializerExpression |
38 |
allowDomainVariables allowArrayIndexSyntaxExtension |
|
39 |
allowReservedWordsAsSelectors allowVariableReferences |
|
40 |
allowLazyValueExtension allowFixedPointLiterals |
|
41 |
allowExtendedSTXSyntax allowVisualAgeESSymbolLiterals |
|
42 |
allowExtensionsToPrivateClasses allowSqueakPrimitives |
|
43 |
allowVisualAgePrimitives allowSTVPrimitives allowSTVExtensions |
|
44 |
allowNationalCharactersInIdentifier allowHashAsBinarySelector |
|
45 |
allowSTXEOLComments allowEmptyStatements |
|
46 |
allowVisualWorksMethodAnnotations |
|
47 |
allowPossibleSTCCompilationProblems arraysAreImmutable |
|
48 |
stringsAreImmutable implicitSelfSends stcKeepCIntermediate |
|
49 |
stcKeepOIntermediate stcKeepSTIntermediate stcModulePath |
|
50 |
stcCompilation stcCompilationIncludes stcCompilationDefines |
|
51 |
stcCompilationOptions stcPath ccCompilationOptions ccPath |
|
52 |
linkArgs linkSharedArgs linkCommand libPath searchedLibraries |
|
53 |
warnAboutPeriodInSymbol allowPeriodInSymbol allowCaretAsBinop |
|
54 |
allowUnicodeStrings allowUnicodeCharacters allowCharacterEscapes |
|
55 |
allowStringEscapes allowAssignmentToBlockArgument |
|
56 |
allowAssignmentToMethodArgument allowAssignmentToPoolVariable |
|
57 |
lineNumberInfo allowSTXDelimiterComments |
|
3945 | 58 |
allowSTXExtendedArrayLiterals warnAssignmentToBlockArgument |
59 |
warnAssignmentToMethodArgument warnAssignmentToPoolVariable' |
|
4043 | 60 |
classVariableNames:'AllowArrayIndexSyntaxExtension AllowAssignmentToBlockArgument |
61 |
AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable |
|
62 |
AllowCaretAsBinop AllowCharacterEscapes AllowDollarInIdentifier |
|
63 |
AllowDolphinExtensions AllowDomainVariables AllowEmptyStatements |
|
64 |
AllowExtendedBinarySelectors AllowExtendedSTXSyntax |
|
65 |
AllowExtensionsToPrivateClasses AllowFixedPointLiterals |
|
66 |
AllowFunctionCallSyntaxForBlockEvaluation |
|
67 |
AllowHashAsBinarySelector AllowLazyValueExtension |
|
68 |
AllowLiteralNameSpaceSymbols |
|
3576 | 69 |
AllowLocalVariableDeclarationWithInitializerExpression |
4043 | 70 |
AllowNationalCharactersInIdentifier AllowOldStyleAssignment |
71 |
AllowParagraphInIdentifier AllowPeriodInSymbol |
|
72 |
AllowPossibleSTCCompilationProblems AllowQualifiedNames |
|
73 |
AllowReservedWordsAsSelectors AllowSTVExtensions |
|
74 |
AllowSTVPrimitives AllowSTXDelimiterComments AllowSTXEOLComments |
|
75 |
AllowSTXExtendedArrayLiterals AllowSqueakExtensions |
|
76 |
AllowSqueakPrimitives AllowStringEscapes |
|
77 |
AllowUnderscoreInIdentifier AllowUnicodeCharacters |
|
78 |
AllowUnicodeStrings AllowVariableReferences |
|
79 |
AllowVisualAgeESSymbolLiterals AllowVisualAgePrimitives |
|
80 |
AllowVisualWorksMethodAnnotations ArraysAreImmutable BCCTop |
|
81 |
CCCompilationOptions CCPath DefineForBorlandC DefineForCLANG |
|
82 |
DefineForGNUC DefineForMINGW DefineForMINGW32 DefineForMINGW64 |
|
83 |
DefineForMSC DefineForVisualC ForcedCompiler ImplicitSelfSends |
|
84 |
LibDirectory LibPath LineNumberInfo LinkArgs LinkCommand |
|
85 |
LinkSharedArgs MakeCommand MingwTop PerMethodFlags SDKTop |
|
86 |
STCCompilation STCCompilationDefines STCCompilationIncludes |
|
87 |
STCCompilationOptions STCKeepCIntermediate STCKeepOIntermediate |
|
88 |
STCKeepSTIntermediate STCModulePath STCPath SearchedLibraries |
|
89 |
StringsAreImmutable VCTop WarnAboutBadComments |
|
90 |
WarnAboutNonLowercaseLocalVariableNames WarnAboutPeriodInSymbol |
|
91 |
WarnAboutPossibleSTCCompilationProblems |
|
92 |
WarnAboutPossiblyUnimplementedSelectors |
|
93 |
WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames |
|
94 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
|
95 |
WarnAboutVariableNameConventions WarnAboutWrongVariableNames |
|
96 |
WarnAssignmentToBlockArgument WarnAssignmentToMethodArgument |
|
97 |
WarnAssignmentToPoolVariable WarnCommonMistakes |
|
98 |
WarnDollarInIdentifier WarnHiddenVariables |
|
99 |
WarnInconsistentReturnValues WarnOldStyleAssignment |
|
100 |
WarnParagraphInIdentifier WarnPlausibilityChecks |
|
101 |
WarnPossibleIncompatibilities WarnST80Directives WarnSTXSpecials |
|
4050 | 102 |
WarnUndeclared WarnUnderscoreInIdentifier WarnUnusedVars Warnings |
103 |
AutoDefineVariables' |
|
3576 | 104 |
poolDictionaries:'' |
105 |
category:'System-Compiler' |
|
106 |
! |
|
1634 | 107 |
|
108 |
!ParserFlags class methodsFor:'documentation'! |
|
109 |
||
110 |
copyright |
|
111 |
" |
|
112 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
113 |
COPYRIGHT (c) 2005 by eXept Software AG |
|
3396 | 114 |
All Rights Reserved |
1634 | 115 |
|
116 |
This software is furnished under a license and may be used |
|
117 |
only in accordance with the terms of that license and with the |
|
118 |
inclusion of the above copyright notice. This software may not |
|
119 |
be provided or otherwise made available to, or used by, any |
|
120 |
other person. No title to or ownership of the software is |
|
121 |
hereby transferred. |
|
122 |
" |
|
123 |
! |
|
124 |
||
125 |
documentation |
|
126 |
" |
|
127 |
compiler flags (used to be defined in Scanner and Parser) have been extracted for easier |
|
128 |
individual-method customization (using ST as scripting). |
|
1711 | 129 |
|
3945 | 130 |
The class side provides correspondingly-named variables, which hold the default values. |
131 |
||
1712 | 132 |
howTo_fileInVSE: |
3945 | 133 |
ParserFlags allowSTVExtensions:true. |
134 |
ParserFlags allowSTVPrimitives:true. |
|
135 |
ParserFlags allowSTXEOLComments:false. |
|
2488 | 136 |
|
137 |
for stx debugging: |
|
3945 | 138 |
STCKeepCIntermediate := true |
2488 | 139 |
|
1711 | 140 |
" |
1634 | 141 |
! ! |
142 |
||
143 |
!ParserFlags class methodsFor:'instance creation'! |
|
144 |
||
145 |
new |
|
146 |
^ self basicNew initialize |
|
147 |
! ! |
|
148 |
||
149 |
!ParserFlags class methodsFor:'accessing-compilation control'! |
|
150 |
||
1668 | 151 |
allowExtensionsToPrivateClasses |
152 |
^ AllowExtensionsToPrivateClasses |
|
153 |
! |
|
154 |
||
155 |
allowExtensionsToPrivateClasses:aBoolean |
|
156 |
AllowExtensionsToPrivateClasses := aBoolean |
|
157 |
! |
|
158 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
159 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
160 |
^ AllowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
161 |
|
3546 | 162 |
" |
163 |
self allowPossibleSTCCompilationProblems:true |
|
164 |
self allowPossibleSTCCompilationProblems:false |
|
165 |
||
166 |
self warnAboutPossibleSTCCompilationProblems |
|
167 |
" |
|
168 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
169 |
"Created: / 16-11-2006 / 14:31:36 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
170 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
171 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
172 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
173 |
AllowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
174 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
175 |
"Created: / 16-11-2006 / 14:31:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
176 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
177 |
|
1634 | 178 |
arraysAreImmutable |
3219 | 179 |
"return true if arrays and byteArrays are compiled as immutable literals" |
1634 | 180 |
|
181 |
^ ArraysAreImmutable |
|
182 |
! |
|
183 |
||
184 |
arraysAreImmutable:aBoolean |
|
3219 | 185 |
"turn on/off immutable array and byteArrays literals - default is false for ST-80 compatibilty." |
1634 | 186 |
|
187 |
ArraysAreImmutable := aBoolean. |
|
188 |
||
189 |
" |
|
190 |
can be added to your private.rc file: |
|
191 |
||
3396 | 192 |
ParserFlags arraysAreImmutable:true |
193 |
ParserFlags arraysAreImmutable:false |
|
1634 | 194 |
" |
195 |
! |
|
196 |
||
2927 | 197 |
fullLineNumberInfo |
198 |
^ (self lineNumberInfo == #full) |
|
199 |
||
200 |
"Created: / 26-09-2012 / 14:16:09 / cg" |
|
201 |
! |
|
202 |
||
1634 | 203 |
implicitSelfSends |
204 |
"return true if undefined variables with |
|
205 |
lowercase first character are to be turned |
|
206 |
into implicit self sends" |
|
207 |
||
208 |
^ ImplicitSelfSends |
|
209 |
! |
|
210 |
||
211 |
implicitSelfSends:aBoolean |
|
212 |
"turn on/off implicit self sends" |
|
213 |
||
214 |
ImplicitSelfSends := aBoolean |
|
215 |
||
216 |
" |
|
217 |
Compiler implicitSelfSends:true |
|
3396 | 218 |
Compiler implicitSelfSends:false |
1634 | 219 |
" |
220 |
! |
|
221 |
||
2927 | 222 |
lineNumberInfo |
223 |
^ LineNumberInfo |
|
224 |
||
225 |
"Created: / 26-09-2012 / 13:27:34 / cg" |
|
226 |
! |
|
227 |
||
228 |
lineNumberInfo:aSymbol |
|
229 |
LineNumberInfo := aSymbol. |
|
230 |
||
231 |
"Created: / 26-09-2012 / 13:27:54 / cg" |
|
232 |
! |
|
233 |
||
1634 | 234 |
stringsAreImmutable |
235 |
"return true if strings are immutable literals" |
|
236 |
||
237 |
^ StringsAreImmutable |
|
238 |
||
239 |
"Created: / 3.8.1998 / 14:53:25 / cg" |
|
240 |
! |
|
241 |
||
242 |
stringsAreImmutable:aBoolean |
|
243 |
"turn on/off immutable string literals - default is false for ST-80 compatibilty." |
|
244 |
||
245 |
StringsAreImmutable := aBoolean. |
|
246 |
||
247 |
" |
|
248 |
can be added to your private.rc file: |
|
249 |
||
3396 | 250 |
ParserFlags stringsAreImmutable:true |
251 |
ParserFlags stringsAreImmutable:false |
|
1634 | 252 |
" |
253 |
||
254 |
"Created: / 3.8.1998 / 14:53:28 / cg" |
|
255 |
! ! |
|
256 |
||
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
257 |
!ParserFlags class methodsFor:'accessing-per method flags'! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
258 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
259 |
disableFlag:flagName forClass:class selector:selector |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
260 |
"remember that warnings named flagName (such as #warnUnusedVars) |
3396 | 261 |
are disabled for a particular method. |
262 |
Sent if user wants to disable warnings in the future |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
263 |
(try defining a method with an unused var, to see)" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
264 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
265 |
|key| |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
266 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
267 |
PerMethodFlags isNil ifTrue:[ |
3396 | 268 |
PerMethodFlags := Dictionary new. |
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
269 |
]. |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
270 |
key := class name, '>>',selector. |
2852 | 271 |
PerMethodFlags at:key put:(Timestamp now + self perMethodDisableWarningTimeDuration). |
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
272 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
273 |
"Created: / 28-02-2012 / 12:57:45 / cg" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
274 |
! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
275 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
276 |
isFlag:flagName enabledForClass:class selector:selector |
3295 | 277 |
"return true, if warnings named <flagName> (such as #warnUnusedVars) |
2852 | 278 |
are to be suppressed for a particular method." |
279 |
||
280 |
|key endTime| |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
281 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
282 |
PerMethodFlags isNil ifTrue:[^ true]. |
2830 | 283 |
class isNil ifTrue:[^ true]. |
284 |
selector isNil ifTrue:[^ true]. |
|
285 |
||
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
286 |
key := class name, '>>',selector. |
2852 | 287 |
endTime := PerMethodFlags at:key ifAbsent:nil. |
288 |
endTime isNil ifTrue:[^ true]. |
|
289 |
endTime > Timestamp now ifTrue:[^ false]. |
|
290 |
PerMethodFlags removeKey:key. |
|
291 |
^ true |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
292 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
293 |
"Created: / 28-02-2012 / 12:57:30 / cg" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
294 |
! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
295 |
|
2852 | 296 |
perMethodDisableWarningTimeDuration |
297 |
"when the user wants to suppress a particular warning for a particular |
|
298 |
method, it will be only suppressed for some time duration. |
|
299 |
After that, the suppress will automatically be removed, and normal warnings |
|
300 |
are issued again." |
|
301 |
||
302 |
^ 30 minutes |
|
303 |
||
304 |
"Created: / 08-03-2012 / 10:22:57 / cg" |
|
305 |
! |
|
306 |
||
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
307 |
reenableAllSuppressedFlags |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
308 |
"turn off any suppressed warnings" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
309 |
|
2830 | 310 |
PerMethodFlags := nil |
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
311 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
312 |
"Created: / 28-02-2012 / 12:59:08 / cg" |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
313 |
! ! |
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
314 |
|
1658 | 315 |
!ParserFlags class methodsFor:'accessing-stc compilation control'! |
316 |
||
2645 | 317 |
bccTop:aPath |
318 |
"windows only: define the borland-C installation directory. |
|
319 |
must contain bin\bcc32.exe and include. |
|
320 |
Typically, something like 'C:\borland\bcc55'" |
|
321 |
||
322 |
BCCTop := aPath |
|
323 |
||
324 |
"Created: / 08-08-2011 / 22:41:48 / cg" |
|
325 |
! |
|
326 |
||
1658 | 327 |
ccCompilationOptions |
1668 | 328 |
^ CCCompilationOptions ? '' |
1658 | 329 |
! |
330 |
||
331 |
ccCompilationOptions:aString |
|
332 |
CCCompilationOptions := aString |
|
333 |
! |
|
334 |
||
335 |
ccPath |
|
336 |
^ CCPath |
|
337 |
! |
|
338 |
||
339 |
ccPath:aSymbol |
|
340 |
CCPath := aSymbol |
|
341 |
! |
|
342 |
||
2626 | 343 |
libDirectory |
344 |
^ LibDirectory |
|
345 |
||
346 |
"Created: / 07-08-2011 / 14:01:21 / cg" |
|
347 |
! |
|
348 |
||
349 |
libDirectory:aString |
|
350 |
LibDirectory := aString |
|
351 |
||
352 |
"Created: / 07-08-2011 / 14:01:28 / cg" |
|
353 |
! |
|
354 |
||
1658 | 355 |
libPath |
356 |
^ LibPath |
|
357 |
! |
|
358 |
||
359 |
libPath:aString |
|
360 |
LibPath := aString |
|
361 |
! |
|
362 |
||
363 |
linkArgs |
|
364 |
^ LinkArgs |
|
365 |
! |
|
366 |
||
367 |
linkArgs:aString |
|
368 |
LinkArgs := aString |
|
369 |
! |
|
370 |
||
371 |
linkCommand |
|
372 |
^ LinkCommand |
|
373 |
! |
|
374 |
||
375 |
linkCommand:aString |
|
376 |
LinkCommand := aString |
|
377 |
! |
|
378 |
||
1898 | 379 |
linkSharedArgs |
380 |
^ LinkSharedArgs |
|
381 |
! |
|
382 |
||
383 |
linkSharedArgs:aString |
|
384 |
LinkSharedArgs := aString |
|
2829
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
385 |
|
c4b600d7f96d
support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents:
2805
diff
changeset
|
386 |
"Modified (format): / 28-02-2012 / 13:34:58 / cg" |
1898 | 387 |
! |
388 |
||
1814 | 389 |
makeCommand |
390 |
^ MakeCommand |
|
391 |
||
392 |
"Created: / 09-08-2006 / 18:45:04 / fm" |
|
393 |
! |
|
394 |
||
395 |
makeCommand:aString |
|
396 |
MakeCommand := aString |
|
397 |
||
398 |
"Created: / 09-08-2006 / 18:45:12 / fm" |
|
399 |
! |
|
400 |
||
2645 | 401 |
sdkTop:aPath |
402 |
"windows only: define the SDK top directory. |
|
403 |
must include folder with windows header files. |
|
404 |
Typically something like 'C:\Program Files\Microsoft SDKs\Windows\v6.0A'" |
|
405 |
||
406 |
SDKTop := aPath |
|
407 |
||
408 |
"Created: / 08-08-2011 / 22:39:24 / cg" |
|
409 |
! |
|
410 |
||
1658 | 411 |
searchedLibraries |
412 |
^ SearchedLibraries |
|
413 |
! |
|
414 |
||
415 |
searchedLibraries:aString |
|
416 |
SearchedLibraries := aString |
|
417 |
! |
|
418 |
||
419 |
stcCompilation |
|
420 |
^ STCCompilation |
|
421 |
! |
|
422 |
||
423 |
stcCompilation:aSymbol |
|
424 |
STCCompilation := aSymbol |
|
425 |
! |
|
426 |
||
427 |
stcCompilationDefines |
|
428 |
^ STCCompilationDefines |
|
429 |
! |
|
430 |
||
431 |
stcCompilationDefines:aString |
|
432 |
STCCompilationDefines := aString |
|
433 |
! |
|
434 |
||
435 |
stcCompilationIncludes |
|
436 |
^ STCCompilationIncludes |
|
437 |
! |
|
438 |
||
439 |
stcCompilationIncludes:aString |
|
440 |
STCCompilationIncludes := aString |
|
441 |
! |
|
442 |
||
443 |
stcCompilationOptions |
|
444 |
^ STCCompilationOptions |
|
445 |
! |
|
446 |
||
447 |
stcCompilationOptions:aString |
|
448 |
STCCompilationOptions := aString |
|
449 |
! |
|
450 |
||
451 |
stcKeepCIntermediate |
|
2701
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
452 |
^ STCKeepCIntermediate ? false |
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
453 |
|
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
454 |
"Modified: / 16-09-2011 / 19:56:18 / cg" |
1658 | 455 |
! |
456 |
||
3396 | 457 |
stcKeepCIntermediate:something |
1658 | 458 |
STCKeepCIntermediate := something. |
1940 | 459 |
|
460 |
" |
|
461 |
STCKeepCIntermediate := true. |
|
462 |
STCKeepCIntermediate := false. |
|
463 |
" |
|
464 |
||
465 |
"Modified: / 07-11-2006 / 10:58:42 / cg" |
|
1658 | 466 |
! |
467 |
||
468 |
stcKeepOIntermediate |
|
2702 | 469 |
^ STCKeepOIntermediate ? false |
470 |
||
471 |
"Modified: / 16-09-2011 / 19:56:49 / cg" |
|
1658 | 472 |
! |
473 |
||
3396 | 474 |
stcKeepOIntermediate:something |
1658 | 475 |
STCKeepOIntermediate := something. |
476 |
! |
|
477 |
||
478 |
stcKeepSTIntermediate |
|
2702 | 479 |
^ STCKeepSTIntermediate ? false |
2142 | 480 |
|
481 |
" |
|
482 |
STCKeepSTIntermediate := true. |
|
483 |
STCKeepSTIntermediate := false. |
|
484 |
" |
|
2702 | 485 |
|
486 |
"Modified: / 16-09-2011 / 19:57:17 / cg" |
|
1658 | 487 |
! |
488 |
||
3396 | 489 |
stcKeepSTIntermediate:something |
1658 | 490 |
STCKeepSTIntermediate := something. |
1940 | 491 |
|
492 |
" |
|
493 |
STCKeepSTIntermediate := true. |
|
494 |
STCKeepSTIntermediate := false. |
|
495 |
" |
|
496 |
||
497 |
"Modified: / 07-11-2006 / 10:58:54 / cg" |
|
1658 | 498 |
! |
499 |
||
500 |
stcModulePath |
|
4012 | 501 |
"the folder, where temporarily compiled modules are created by stc. |
502 |
Used to be inside the bin-directory, but that did not work for readonly/shared |
|
503 |
st/x installations (i.e. running stx from a mounted dbg). |
|
504 |
Therefore, this is now in the workspace (where the snapshot image resudes as well) |
|
505 |
||
506 |
Notice: |
|
507 |
this ought to be a persistent folder (at least as along as any |
|
508 |
snapshot image is present, which refers to any module there. |
|
509 |
As we cannot (currently) scan snapshots, this is somewhat tricky." |
|
510 |
||
511 |
STCModulePath notNil ifTrue:[^ STCModulePath]. |
|
512 |
^ UserPreferences current workspaceDirectory / 'modules' |
|
1658 | 513 |
! |
514 |
||
3396 | 515 |
stcModulePath:something |
4013 | 516 |
"set the path to the directory, where temporary modules are created. |
517 |
Obsolete now, as this should not be set from the outside, |
|
518 |
but instead rely totally on the userPreferences." |
|
519 |
||
1658 | 520 |
STCModulePath := something. |
521 |
! |
|
522 |
||
523 |
stcPath |
|
524 |
^ STCPath |
|
525 |
! |
|
526 |
||
4017 | 527 |
stcPath:aPath |
528 |
STCPath := aPath |
|
1658 | 529 |
! |
530 |
||
2011 | 531 |
useBorlandC |
2803 | 532 |
"true if borland compiler should be used" |
533 |
||
2888 | 534 |
^ self usedCompilerDefine = DefineForBorlandC |
2011 | 535 |
|
536 |
"Created: / 15-03-2007 / 13:33:32 / cg" |
|
537 |
! |
|
538 |
||
3653 | 539 |
useClang |
540 |
"true if clang compiler should be used" |
|
541 |
||
542 |
^ self usedCompilerDefine = DefineForCLANG |
|
543 |
! |
|
544 |
||
2888 | 545 |
useCompilerDefine: aCompilerDefine |
2803 | 546 |
"enforce a particular compiler to be used (independent from |
547 |
what the system was compiled with)" |
|
548 |
||
549 |
ForcedCompiler := aCompilerDefine. |
|
550 |
||
2804 | 551 |
" |
552 |
self useCompiler: DefineForBorlandC |
|
553 |
self useCompiler: DefineForVisualC |
|
3719 | 554 |
self useCompiler: DefineForMINGW32 |
2804 | 555 |
" |
556 |
||
2888 | 557 |
"Created: / 20-07-2012 / 13:10:30 / cg" |
2803 | 558 |
! |
559 |
||
2011 | 560 |
useGnuC |
2803 | 561 |
"true if gnu-c compiler should be used" |
562 |
||
2888 | 563 |
^ self usedCompilerDefine = DefineForGNUC |
2011 | 564 |
|
565 |
"Created: / 15-03-2007 / 13:34:49 / cg" |
|
566 |
! |
|
567 |
||
3009
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
568 |
useMingw32 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
569 |
"true if mingw compiler should be used" |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
570 |
|
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
571 |
^ self usedCompilerDefine = DefineForMINGW32 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
572 |
! |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
573 |
|
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
574 |
useMingw64 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
575 |
"true if mingw compiler should be used" |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
576 |
|
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
577 |
^ self usedCompilerDefine = DefineForMINGW64 |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
578 |
! |
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
579 |
|
2645 | 580 |
useVisualC |
2803 | 581 |
"true if visual-c compiler should be used" |
582 |
||
2888 | 583 |
|def| |
584 |
||
585 |
^ (def := self usedCompilerDefine) = DefineForVisualC |
|
586 |
or:[ def = DefineForMSC ] |
|
2645 | 587 |
|
588 |
"Created: / 08-08-2011 / 22:50:25 / cg" |
|
589 |
! |
|
590 |
||
2803 | 591 |
usedCompiler |
2888 | 592 |
|dfn| |
593 |
||
594 |
dfn := self usedCompilerDefine. |
|
595 |
||
596 |
dfn = DefineForGNUC ifTrue:[ ^'gcc']. |
|
597 |
dfn = DefineForBorlandC ifTrue:[ ^'bcc']. |
|
598 |
dfn = DefineForMSC ifTrue:[ ^'vc']. |
|
599 |
dfn = DefineForVisualC ifTrue:[ ^'vc']. |
|
3160 | 600 |
dfn = DefineForMINGW64 ifTrue:[ ^'mingw']. |
601 |
dfn = DefineForMINGW32 ifTrue:[ ^'mingw']. |
|
602 |
dfn = DefineForMINGW ifTrue:[ ^'mingw']. |
|
2888 | 603 |
"/ dfn = DefineForLCC ifTrue:[ ^'lcc']. |
604 |
||
605 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
3396 | 606 |
^ 'bcc' |
2888 | 607 |
]. |
608 |
^ 'gcc' |
|
2803 | 609 |
|
2805 | 610 |
" |
611 |
self usedCompiler |
|
612 |
" |
|
613 |
||
2803 | 614 |
"Created: / 31-01-2012 / 12:05:30 / cg" |
615 |
! |
|
616 |
||
2888 | 617 |
usedCompilerDefine |
4017 | 618 |
"return the define to be used for the compiler toolchain. |
619 |
By default, the toolchain with which stx itself was compiled is used (getCCDefine); |
|
620 |
can be overwritten by setting ForcedCompiler" |
|
621 |
||
2888 | 622 |
|dfn| |
623 |
||
624 |
dfn := ForcedCompiler. |
|
4022 | 625 |
dfn isNil ifTrue:[ dfn := STCCompilerInterface getCCDefine]. |
2888 | 626 |
^ dfn |
627 |
||
4017 | 628 |
" |
629 |
ForcedCompiler := DefineForCLANG. |
|
630 |
self usedCompilerDefine. |
|
631 |
||
632 |
ForcedCompiler := nil. |
|
633 |
self usedCompilerDefine. |
|
634 |
" |
|
635 |
||
2888 | 636 |
"Created: / 20-07-2012 / 13:11:22 / cg" |
637 |
! |
|
638 |
||
2645 | 639 |
vcTop:aPath |
640 |
"windows only: define the visual-C top directory. |
|
641 |
must contain bin\cl.exe and include. |
|
642 |
Typically, something like 'C:\Program Files\Microsoft Visual Studio 10.0\VC'" |
|
643 |
||
644 |
VCTop := aPath |
|
645 |
||
646 |
"Created: / 08-08-2011 / 22:39:15 / cg" |
|
647 |
! |
|
648 |
||
1658 | 649 |
withSTCCompilation:howSymbol do:aBlock |
650 |
|prev| |
|
651 |
||
652 |
prev := self stcCompilation. |
|
653 |
self stcCompilation:howSymbol. |
|
654 |
aBlock ensure:[ self stcCompilation:prev ] |
|
655 |
! ! |
|
656 |
||
1634 | 657 |
!ParserFlags class methodsFor:'accessing-syntax-control'! |
658 |
||
659 |
allowArrayIndexSyntaxExtension |
|
660 |
"experimental" |
|
661 |
||
662 |
^ AllowArrayIndexSyntaxExtension ? false |
|
3190 | 663 |
|
664 |
" |
|
665 |
self allowArrayIndexSyntaxExtension:true |
|
666 |
self allowArrayIndexSyntaxExtension:false |
|
667 |
self allowArrayIndexSyntaxExtension |
|
668 |
" |
|
1634 | 669 |
! |
670 |
||
671 |
allowArrayIndexSyntaxExtension:aBoolean |
|
672 |
"experimental" |
|
673 |
||
674 |
AllowArrayIndexSyntaxExtension := aBoolean. |
|
675 |
||
676 |
" |
|
677 |
self allowArrayIndexSyntaxExtension:true |
|
678 |
self allowArrayIndexSyntaxExtension:false |
|
679 |
" |
|
680 |
! |
|
681 |
||
2685 | 682 |
allowAssignmentToBlockArgument |
683 |
^ AllowAssignmentToBlockArgument |
|
684 |
||
685 |
"Created: / 08-09-2011 / 14:49:46 / cg" |
|
686 |
! |
|
687 |
||
688 |
allowAssignmentToBlockArgument:aBoolean |
|
689 |
AllowAssignmentToBlockArgument := aBoolean |
|
690 |
||
691 |
"Created: / 08-09-2011 / 14:50:23 / cg" |
|
692 |
! |
|
693 |
||
694 |
allowAssignmentToMethodArgument |
|
695 |
^ AllowAssignmentToMethodArgument |
|
696 |
||
697 |
"Created: / 08-09-2011 / 14:49:57 / cg" |
|
698 |
! |
|
699 |
||
700 |
allowAssignmentToMethodArgument:aBoolean |
|
701 |
AllowAssignmentToMethodArgument := aBoolean |
|
702 |
||
703 |
"Created: / 08-09-2011 / 14:50:34 / cg" |
|
704 |
! |
|
705 |
||
706 |
allowAssignmentToPoolVariable |
|
707 |
^ AllowAssignmentToPoolVariable |
|
708 |
||
709 |
"Created: / 08-09-2011 / 14:50:06 / cg" |
|
710 |
! |
|
711 |
||
712 |
allowAssignmentToPoolVariable:aBoolean |
|
713 |
AllowAssignmentToPoolVariable := aBoolean |
|
714 |
||
715 |
"Created: / 08-09-2011 / 14:50:48 / cg" |
|
716 |
! |
|
717 |
||
1634 | 718 |
allowDollarInIdentifier |
719 |
"return true, if $-characters are allowed in identifiers. |
|
4041 | 720 |
Notice, that dollars are NEVER allowed as the first character in an identifier |
721 |
(because they are interpreted as character-constant then)." |
|
1634 | 722 |
|
723 |
^ AllowDollarInIdentifier |
|
724 |
||
4041 | 725 |
"Created: / 07-09-1997 / 01:32:18 / cg" |
726 |
"Modified (comment): / 16-11-2016 / 22:25:59 / cg" |
|
1634 | 727 |
! |
728 |
||
729 |
allowDollarInIdentifier:aBoolean |
|
730 |
"this allows turning on/off $-characters in identifiers. |
|
731 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
732 |
If turned off (the default), dollars are not allowed in identifiers, |
|
733 |
but instead are scanned as character-constant prefix. |
|
4041 | 734 |
If turned on, dollars in identifiers are allowed, while extra |
1634 | 735 |
dollars are still scanned as constant character prefix. |
736 |
If you have to fileIn old VW-Vsn2.x classes, turn this off |
|
737 |
before filing them in; i.e.: |
|
4041 | 738 |
Compiler allowDollarInIdentifiers:false |
739 |
" |
|
1634 | 740 |
|
741 |
AllowDollarInIdentifier := aBoolean. |
|
742 |
||
4041 | 743 |
"Created: / 07-09-1997 / 01:34:49 / cg" |
744 |
"Modified (comment): / 16-11-2016 / 22:26:38 / cg" |
|
1634 | 745 |
! |
746 |
||
747 |
allowDolphinExtensions |
|
748 |
"return true, if ##(..) computed literals are allowed" |
|
749 |
||
750 |
^ AllowDolphinExtensions |
|
751 |
! |
|
752 |
||
753 |
allowDolphinExtensions:aBoolean |
|
754 |
"this allows turning on/off support for computed arrays ##(..) as in dolphin. |
|
755 |
If you want to fileIn Dolphin classes, enable this with: |
|
3396 | 756 |
Compiler allowDolphinComputedArrays:true" |
1634 | 757 |
|
758 |
AllowDolphinExtensions := aBoolean. |
|
759 |
||
760 |
" |
|
761 |
self allowDolphinExtensions:true |
|
762 |
self allowDolphinExtensions:false |
|
763 |
" |
|
764 |
! |
|
765 |
||
1950 | 766 |
allowEmptyStatements |
767 |
"return true, if empty statements are allowed (two .'s in a row). |
|
768 |
Notice, that stc cannot (yet) handle those." |
|
769 |
||
770 |
^ AllowEmptyStatements |
|
771 |
||
772 |
"Created: / 20-11-2006 / 14:29:02 / cg" |
|
773 |
! |
|
774 |
||
775 |
allowEmptyStatements:aBoolean |
|
776 |
"turn on/off, if empty statements are allowed (two .'s in a row). |
|
777 |
Notice, that stc cannot (yet) handle those." |
|
778 |
||
779 |
AllowEmptyStatements := aBoolean |
|
780 |
||
781 |
"Created: / 20-11-2006 / 14:29:15 / cg" |
|
782 |
! |
|
783 |
||
2145 | 784 |
allowExtendedBinarySelectors |
785 |
"experimental extended selectors extensions" |
|
786 |
||
787 |
^ AllowExtendedBinarySelectors |
|
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
788 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
789 |
" |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
790 |
ParserFlags allowExtendedBinarySelectors |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
791 |
ParserFlags allowExtendedBinarySelectors:false |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
792 |
ParserFlags allowExtendedBinarySelectors:true |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
793 |
" |
2145 | 794 |
! |
795 |
||
796 |
allowExtendedBinarySelectors:aBoolean |
|
797 |
"experimental syntay extensions" |
|
798 |
||
799 |
AllowExtendedBinarySelectors := aBoolean |
|
800 |
! |
|
801 |
||
1682 | 802 |
allowExtendedSTXSyntax |
803 |
"experimental syntay extensions" |
|
804 |
||
805 |
^ AllowExtendedSTXSyntax |
|
806 |
! |
|
807 |
||
808 |
allowExtendedSTXSyntax:aBoolean |
|
809 |
"experimental syntay extensions" |
|
810 |
||
811 |
AllowExtendedSTXSyntax := aBoolean |
|
812 |
||
813 |
" |
|
814 |
self allowExtendedSTXSyntax:true |
|
815 |
'a\tb' inspect. |
|
816 |
'a\u1616b' inspect. |
|
3396 | 817 |
self allowExtendedSTXSyntax:false |
1682 | 818 |
" |
819 |
! |
|
820 |
||
1677 | 821 |
allowFixedPointLiterals |
822 |
"return true, if nnnsn (FixedPoint) literals are allowed" |
|
823 |
||
824 |
^ AllowFixedPointLiterals |
|
825 |
! |
|
826 |
||
827 |
allowFixedPointLiterals:aBoolean |
|
828 |
"enable/disable, if nnnsn (FixedPoint) literals are allowed" |
|
829 |
||
830 |
AllowFixedPointLiterals := aBoolean |
|
831 |
! |
|
832 |
||
1634 | 833 |
allowFunctionCallSyntaxForBlockEvaluation |
834 |
"experimental" |
|
835 |
||
836 |
^ AllowFunctionCallSyntaxForBlockEvaluation |
|
1721 | 837 |
|
838 |
" |
|
839 |
AllowFunctionCallSyntaxForBlockEvaluation := true |
|
840 |
" |
|
1634 | 841 |
! |
842 |
||
843 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
844 |
"experimental" |
|
845 |
||
846 |
AllowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
847 |
! |
|
848 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
849 |
allowHashAsBinarySelector |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
850 |
^ AllowHashAsBinarySelector |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
851 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
852 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
853 |
allowHashAsBinarySelector:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
854 |
AllowHashAsBinarySelector := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
855 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
856 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
857 |
self allowHashAsBinarySelector:true |
3396 | 858 |
self allowHashAsBinarySelector:false |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
859 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
860 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
861 |
|
1634 | 862 |
allowLiteralNameSpaceSymbols |
863 |
"return true, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
864 |
||
865 |
^ AllowLiteralNameSpaceSymbols |
|
866 |
! |
|
867 |
||
868 |
allowLiteralNameSpaceSymbols:aBoolean |
|
869 |
"controls, if literal nameSpace symbols are allowed (#foo::bar) are allowed" |
|
870 |
||
871 |
AllowLiteralNameSpaceSymbols := aBoolean |
|
872 |
! |
|
873 |
||
874 |
allowLocalVariableDeclarationWithInitializerExpression |
|
875 |
"experimental" |
|
876 |
||
877 |
^ AllowLocalVariableDeclarationWithInitializerExpression |
|
878 |
! |
|
879 |
||
880 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
881 |
"experimental" |
|
882 |
||
883 |
AllowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
884 |
! |
|
885 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
886 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
887 |
"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
|
888 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
889 |
^ AllowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
890 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
891 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
892 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
893 |
"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
|
894 |
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
|
895 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
896 |
AllowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
897 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
898 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
899 |
ParserFlags allowNationalCharactersInIdentifier:true |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
900 |
" |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
901 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
902 |
|
1634 | 903 |
allowOldStyleAssignment |
904 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
|
905 |
||
906 |
^ AllowOldStyleAssignment |
|
907 |
! |
|
908 |
||
909 |
allowOldStyleAssignment:aBoolean |
|
910 |
"this allows turning on/off recognition of underscore-assignment (pre ST-80v4 syntax). |
|
911 |
You must turn this off, if code with variables named '_' is to be filedIn" |
|
912 |
||
913 |
AllowOldStyleAssignment := aBoolean |
|
914 |
! |
|
915 |
||
4041 | 916 |
allowParagraphInIdentifier |
4050 | 917 |
"return true, if §-characters are allowed in identifiers (treated as letter)" |
4041 | 918 |
|
919 |
^ AllowParagraphInIdentifier |
|
920 |
||
921 |
"Created: / 16-11-2016 / 22:24:32 / cg" |
|
922 |
! |
|
923 |
||
924 |
allowParagraphInIdentifier:aBoolean |
|
4050 | 925 |
"this allows turning on/off §-characters in identifiers." |
4041 | 926 |
|
927 |
AllowParagraphInIdentifier := aBoolean. |
|
928 |
||
929 |
"Created: / 16-11-2016 / 22:28:49 / cg" |
|
930 |
! |
|
931 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
932 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
933 |
"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
|
934 |
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
|
935 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
936 |
^ AllowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
937 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
938 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
939 |
allowPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
940 |
"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
|
941 |
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
|
942 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
943 |
AllowPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
944 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
945 |
" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
946 |
self allowPeriodInSymbol:true. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
947 |
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
|
948 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
949 |
self allowPeriodInSymbol:false. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
950 |
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
|
951 |
" |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
952 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
953 |
|
3576 | 954 |
allowQualifiedNames |
955 |
"return true, if #{..} qualified names are allowed" |
|
956 |
||
957 |
^ AllowQualifiedNames |
|
958 |
! |
|
959 |
||
960 |
allowQualifiedNames:aBoolean |
|
961 |
"this allows turning on/off support for qualifiedNames #{ .., } as in vw3. |
|
962 |
If you want to fileIn vw3 or later classes, enable this with: |
|
963 |
Compiler allowQualifiedNames:true |
|
964 |
Notice, that qualified names are not really supported semantically |
|
965 |
(they are parsed, but treated like regular globals) |
|
966 |
" |
|
967 |
||
968 |
AllowQualifiedNames := aBoolean. |
|
969 |
||
970 |
" |
|
971 |
self allowQualifiedNames:true |
|
972 |
self allowQualifiedNames:false |
|
973 |
" |
|
974 |
! |
|
1634 | 975 |
|
976 |
allowReservedWordsAsSelectors |
|
977 |
"return true, if self, super, thisContext, nil, true and false are to be allowed |
|
978 |
as unary message selectors." |
|
979 |
||
980 |
^ AllowReservedWordsAsSelectors ? false |
|
981 |
! |
|
982 |
||
983 |
allowReservedWordsAsSelectors:aBoolean |
|
984 |
"enable/disable, if self, super, thisContext, nil, true and false are to be allowed |
|
985 |
as unary message selectors." |
|
986 |
||
987 |
AllowReservedWordsAsSelectors := aBoolean. |
|
988 |
||
989 |
" |
|
990 |
self allowReservedWordsAsSelectors:true |
|
991 |
self allowReservedWordsAsSelectors:false |
|
992 |
" |
|
993 |
! |
|
994 |
||
1702 | 995 |
allowSTVExtensions |
996 |
"return true, if support for ST/V syntax extensions is enabled." |
|
997 |
||
998 |
^ AllowSTVExtensions |
|
999 |
! |
|
1000 |
||
1001 |
allowSTVExtensions:aBoolean |
|
1002 |
"this allows turning on/off support for ST/V extensions: |
|
1003 |
If you want to fileIn ST/V classes, enable this with: |
|
3396 | 1004 |
Compiler allowSTVComputedArrays:true" |
1702 | 1005 |
|
1006 |
AllowSTVExtensions := aBoolean. |
|
1007 |
||
1008 |
" |
|
1704 | 1009 |
ParserFlags allowSTVExtensions:true |
1010 |
ParserFlags allowSTVExtensions:false |
|
1702 | 1011 |
" |
1012 |
! |
|
1013 |
||
1700 | 1014 |
allowSTVPrimitives |
1015 |
"return true, if support for ST/V primitives is enabled." |
|
1016 |
||
1017 |
^ AllowSTVPrimitives |
|
1018 |
! |
|
1019 |
||
1020 |
allowSTVPrimitives:aBoolean |
|
1021 |
"this allows turning on/off support for ST/V primitives" |
|
1022 |
||
1023 |
AllowSTVPrimitives := aBoolean |
|
1704 | 1024 |
|
1025 |
" |
|
1026 |
ParserFlags allowSTVPrimitives:true |
|
1027 |
" |
|
1700 | 1028 |
! |
1029 |
||
2984 | 1030 |
allowSTXDelimiterComments |
3455 | 1031 |
"token delimited comments; |
1032 |
these are multiline comments of the form: |
|
3519
03679c227ade
use getEnv:'programFiles' instead of hardcoding c:\program files
Claus Gittinger <cg@exept.de>
parents:
3506
diff
changeset
|
1033 |
''>>TOKEN |
03679c227ade
use getEnv:'programFiles' instead of hardcoding c:\program files
Claus Gittinger <cg@exept.de>
parents:
3506
diff
changeset
|
1034 |
... anything, including double quotes |
03679c227ade
use getEnv:'programFiles' instead of hardcoding c:\program files
Claus Gittinger <cg@exept.de>
parents:
3506
diff
changeset
|
1035 |
TOKEN>>'' |
3455 | 1036 |
(the '' being a double quote in the above) |
1037 |
Such comments are especially useful to comment pieces of sample code, which may |
|
1038 |
contain another comment in it, but you don't want to make them all EOL comments |
|
1039 |
(which are an ST/X speciality also, by the way). |
|
1040 |
Be aware, that no other smalltalk supports this, so your code becomes harder to port, if you use it. |
|
1041 |
" |
|
1042 |
||
2984 | 1043 |
^ AllowSTXDelimiterComments |
1044 |
! |
|
1045 |
||
1046 |
allowSTXDelimiterComments:aBoolean |
|
3455 | 1047 |
"enable token delimited comments; |
1048 |
these are multiline comments of the form: |
|
3519
03679c227ade
use getEnv:'programFiles' instead of hardcoding c:\program files
Claus Gittinger <cg@exept.de>
parents:
3506
diff
changeset
|
1049 |
''>>TOKEN |
03679c227ade
use getEnv:'programFiles' instead of hardcoding c:\program files
Claus Gittinger <cg@exept.de>
parents:
3506
diff
changeset
|
1050 |
... anything, including double quotes |
03679c227ade
use getEnv:'programFiles' instead of hardcoding c:\program files
Claus Gittinger <cg@exept.de>
parents:
3506
diff
changeset
|
1051 |
TOKEN>>'' |
3455 | 1052 |
(the '' being a double quote in the above) |
1053 |
Such comments are especially useful to comment pieces of sample code, which may |
|
1054 |
contain another comment in it, but you don't want to make them all EOL comments |
|
1055 |
(which are an ST/X speciality also, by the way). |
|
1056 |
Be aware, that no other smalltalk supports this, so your code becomes harder to port, if you use it. |
|
1057 |
" |
|
1058 |
||
2984 | 1059 |
AllowSTXDelimiterComments := aBoolean. |
1060 |
||
1061 |
" |
|
1062 |
self allowSTXDelimiterComments:true |
|
1063 |
self allowSTXDelimiterComments:false |
|
1064 |
" |
|
1065 |
! |
|
1066 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1067 |
allowSTXEOLComments |
3946 | 1068 |
"are ST/X end-of-line comments allowed?" |
1069 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1070 |
^ AllowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1071 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1072 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1073 |
allowSTXEOLComments:aBoolean |
3946 | 1074 |
"are ST/X end-of-line comments allowed?" |
1075 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1076 |
AllowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1077 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1078 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1079 |
self allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1080 |
self allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1081 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1082 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
1083 |
|
3945 | 1084 |
allowSTXExtendedArrayLiterals |
3946 | 1085 |
"are scheme-style typed literal arrays allowed?" |
1086 |
||
3945 | 1087 |
^ AllowSTXExtendedArrayLiterals ? false |
1088 |
! |
|
1089 |
||
1090 |
allowSTXExtendedArrayLiterals:aBoolean |
|
3946 | 1091 |
"are scheme-style typed literal arrays allowed?" |
1092 |
||
3945 | 1093 |
AllowSTXExtendedArrayLiterals := aBoolean. |
1094 |
||
1095 |
" |
|
1096 |
self allowSTXExtendedArrayLiterals:true |
|
1097 |
self allowSTXExtendedArrayLiterals:false |
|
1098 |
" |
|
1099 |
! |
|
1100 |
||
3576 | 1101 |
allowSqueakExtensions |
1102 |
"return true, if support for squeak extensions |
|
1103 |
computed arrays { .., } |
|
1104 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1105 |
is enabled." |
|
1106 |
||
1107 |
^ AllowSqueakExtensions |
|
1108 |
! |
|
1109 |
||
1110 |
allowSqueakExtensions:aBoolean |
|
1111 |
"this allows turning on/off support for squeak extensions: |
|
1112 |
computed arrays { .., } |
|
1113 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
1114 |
||
1115 |
If you want to fileIn Squeak classes, enable this with: |
|
1116 |
Compiler allowSqueakComputedArrays:true" |
|
1117 |
||
1118 |
AllowSqueakExtensions := aBoolean. |
|
1119 |
||
1120 |
" |
|
1121 |
self allowSqueakExtensions:true |
|
1122 |
self allowSqueakExtensions:false |
|
1123 |
" |
|
1124 |
! |
|
1634 | 1125 |
|
1689 | 1126 |
allowSqueakPrimitives |
1127 |
"return true, if support for squeak primitives is enabled." |
|
1128 |
||
1129 |
^ AllowSqueakPrimitives |
|
1130 |
! |
|
1131 |
||
1132 |
allowSqueakPrimitives:aBoolean |
|
1133 |
"this allows turning on/off support for squeak primitives" |
|
1134 |
||
1135 |
AllowSqueakPrimitives := aBoolean |
|
1136 |
! |
|
1137 |
||
1634 | 1138 |
allowUnderscoreInIdentifier |
1139 |
"return true, if underscores are allowed in identifiers" |
|
1140 |
||
1141 |
^ AllowUnderscoreInIdentifier |
|
1142 |
! |
|
1143 |
||
1144 |
allowUnderscoreInIdentifier:aBoolean |
|
1145 |
"this allows turning on/off underscores in identifiers. |
|
1146 |
If turned off (the default), underscores are not allowed in identifiers, |
|
1147 |
but instead scanned as assignment character (old ST/80 syntax). |
|
1148 |
If turned on, underscores are in identifiers are allowed, while extra |
|
1149 |
underscores are still scanned as assignment. |
|
3396 | 1150 |
If you have to fileIn old VW-Vsn2.x classes, |
1634 | 1151 |
turn them off with: |
3396 | 1152 |
Compiler allowUnderscoreInIdentifiers:false" |
1634 | 1153 |
|
1154 |
AllowUnderscoreInIdentifier := aBoolean. |
|
1155 |
||
1156 |
"Modified: 7.9.1997 / 01:35:19 / cg" |
|
1655 | 1157 |
! |
1158 |
||
2310 | 1159 |
allowUnicodeCharacters |
1160 |
^ AllowUnicodeCharacters |
|
1161 |
! |
|
1162 |
||
1163 |
allowUnicodeCharacters:aBoolean |
|
1164 |
AllowUnicodeCharacters := aBoolean. |
|
1165 |
! |
|
1166 |
||
2307 | 1167 |
allowUnicodeStrings |
1168 |
^ AllowUnicodeStrings |
|
1169 |
! |
|
1170 |
||
1171 |
allowUnicodeStrings:aBoolean |
|
1172 |
AllowUnicodeStrings := aBoolean. |
|
1173 |
! |
|
1174 |
||
1655 | 1175 |
allowVisualAgeESSymbolLiterals |
1176 |
"return true, if ##symbols are allowed (treated like symbols)" |
|
1177 |
||
1178 |
^ AllowVisualAgeESSymbolLiterals |
|
1179 |
! |
|
1180 |
||
1181 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
1182 |
"if on, visualAge's ##symbols are allowed (treated like symbols)" |
|
1183 |
||
1184 |
AllowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 1185 |
! |
1186 |
||
1187 |
allowVisualAgePrimitives |
|
1188 |
"return true, if support for V'Age primitives is enabled." |
|
1189 |
||
3396 | 1190 |
^ AllowVisualAgePrimitives |
2747 | 1191 |
|
1192 |
" |
|
1193 |
AllowVisualAgePrimitives := true |
|
1194 |
AllowVisualAgePrimitives := false |
|
1195 |
" |
|
1196 |
||
1197 |
"Modified (comment): / 18-10-2011 / 16:49:12 / cg" |
|
1689 | 1198 |
! |
1199 |
||
1200 |
allowVisualAgePrimitives:aBoolean |
|
1201 |
"this allows turning on/off support for V'Age primitives" |
|
1202 |
||
1203 |
AllowVisualAgePrimitives := aBoolean |
|
1773 | 1204 |
! |
1205 |
||
1206 |
allowVisualWorksMethodAnnotations |
|
1207 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
1208 |
||
1209 |
^ AllowVisualWorksMethodAnnotations |
|
1210 |
||
1211 |
"Created: / 07-07-2006 / 15:49:32 / cg" |
|
1212 |
! |
|
1213 |
||
1214 |
allowVisualWorksMethodAnnotations:aBoolean |
|
1215 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
1216 |
||
1217 |
AllowVisualWorksMethodAnnotations := aBoolean |
|
1218 |
||
1219 |
"Created: / 07-07-2006 / 15:49:27 / cg" |
|
3220 | 1220 |
! |
1221 |
||
1222 |
warnAssignmentToBlockArgument |
|
1223 |
^ WarnAssignmentToBlockArgument |
|
1224 |
! |
|
1225 |
||
1226 |
warnAssignmentToBlockArgument:aBoolean |
|
1227 |
WarnAssignmentToBlockArgument := aBoolean |
|
1228 |
! |
|
1229 |
||
1230 |
warnAssignmentToMethodArgument |
|
1231 |
^ WarnAssignmentToMethodArgument |
|
1232 |
! |
|
1233 |
||
1234 |
warnAssignmentToMethodArgument:aBoolean |
|
1235 |
WarnAssignmentToMethodArgument := aBoolean |
|
1236 |
! |
|
1237 |
||
1238 |
warnAssignmentToPoolVariable |
|
1239 |
^ WarnAssignmentToPoolVariable |
|
1240 |
! |
|
1241 |
||
1242 |
warnAssignmentToPoolVariable:aBoolean |
|
1243 |
WarnAssignmentToPoolVariable := aBoolean |
|
1634 | 1244 |
! ! |
1245 |
||
1246 |
!ParserFlags class methodsFor:'accessing-warning-control'! |
|
1247 |
||
1652 | 1248 |
warnAboutBadComments |
1249 |
"controls generation of warning messages about empty comments" |
|
3396 | 1250 |
|
1652 | 1251 |
^ WarnAboutBadComments |
1252 |
! |
|
1253 |
||
1254 |
warnAboutBadComments:aBoolean |
|
1255 |
"controls generation of warning messages about empty comments" |
|
3396 | 1256 |
|
1652 | 1257 |
WarnAboutBadComments := aBoolean |
1258 |
! |
|
1259 |
||
1811 | 1260 |
warnAboutNonLowercaseLocalVariableNames |
1740 | 1261 |
"controls generation of warning messages about wrong variable names" |
3396 | 1262 |
|
1811 | 1263 |
^ WarnAboutNonLowercaseLocalVariableNames |
1740 | 1264 |
! |
1265 |
||
3396 | 1266 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
1740 | 1267 |
"controls generation of warning messages about wrong variable names" |
3396 | 1268 |
|
1811 | 1269 |
WarnAboutNonLowercaseLocalVariableNames := aBoolean |
1740 | 1270 |
! |
1271 |
||
3396 | 1272 |
warnAboutPeriodInSymbol |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1273 |
^ WarnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1274 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1275 |
|
3396 | 1276 |
warnAboutPeriodInSymbol:aBoolean |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1277 |
WarnAboutPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1278 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
1279 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1280 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1281 |
^ WarnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1282 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1283 |
"Created: / 16-11-2006 / 14:31:52 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1284 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1285 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1286 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1287 |
WarnAboutPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1288 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1289 |
"Created: / 16-11-2006 / 14:31:57 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1290 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1291 |
|
2121 | 1292 |
warnAboutPossiblyUnimplementedSelectors |
1293 |
^ WarnAboutPossiblyUnimplementedSelectors |
|
1294 |
! |
|
1295 |
||
1296 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
1297 |
WarnAboutPossiblyUnimplementedSelectors := aBoolean |
|
1298 |
! |
|
1299 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1300 |
warnAboutReferenceToPrivateClass |
3396 | 1301 |
"controls generation of warning messages when a private class is referenced" |
1302 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1303 |
^ WarnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1304 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1305 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1306 |
warnAboutReferenceToPrivateClass:aBoolean |
3396 | 1307 |
"controls generation of warning messages when a private class is referenced" |
1308 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1309 |
WarnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1310 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
1311 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1312 |
warnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1313 |
"controls generation of warning messages about short variable names" |
3396 | 1314 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1315 |
^ WarnAboutShortLocalVariableNames |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1316 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1317 |
|
3396 | 1318 |
warnAboutShortLocalVariableNames:aBoolean |
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1319 |
"controls generation of warning messages about short variable names" |
3396 | 1320 |
|
2081
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1321 |
WarnAboutShortLocalVariableNames := aBoolean |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1322 |
! |
a8b56888f91c
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2079
diff
changeset
|
1323 |
|
2739 | 1324 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
1325 |
"things like '\c:foo' instead of '\\c:foo' " |
|
3396 | 1326 |
|
2739 | 1327 |
^ WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
1328 |
||
1329 |
"Created: / 04-10-2011 / 19:54:57 / cg" |
|
1330 |
! |
|
1331 |
||
1332 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean |
|
1333 |
"things like '\c:foo' instead of '\\c:foo' " |
|
3396 | 1334 |
|
2739 | 1335 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean |
1336 |
||
1337 |
"Created: / 04-10-2011 / 19:54:42 / cg" |
|
1338 |
! |
|
1339 |
||
3396 | 1340 |
warnAboutVariableNameConventions |
1634 | 1341 |
"controls generation of warning messages about wrong variable names" |
3396 | 1342 |
|
1634 | 1343 |
^ WarnAboutVariableNameConventions |
1344 |
! |
|
1345 |
||
3396 | 1346 |
warnAboutVariableNameConventions:aBoolean |
1634 | 1347 |
"controls generation of warning messages about wrong variable names" |
3396 | 1348 |
|
1634 | 1349 |
WarnAboutVariableNameConventions := aBoolean |
1350 |
! |
|
1351 |
||
1352 |
warnAboutWrongVariableNames |
|
1353 |
"controls generation of warning messages about wrong variable names" |
|
3396 | 1354 |
|
1634 | 1355 |
^ WarnAboutWrongVariableNames |
1356 |
! |
|
1357 |
||
1358 |
warnAboutWrongVariableNames:aBoolean |
|
1359 |
"controls generation of warning messages about wrong variable names" |
|
3396 | 1360 |
|
1634 | 1361 |
WarnAboutWrongVariableNames := aBoolean |
1362 |
! |
|
1363 |
||
1364 |
warnCommonMistakes |
|
1365 |
"return true, if common beginners mistakes are to be warned about" |
|
1366 |
||
1754 | 1367 |
^ WarnCommonMistakes |
1634 | 1368 |
! |
1369 |
||
1370 |
warnCommonMistakes:aBoolean |
|
1371 |
"this allows turning on/off warnings about common beginners mistakes. |
|
1372 |
Those are not really errors in the strict sense, but often lead to |
|
1373 |
run time errors later. |
|
1374 |
Examples are: expr or:expr2, where expr2 is not a block. |
|
1375 |
If you get bored by those warnings, turn them off by adding |
|
1376 |
a line as: |
|
3396 | 1377 |
ParserFlags warnCommonMistakes:false |
1634 | 1378 |
in your 'private.rc' file" |
1379 |
||
1380 |
WarnCommonMistakes := aBoolean |
|
1902 | 1381 |
|
1382 |
"Modified: / 05-09-2006 / 11:46:26 / cg" |
|
1634 | 1383 |
! |
1384 |
||
1385 |
warnDollarInIdentifier |
|
1386 |
"return true, if $-characters in identifiers are to be warned about" |
|
1387 |
||
1388 |
^ Warnings and:[WarnDollarInIdentifier] |
|
1389 |
||
1390 |
"Created: 7.9.1997 / 01:36:17 / cg" |
|
1391 |
! |
|
1392 |
||
1393 |
warnDollarInIdentifier:aBoolean |
|
1394 |
"this allows turning on/off warnings about $-characters in identifiers. |
|
1395 |
You may find those warnings useful, to make certain that your code |
|
4041 | 1396 |
is portable to other Smalltalk versions, which do not allow this |
1634 | 1397 |
(i.e. VW releases 2.x and maybe others). |
1398 |
Notice, that dollars are NEVER allowed as the first character in an identifier. |
|
1399 |
If you get bored by those warnings, turn them off by adding |
|
1400 |
a line as: |
|
4041 | 1401 |
ParserFlags warnDollarInIdentifier:false |
1634 | 1402 |
in your 'private.rc' file" |
1403 |
||
1404 |
WarnDollarInIdentifier := aBoolean |
|
1405 |
||
1902 | 1406 |
"Created: / 07-09-1997 / 01:37:42 / cg" |
1407 |
"Modified: / 05-09-2006 / 11:46:23 / cg" |
|
4041 | 1408 |
"Modified (comment): / 16-11-2016 / 22:31:06 / cg" |
1634 | 1409 |
! |
1410 |
||
1682 | 1411 |
warnHiddenVariables |
1412 |
"controls generation of warning messages about hiding variables by locals" |
|
3396 | 1413 |
|
1682 | 1414 |
^ WarnHiddenVariables |
1415 |
! |
|
1416 |
||
1417 |
warnHiddenVariables:aBoolean |
|
1418 |
"controls generation of warning messages about hiding variables by locals" |
|
1419 |
||
1420 |
WarnHiddenVariables := aBoolean |
|
1421 |
! |
|
1422 |
||
1423 |
warnInconsistentReturnValues |
|
1424 |
"return true, if compiler should warn about inconsitent (boolean / non-boolean) |
|
1425 |
return values" |
|
1426 |
||
1427 |
^ WarnInconsistentReturnValues |
|
1428 |
! |
|
1429 |
||
1430 |
warnInconsistentReturnValues:aBoolean |
|
1431 |
"constrols if the compiler should warn about inconsitent (boolean / non-boolean) |
|
1432 |
return values" |
|
1433 |
||
1434 |
WarnInconsistentReturnValues := aBoolean |
|
1435 |
! |
|
1436 |
||
1634 | 1437 |
warnOldStyleAssignment |
1438 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be warned about" |
|
1439 |
||
1440 |
^ Warnings and:[WarnOldStyleAssignment] |
|
1441 |
! |
|
1442 |
||
1443 |
warnOldStyleAssignment:aBoolean |
|
1444 |
"this allows turning on/off warnings about underscore-assignment (pre ST-80v4 syntax). |
|
1445 |
If you get bored by those warnings, turn them off by adding |
|
1446 |
a line as: |
|
3396 | 1447 |
ParserFlags warnOldStyleAssignment:false |
1634 | 1448 |
in your 'private.rc' file" |
1449 |
||
1450 |
WarnOldStyleAssignment := aBoolean |
|
1902 | 1451 |
|
1452 |
"Modified: / 05-09-2006 / 11:46:17 / cg" |
|
1634 | 1453 |
! |
1454 |
||
4041 | 1455 |
warnParagraphInIdentifier |
4050 | 1456 |
"return true, if §-characters in identifiers are to be warned about" |
4041 | 1457 |
|
1458 |
^ Warnings and:[WarnParagraphInIdentifier] |
|
1459 |
||
1460 |
"Created: / 16-11-2016 / 22:30:01 / cg" |
|
1461 |
! |
|
1462 |
||
1463 |
warnParagraphInIdentifier:aBoolean |
|
4050 | 1464 |
"this allows turning on/off warnings about §-characters in identifiers. |
4041 | 1465 |
You may find those warnings useful, to make certain that your code |
1466 |
is portable to other Smalltalk versions, which do not allow this" |
|
1467 |
||
1468 |
WarnParagraphInIdentifier := aBoolean |
|
1469 |
||
1470 |
"Created: / 16-11-2016 / 22:30:45 / cg" |
|
1471 |
! |
|
1472 |
||
2787 | 1473 |
warnPlausibilityChecks |
1474 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
1475 |
||
1476 |
^ WarnPlausibilityChecks |
|
1477 |
||
1478 |
"Created: / 19-01-2012 / 10:38:20 / cg" |
|
1479 |
! |
|
1480 |
||
1481 |
warnPlausibilityChecks:aBoolean |
|
1482 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
1483 |
||
1484 |
WarnPlausibilityChecks := aBoolean |
|
1485 |
||
1486 |
"Created: / 19-01-2012 / 10:38:39 / cg" |
|
1487 |
! |
|
1488 |
||
1634 | 1489 |
warnPossibleIncompatibilities |
1490 |
"return true, if possible incompatibilities (with other ST systems) |
|
1491 |
are to be warned about" |
|
1492 |
||
1493 |
^ Warnings and:[WarnPossibleIncompatibilities] |
|
1494 |
||
1495 |
"Modified: 23.5.1997 / 12:02:02 / cg" |
|
1496 |
! |
|
1497 |
||
1498 |
warnPossibleIncompatibilities:aBoolean |
|
1499 |
"this turns warnings about possible incompatibilities (with other ST systems) |
|
1500 |
on or off. |
|
1501 |
If you get bored by those warnings, turn them off by adding |
|
1502 |
a line as: |
|
3396 | 1503 |
ParserFlags warnPossibleIncompatibilities:false |
1634 | 1504 |
in your 'private.rc' file." |
1505 |
||
1506 |
WarnPossibleIncompatibilities := aBoolean |
|
1507 |
||
1902 | 1508 |
"Created: / 23-05-1997 / 12:02:45 / cg" |
1509 |
"Modified: / 05-09-2006 / 11:46:14 / cg" |
|
1634 | 1510 |
! |
1511 |
||
1512 |
warnSTXSpecials |
|
1513 |
"return true, if ST/X specials are to be warned about" |
|
1514 |
||
1515 |
^ Warnings and:[WarnSTXSpecials] |
|
1516 |
! |
|
1517 |
||
1518 |
warnSTXSpecials:aBoolean |
|
1519 |
"this allows turning on/off warnings about stx specials. |
|
1520 |
If you get bored by those warnings, turn them off by adding |
|
1521 |
a line as: |
|
3396 | 1522 |
ParserFlags warnSTXSpecials:false |
1634 | 1523 |
in your 'private.rc' file" |
1524 |
||
1525 |
WarnSTXSpecials := aBoolean |
|
1902 | 1526 |
|
1527 |
"Modified: / 05-09-2006 / 11:46:11 / cg" |
|
1634 | 1528 |
! |
1529 |
||
1530 |
warnUnderscoreInIdentifier |
|
1531 |
"return true, if underscores in identifiers are to be warned about" |
|
1532 |
||
1533 |
^ Warnings and:[WarnUnderscoreInIdentifier] |
|
1534 |
! |
|
1535 |
||
1536 |
warnUnderscoreInIdentifier:aBoolean |
|
1537 |
"this allows turning on/off warnings about underscores in identifiers. |
|
1538 |
You may find those warnings useful, to make certain that your code |
|
1539 |
is portable to other smalltalk versions, which do not allow this |
|
1540 |
(i.e. VW releases 2.x). |
|
1541 |
If you get bored by those warnings, turn them off by adding |
|
1542 |
a line as: |
|
3396 | 1543 |
ParserFlags warnUnderscoreInIdentifier:false |
1634 | 1544 |
in your 'private.rc' file" |
1545 |
||
1546 |
WarnUnderscoreInIdentifier := aBoolean |
|
1547 |
||
1902 | 1548 |
"Modified: / 05-09-2006 / 11:46:08 / cg" |
1634 | 1549 |
! |
1550 |
||
1551 |
warnUnusedVars |
|
1552 |
"controls generation of warning messages about unued method variables" |
|
1553 |
||
1554 |
^ WarnUnusedVars |
|
1555 |
! |
|
1556 |
||
1557 |
warnUnusedVars:aBoolean |
|
1558 |
"controls generation of warning messages about unued method variables" |
|
1559 |
||
1560 |
WarnUnusedVars := aBoolean |
|
1561 |
! |
|
1562 |
||
1563 |
warnings |
|
1564 |
"return true, if any warnings are to be shown" |
|
1565 |
||
1566 |
^ Warnings |
|
1567 |
! |
|
1568 |
||
1569 |
warnings:aBoolean |
|
1570 |
"this allows turning on/off all warnings; the default is on. |
|
1571 |
You can turn off warnings in your 'private.rc' file with |
|
3396 | 1572 |
ParserFlags warnings:false |
1634 | 1573 |
" |
1574 |
||
1575 |
Warnings := aBoolean |
|
1576 |
||
1902 | 1577 |
" |
1578 |
ParserFlags warnings |
|
1579 |
ParserFlags warnings:true |
|
1580 |
ParserFlags warnings:false |
|
1581 |
" |
|
1582 |
||
1583 |
"Modified: / 05-09-2006 / 11:46:47 / cg" |
|
1634 | 1584 |
! ! |
1585 |
||
1586 |
!ParserFlags class methodsFor:'class initialization'! |
|
1587 |
||
3576 | 1588 |
initialize |
4017 | 1589 |
|executablePath topDir| |
3576 | 1590 |
|
1591 |
Warnings := true. |
|
1592 |
WarnUndeclared := true. |
|
1593 |
WarnUnusedVars := true. |
|
1594 |
WarnSTXSpecials := false. |
|
1595 |
WarnST80Directives := false. |
|
1596 |
WarnAboutWrongVariableNames := true. |
|
1597 |
WarnAboutVariableNameConventions := true. |
|
1598 |
WarnAboutBadComments := true. |
|
1599 |
WarnUnderscoreInIdentifier := false. |
|
1600 |
WarnDollarInIdentifier := true. |
|
4041 | 1601 |
WarnParagraphInIdentifier := true. |
3576 | 1602 |
WarnOldStyleAssignment := true. |
1603 |
WarnCommonMistakes := true. |
|
1604 |
WarnPossibleIncompatibilities := false. |
|
1605 |
WarnHiddenVariables := true. |
|
1606 |
WarnInconsistentReturnValues := true. |
|
1607 |
WarnAboutNonLowercaseLocalVariableNames := true. |
|
1608 |
WarnAboutShortLocalVariableNames := false. |
|
1609 |
WarnAboutPossibleSTCCompilationProblems := true. |
|
1610 |
WarnAboutReferenceToPrivateClass := true. |
|
1611 |
WarnAboutPossiblyUnimplementedSelectors := true. |
|
1612 |
WarnAboutPeriodInSymbol := true. |
|
1613 |
WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := false. |
|
1614 |
WarnPlausibilityChecks := true. |
|
1615 |
WarnAssignmentToBlockArgument := true. |
|
1616 |
WarnAssignmentToMethodArgument := true. |
|
1617 |
WarnAssignmentToPoolVariable := true. |
|
1618 |
||
1619 |
AllowReservedWordsAsSelectors := false. |
|
1620 |
AllowUnderscoreInIdentifier := true. |
|
4041 | 1621 |
AllowParagraphInIdentifier := false. |
3576 | 1622 |
AllowDollarInIdentifier := false. "/ st80-vms dollars in identifiers |
1623 |
AllowOldStyleAssignment := true. "/ st80 underscore as assignment |
|
1624 |
AllowDolphinExtensions := false. "/ dolphin computed literal |
|
1625 |
AllowQualifiedNames := false. "/ vw3 qualified names |
|
1626 |
AllowExtendedBinarySelectors := false. "/ vw5.4 extended binary selectors (plus/minus, center-dot etc.) |
|
1627 |
AllowCaretAsBinop := false. "/ too dangerous |
|
1628 |
AllowLiteralNameSpaceSymbols := true. "/ st/x literal nameSpace-symbols (#foo::bar) |
|
1629 |
AllowArrayIndexSyntaxExtension := false. |
|
1630 |
AllowFunctionCallSyntaxForBlockEvaluation := false. |
|
1631 |
AllowLocalVariableDeclarationWithInitializerExpression := false. |
|
1632 |
AllowDomainVariables := false. |
|
1633 |
AllowArrayIndexSyntaxExtension := false. |
|
1634 |
AllowReservedWordsAsSelectors := true. |
|
1635 |
AllowVariableReferences := false. |
|
1636 |
AllowLazyValueExtension := false. |
|
1637 |
AllowFixedPointLiterals := true "false". |
|
1638 |
AllowExtendedSTXSyntax := false. |
|
1639 |
AllowVisualAgeESSymbolLiterals := false. |
|
1640 |
AllowExtensionsToPrivateClasses := true. |
|
1641 |
AllowVisualAgePrimitives := false. |
|
1642 |
AllowSqueakExtensions := true. "/ squeak computed array |
|
1643 |
AllowSqueakPrimitives := false. |
|
1644 |
AllowSTVPrimitives := false. "/ number-sign syntax |
|
1645 |
AllowSTVExtensions := false. |
|
1646 |
AllowNationalCharactersInIdentifier := false. |
|
1647 |
AllowHashAsBinarySelector := true. |
|
1648 |
AllowSTXEOLComments := true. |
|
1649 |
AllowSTXDelimiterComments := true. "/ until stc and RBScanner support it also |
|
1650 |
AllowVisualWorksMethodAnnotations := false. |
|
1651 |
AllowPossibleSTCCompilationProblems := true. "/ must be true, to allow fileIn!! |
|
1652 |
AllowEmptyStatements := false. |
|
1653 |
AllowPeriodInSymbol := false. |
|
1654 |
"/ these are only used by the new compiler |
|
1655 |
AllowUnicodeStrings := false. |
|
1656 |
AllowUnicodeCharacters := false. |
|
1657 |
AllowCharacterEscapes := false. |
|
1658 |
AllowStringEscapes := false. |
|
1659 |
AllowAssignmentToBlockArgument := false. |
|
1660 |
AllowAssignmentToMethodArgument := false. |
|
1661 |
AllowAssignmentToPoolVariable := false. |
|
1662 |
"/ AllowAssignmentToPoolVariable := true. |
|
1663 |
||
1664 |
ArraysAreImmutable := false. "/ still care for ST-80 compatibility |
|
1665 |
StringsAreImmutable := false. "/ still care for ST-80 compatibility |
|
1666 |
"/ ArraysAreImmutable := true. "/ do not care for ST-80 compatibility |
|
1667 |
"/ StringsAreImmutable := true. "/ do not care for ST-80 compatibility |
|
1668 |
ImplicitSelfSends := false. |
|
4050 | 1669 |
|
3576 | 1670 |
STCKeepCIntermediate := false. |
1671 |
STCKeepOIntermediate := false. |
|
1672 |
STCKeepSTIntermediate := false. |
|
1673 |
STCCompilation := #default. |
|
1674 |
||
1675 |
DefineForBorlandC := '__BORLANDC__'. |
|
1676 |
DefineForVisualC := '__VISUALC__'. |
|
1677 |
DefineForMSC := '__MSC__'. |
|
1678 |
DefineForGNUC := '__GNUC__'. |
|
1679 |
DefineForMINGW := '__MINGW__'. |
|
1680 |
DefineForMINGW32 := '__MINGW32__'. |
|
1681 |
DefineForMINGW64 := '__MINGW64__'. |
|
3945 | 1682 |
DefineForCLANG := '__CLANG__'. |
3576 | 1683 |
|
4017 | 1684 |
"/ try along the executable's path itself |
3576 | 1685 |
(executablePath := OperatingSystem pathOfSTXExecutable) notNil ifTrue:[ |
4017 | 1686 |
|parentDir| |
1687 |
||
1688 |
parentDir := executablePath asFilename directory. |
|
1689 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
1690 |
topDir := parentDir. |
|
1691 |
] ifFalse:[ |
|
1692 |
parentDir := parentDir directory. |
|
1693 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
1694 |
topDir := parentDir. |
|
1695 |
] ifFalse:[ |
|
1696 |
parentDir := parentDir directory. |
|
1697 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
1698 |
topDir := parentDir. |
|
1699 |
] |
|
1700 |
] |
|
1701 |
]. |
|
1702 |
]. |
|
1703 |
||
1704 |
topDir isNil ifTrue:[ |
|
4048 | 1705 |
"/ try standard installation paths... |
4017 | 1706 |
OperatingSystem isOSXlike ifTrue:[ |
1707 |
|appDir parentDir| |
|
1708 |
||
1709 |
(appDir := '/Applications/SmalltalkX.app' asFilename) exists ifTrue:[ |
|
1710 |
(parentDir := appDir / 'Packages/stx') exists ifTrue:[ |
|
1711 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
1712 |
topDir := parentDir. |
|
1713 |
]. |
|
1714 |
]. |
|
1715 |
]. |
|
1716 |
(appDir := Filename homeDirectory / 'Applications/SmalltalkX.app') exists ifTrue:[ |
|
1717 |
(parentDir := appDir / 'Packages/stx') exists ifTrue:[ |
|
1718 |
((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[ |
|
1719 |
topDir := parentDir. |
|
1720 |
]. |
|
1721 |
]. |
|
1722 |
]. |
|
1723 |
]. |
|
1724 |
]. |
|
1725 |
||
1726 |
topDir notNil ifTrue:[ |
|
1727 |
self initializeSTCFlagsForTopDirectory:topDir. |
|
3576 | 1728 |
]. |
1729 |
||
1730 |
" |
|
1731 |
ParserFlags initialize |
|
1732 |
" |
|
1733 |
||
1734 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
|
4041 | 1735 |
"Modified: / 16-11-2016 / 22:32:03 / cg" |
3576 | 1736 |
! |
1737 |
||
1738 |
initializeSTCFlagsForTopDirectory:topDirArg |
|
1739 |
"topDirArg must be the stx directory (where stc directory with stc-executable is found) |
|
1740 |
notice: for now, can only initialize for borland+windows or linux; |
|
1741 |
visualC setup still fails." |
|
1742 |
||
3719 | 1743 |
|topDir topDirName vcTop sdkTop bccTop mingwTop |
3945 | 1744 |
borlandDir useBorlandC useVisualC useMingw32 useMingw64 |
3719 | 1745 |
programFiles archArg picArg| |
3576 | 1746 |
|
1747 |
topDir := topDirArg. |
|
1748 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
3960 | 1749 |
topDirArg isString ifTrue:[ |
1750 |
topDir := topDirArg copyReplaceAll:$/ with:$\ ifNone:topDirArg. |
|
1751 |
] |
|
3576 | 1752 |
]. |
1753 |
topDir := topDir asFilename. |
|
1754 |
topDirName := topDir name. |
|
1755 |
||
1756 |
"/ if in the development directory, use ./modules |
|
1757 |
Smalltalk isSmalltalkDevelopmentSystem ifTrue:[ |
|
4017 | 1758 |
STCModulePath := UserPreferences current workspaceDirectory / 'modules'. |
3576 | 1759 |
] ifFalse:[ |
4017 | 1760 |
STCModulePath := Filename tempDirectory / 'modules'. |
3576 | 1761 |
]. |
1762 |
||
1763 |
(topDir construct:'stc') exists ifFalse:[ |
|
3960 | 1764 |
('ParserFlags [warning]: stc not found in "',topDirName,'"') infoPrintCR. |
1765 |
'ParserFlags [warning]: stc-compiling (primitive code) will not work in the browser' infoPrintCR. |
|
1766 |
STCCompilation := #never. |
|
3576 | 1767 |
]. |
1768 |
||
1769 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
3960 | 1770 |
useBorlandC := useVisualC := useMingw32 := useMingw64 := false. |
1771 |
programFiles := OperatingSystem getEnvironment:'ProgramFiles'. |
|
1772 |
programFiles isEmptyOrNil ifTrue:[ programFiles := 'C:\Program Files' ]. |
|
1773 |
||
1774 |
STCCompilationIncludes := '-I',topDirName,'\include -I',topDirName,'\libopengl'. |
|
1775 |
||
1776 |
ExternalAddress pointerSize == 4 ifFalse:[ |
|
1777 |
bccTop := nil |
|
1778 |
] ifTrue:[ |
|
1779 |
(bccTop := BCCTop) isNil ifTrue:[ |
|
1780 |
borlandDir := OperatingSystem getEnvironment:'BCCDIR'. |
|
1781 |
borlandDir isEmptyOrNil ifTrue:[ borlandDir := 'C:\Borland\bcc55' ]. |
|
1782 |
bccTop := { |
|
1783 |
(borlandDir) . |
|
1784 |
(programFiles , '\Borland\bcc55') . |
|
1785 |
(programFiles , '\bcc55') . |
|
1786 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] |
|
1787 |
ifNone:nil. |
|
1788 |
]. |
|
1789 |
]. |
|
1790 |
||
1791 |
STCCompilationDefines := '-DWIN32'. |
|
1792 |
||
1793 |
(bccTop notNil and:[bccTop asFilename exists]) ifTrue:[ |
|
1794 |
STCCompilationIncludes := STCCompilationIncludes,' -I',bccTop,'\Include'. |
|
1795 |
LibDirectory := topDirName,'\lib\bc'. |
|
1796 |
LinkArgs := '-L',topDirName,'\lib\bc'. |
|
1797 |
LinkArgs := LinkArgs,' -L',bccTop,'\Lib -r -c -ap -Tpd -Gi -w-dup'. |
|
1798 |
CCPath := 'bcc32'. |
|
1799 |
MakeCommand := 'bmake'. |
|
1800 |
LinkCommand := 'ilink32'. |
|
1801 |
CCCompilationOptions := '-w-'. |
|
1802 |
useBorlandC := true. |
|
1803 |
] ifFalse:[ |
|
1804 |
ExternalAddress pointerSize == 4 ifFalse:[ |
|
1805 |
vcTop := nil. |
|
1806 |
] ifTrue:[ |
|
1807 |
(vcTop := VCTop) isNil ifTrue:[ |
|
1808 |
vcTop := { |
|
1809 |
(programFiles,'\Microsoft Visual Studio 13.0\VC') . |
|
1810 |
(programFiles,'\Microsoft Visual Studio 12.0\VC') . |
|
1811 |
(programFiles,'\Microsoft Visual Studio 11.0\VC') . |
|
1812 |
(programFiles,'\Microsoft Visual Studio 10.0\VC') . |
|
1813 |
(programFiles,'\Microsoft Visual Studio 9.0\VC' ) . |
|
1814 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/cl.exe') exists]] |
|
1815 |
ifNone:nil. |
|
1816 |
]. |
|
1817 |
]. |
|
1818 |
(vcTop notNil and:[vcTop asFilename exists]) ifTrue:[ |
|
1819 |
useVisualC := true. |
|
1820 |
STCCompilationIncludes := STCCompilationIncludes,' -I',vcTop,'include'. |
|
1821 |
||
1822 |
(sdkTop := SDKTop) isNil ifTrue:[ |
|
1823 |
sdkTop := { |
|
1824 |
(programFiles,'\Microsoft SDKs\Windows\v9.0A') . |
|
1825 |
(programFiles,'\Microsoft SDKs\Windows\v8.0A') . |
|
1826 |
(programFiles,'\Microsoft SDKs\Windows\v8.0A') . |
|
1827 |
(programFiles,'\Microsoft SDKs\Windows\v7.0A') . |
|
1828 |
(programFiles,'\Microsoft SDKs\Windows\v6.0A') . |
|
1829 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] ifNone:nil. |
|
1830 |
]. |
|
1831 |
(sdkTop notNil and:[sdkTop asFilename exists]) ifTrue:[ |
|
1832 |
STCCompilationIncludes := STCCompilationIncludes,' -I',sdkTop,'\include'. |
|
1833 |
]. |
|
1834 |
LibDirectory := topDirName,'\lib\vc'. |
|
1835 |
LinkArgs := '-L',topDirName,'\lib\vc'. |
|
1836 |
LinkArgs := LinkArgs,' -r -c -ap -Tpd -Gi -w-dup'. |
|
1837 |
CCPath := vcTop,'\bin\cl.exe'. |
|
1838 |
LinkCommand := 'ilink32'. |
|
1839 |
MakeCommand := 'vcmake'. |
|
1840 |
CCCompilationOptions := '/nologo /ZI /w /GF /EHsc /FR.\objvc\'. |
|
1841 |
] ifFalse:[ |
|
1842 |
"/ add definitions for lcc, mingc etc. |
|
1843 |
"/ STCCompilationIncludes := STCCompilationIncludes,' -IC:\xxxxx\Include'. |
|
1844 |
ExternalAddress pointerSize == 4 ifTrue:[ |
|
1845 |
(mingwTop := MingwTop) isNil ifTrue:[ |
|
1846 |
mingwTop := { |
|
1847 |
(programFiles,'\mingw') . |
|
1848 |
(programFiles,'\mingw') . |
|
1849 |
('c:\mingw32') . |
|
1850 |
('c:\mingw') . |
|
1851 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/gcc.exe') exists]] |
|
1852 |
ifNone:nil. |
|
1853 |
]. |
|
1854 |
(mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[ |
|
1855 |
useMingw32 := true. |
|
1856 |
STCCompilationDefines := STCCompilationDefines,' -D__MINGW32__'. |
|
1857 |
CCCompilationOptions := '-w32'. |
|
1858 |
]. |
|
1859 |
] ifFalse:[ |
|
1860 |
(mingwTop := MingwTop) isNil ifTrue:[ |
|
1861 |
mingwTop := { |
|
1862 |
(programFiles,'\mingw64') . |
|
1863 |
(programFiles,'\mingw') . |
|
1864 |
('c:\mingw64') . |
|
1865 |
('c:\mingw') . |
|
1866 |
} detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/gcc.exe') exists]] |
|
1867 |
ifNone:nil. |
|
1868 |
]. |
|
1869 |
(mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[ |
|
1870 |
STCCompilationDefines := STCCompilationDefines,' -D__MINGW64__'. |
|
1871 |
"/ CCCompilationOptions := '-w64'. |
|
1872 |
]. |
|
1873 |
]. |
|
1874 |
(mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[ |
|
1875 |
STCCompilationDefines := STCCompilationDefines,' -D__MINGW__'. |
|
1876 |
CCPath := mingwTop,'\bin\gcc.exe'. |
|
1877 |
LinkCommand := 'gcc'. |
|
1878 |
MakeCommand := 'mingwmake'. |
|
1879 |
LibDirectory := topDirName,'\lib\mingw'. |
|
1880 |
LinkArgs := '-L',topDirName,'\lib\mingw'. |
|
1881 |
"/ LinkArgs := LinkArgs,' -r -c -ap -Tpd -Gi -w-dup'. |
|
1882 |
]. |
|
1883 |
]. |
|
1884 |
]. |
|
1885 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
1886 |
(topDirName,'\stc\stc.exe') asFilename exists ifTrue:[ |
|
1887 |
STCPath := (topDirName,'\stc\stc.exe'). |
|
1888 |
] ifFalse:[ |
|
1889 |
STCPath := 'stc.exe'. |
|
1890 |
]. |
|
1891 |
LibPath := ''. |
|
1892 |
SearchedLibraries := #('import32.lib'). |
|
1893 |
"/ SearchedLibraries := #('import32.lib' 'glu32.lib' 'opengl32.lib'). |
|
3576 | 1894 |
] ifFalse:[ |
3960 | 1895 |
STCCompilationIncludes := '-I',topDirName,'/include'. |
1896 |
STCCompilationDefines := ''. |
|
1897 |
STCCompilationOptions := '+optinline +inlineNew'. |
|
1898 |
STCPath := topDirName,'/stc/stc'. |
|
1899 |
||
1900 |
archArg := picArg := ''. |
|
1901 |
(ExternalAddress pointerSize == 4) ifTrue:[ |
|
1902 |
archArg := ' -m32' |
|
1903 |
] ifFalse:[ |
|
1904 |
archArg := ' -m64'. "gcc -m64 needs -fPIC to make a shared library" |
|
1905 |
picArg := ' -fPIC'. |
|
1906 |
]. |
|
4022 | 1907 |
CCCompilationOptions := STCCompilerInterface getCPUDefine, |
3960 | 1908 |
' -D', self usedCompilerDefine, |
4022 | 1909 |
' ', STCCompilerInterface getOSDefine, |
3960 | 1910 |
' ', '-O', archArg, picArg. |
1911 |
ParserFlags useClang ifTrue:[ |
|
1912 |
CCPath := 'clang' |
|
1913 |
] ifFalse:[ |
|
1914 |
ParserFlags useGnuC ifTrue:[ |
|
1915 |
CCPath := 'gcc' |
|
1916 |
] ifFalse:[ |
|
1917 |
CCPath := 'cc' |
|
1918 |
]. |
|
1919 |
]. |
|
1920 |
LinkArgs := archArg. |
|
1921 |
LinkCommand := CCPath. |
|
1922 |
LinkSharedArgs := '-shared'. |
|
1923 |
||
1924 |
OperatingSystem isOSXlike ifTrue:[ |
|
4017 | 1925 |
LinkSharedArgs := '-shared -mmacosx-version-min=10.5 -arch x86_64 librun.so'. |
1926 |
CCCompilationOptions := CCCompilationOptions ,' -mmacosx-version-min=10.5' |
|
3960 | 1927 |
]. |
1928 |
LibPath := ''. |
|
1929 |
SearchedLibraries := #(). |
|
1930 |
MakeCommand := 'make'. |
|
3576 | 1931 |
]. |
1932 |
||
4025 | 1933 |
(Smalltalk verbose and:[ Smalltalk infoPrinting ]) ifTrue:[ |
4017 | 1934 |
'ParserFlags [info]: STC Setup:' infoPrintCR. |
1935 |
('ParserFlags [info]: STCCompilationDefines: ',(STCCompilationDefines?'')) infoPrintCR. |
|
1936 |
('ParserFlags [info]: CCPath: ',CCPath asString) infoPrintCR. |
|
1937 |
('ParserFlags [info]: CCCompilationOptions: ',(CCCompilationOptions?'')) infoPrintCR. |
|
1938 |
('ParserFlags [info]: LinkCommand: ',LinkCommand asString) infoPrintCR. |
|
1939 |
('ParserFlags [info]: MakeCommand: ',MakeCommand asString) infoPrintCR. |
|
1940 |
('ParserFlags [info]: LinkArgs: ',(LinkArgs?''),' ',(LinkSharedArgs ?'')) infoPrintCR. |
|
1941 |
('ParserFlags [info]: STCModulePath: ',STCModulePath asString) infoPrintCR. |
|
3748 | 1942 |
]. |
1943 |
||
3576 | 1944 |
" |
1945 |
ParserFlags initializeSTCFlagsForTopDirectory:'../..' |
|
4017 | 1946 |
ParserFlags initialize |
3576 | 1947 |
" |
1948 |
||
1949 |
"Modified: / 09-08-2006 / 18:47:18 / fm" |
|
1950 |
"Created: / 06-08-2011 / 19:47:47 / cg" |
|
1951 |
! ! |
|
1634 | 1952 |
|
2685 | 1953 |
!ParserFlags methodsFor:'accessing'! |
1954 |
||
2927 | 1955 |
fullLineNumberInfo |
1956 |
^ (self lineNumberInfo == #full) |
|
1957 |
||
1958 |
"Created: / 26-09-2012 / 14:13:42 / cg" |
|
1959 |
! |
|
1960 |
||
1961 |
lineNumberInfo |
|
1962 |
^ lineNumberInfo |
|
1963 |
||
1964 |
"Created: / 26-09-2012 / 13:27:08 / cg" |
|
1965 |
! |
|
1966 |
||
1967 |
lineNumberInfo:something |
|
1968 |
lineNumberInfo := something. |
|
1969 |
||
1970 |
"Created: / 26-09-2012 / 13:27:17 / cg" |
|
2685 | 1971 |
! ! |
1972 |
||
1658 | 1973 |
!ParserFlags methodsFor:'accessing-compilation control'! |
1974 |
||
1668 | 1975 |
allowExtensionsToPrivateClasses |
1976 |
^ allowExtensionsToPrivateClasses |
|
1977 |
! |
|
1978 |
||
1979 |
allowExtensionsToPrivateClasses:aBoolean |
|
1980 |
allowExtensionsToPrivateClasses := aBoolean |
|
1981 |
! |
|
1982 |
||
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1983 |
allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1984 |
^ allowPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1985 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1986 |
"Created: / 16-11-2006 / 14:24:54 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1987 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1988 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1989 |
allowPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1990 |
allowPossibleSTCCompilationProblems := aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1991 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1992 |
"Created: / 16-11-2006 / 14:24:56 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1993 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
1994 |
|
1658 | 1995 |
arraysAreImmutable |
1996 |
^ arraysAreImmutable |
|
1997 |
! |
|
1998 |
||
1999 |
arraysAreImmutable:aBoolean |
|
2000 |
arraysAreImmutable := aBoolean. |
|
2001 |
! |
|
2002 |
||
1717
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2003 |
flattenVisualWorksNamespaces |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2004 |
^ true |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2005 |
! |
fff182879ce2
qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents:
1713
diff
changeset
|
2006 |
|
1658 | 2007 |
stringsAreImmutable |
2008 |
^ stringsAreImmutable |
|
2009 |
! |
|
2010 |
||
2011 |
stringsAreImmutable:aBoolean |
|
2012 |
stringsAreImmutable := aBoolean. |
|
2013 |
! ! |
|
2014 |
||
2015 |
!ParserFlags methodsFor:'accessing-stc compilation control'! |
|
2016 |
||
2017 |
ccCompilationOptions |
|
1668 | 2018 |
^ ccCompilationOptions ? '' |
4043 | 2019 |
|
2020 |
" |
|
2021 |
self ccCompilationOptions |
|
2022 |
" |
|
2023 |
||
2024 |
"Modified (comment): / 17-11-2016 / 15:40:29 / cg" |
|
1658 | 2025 |
! |
2026 |
||
2027 |
ccCompilationOptions:something |
|
2028 |
ccCompilationOptions := something. |
|
2029 |
! |
|
2030 |
||
2031 |
ccPath |
|
2032 |
^ ccPath |
|
4043 | 2033 |
|
2034 |
" |
|
2035 |
self ccPath |
|
2036 |
" |
|
2037 |
||
2038 |
"Modified (comment): / 17-11-2016 / 15:40:40 / cg" |
|
1658 | 2039 |
! |
2040 |
||
2041 |
ccPath:something |
|
2042 |
ccPath := something. |
|
2043 |
! |
|
2044 |
||
2045 |
implicitSelfSends |
|
2046 |
^ implicitSelfSends |
|
2047 |
! |
|
2048 |
||
2049 |
implicitSelfSends:aBoolean |
|
2050 |
implicitSelfSends := aBoolean. |
|
2051 |
! |
|
2052 |
||
2053 |
libPath |
|
2054 |
^ libPath |
|
4043 | 2055 |
|
2056 |
" |
|
2057 |
self libPath |
|
2058 |
" |
|
2059 |
||
2060 |
"Modified (comment): / 17-11-2016 / 15:40:52 / cg" |
|
1658 | 2061 |
! |
2062 |
||
2063 |
libPath:aString |
|
2064 |
libPath := aString |
|
2065 |
! |
|
2066 |
||
2067 |
linkArgs |
|
2068 |
^ linkArgs |
|
4043 | 2069 |
|
2070 |
" |
|
2071 |
self linkArgs |
|
2072 |
" |
|
2073 |
||
2074 |
"Modified (comment): / 17-11-2016 / 15:41:03 / cg" |
|
1658 | 2075 |
! |
2076 |
||
2077 |
linkArgs:aString |
|
2078 |
linkArgs := aString |
|
2079 |
! |
|
2080 |
||
2081 |
linkCommand |
|
2082 |
^ linkCommand |
|
4043 | 2083 |
|
2084 |
" |
|
2085 |
self linkCommand |
|
2086 |
" |
|
2087 |
||
2088 |
"Modified (comment): / 17-11-2016 / 15:41:16 / cg" |
|
1658 | 2089 |
! |
2090 |
||
2091 |
linkCommand:aString |
|
2092 |
linkCommand := aString |
|
2093 |
! |
|
2094 |
||
1898 | 2095 |
linkSharedArgs |
2096 |
^ linkSharedArgs |
|
2097 |
! |
|
2098 |
||
2099 |
linkSharedArgs:aString |
|
2100 |
linkSharedArgs := aString |
|
2101 |
! |
|
2102 |
||
1658 | 2103 |
searchedLibraries |
2104 |
^ searchedLibraries |
|
2105 |
! |
|
2106 |
||
2107 |
searchedLibraries:aString |
|
2108 |
searchedLibraries := aString |
|
2109 |
! |
|
2110 |
||
2111 |
stcCompilation |
|
2112 |
^ stcCompilation |
|
2113 |
! |
|
2114 |
||
2115 |
stcCompilation:something |
|
2116 |
stcCompilation := something. |
|
2117 |
! |
|
2118 |
||
2119 |
stcCompilationDefines |
|
2120 |
^ stcCompilationDefines |
|
2121 |
! |
|
2122 |
||
2123 |
stcCompilationDefines:something |
|
2124 |
stcCompilationDefines := something. |
|
2125 |
! |
|
2126 |
||
2127 |
stcCompilationIncludes |
|
2128 |
^ stcCompilationIncludes |
|
4043 | 2129 |
|
2130 |
" |
|
2131 |
self stcCompilationIncludes |
|
2132 |
" |
|
2133 |
||
2134 |
"Modified (comment): / 17-11-2016 / 15:41:43 / cg" |
|
1658 | 2135 |
! |
2136 |
||
2137 |
stcCompilationIncludes:something |
|
2138 |
stcCompilationIncludes := something. |
|
2139 |
! |
|
2140 |
||
2141 |
stcCompilationOptions |
|
2142 |
^ stcCompilationOptions |
|
2143 |
! |
|
2144 |
||
2145 |
stcCompilationOptions:something |
|
2146 |
stcCompilationOptions := something. |
|
2147 |
! |
|
2148 |
||
2149 |
stcKeepCIntermediate |
|
2701
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
2150 |
^ stcKeepCIntermediate ? false |
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
2151 |
|
36ad61f458e8
changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents:
2690
diff
changeset
|
2152 |
"Modified: / 16-09-2011 / 19:56:22 / cg" |
1658 | 2153 |
! |
2154 |
||
2155 |
stcKeepCIntermediate:something |
|
2156 |
stcKeepCIntermediate := something. |
|
2157 |
! |
|
2158 |
||
2159 |
stcKeepOIntermediate |
|
2702 | 2160 |
^ stcKeepOIntermediate ? false |
2161 |
||
2162 |
"Modified: / 16-09-2011 / 19:56:52 / cg" |
|
1658 | 2163 |
! |
2164 |
||
2165 |
stcKeepOIntermediate:something |
|
2166 |
stcKeepOIntermediate := something. |
|
2167 |
! |
|
2168 |
||
2490 | 2169 |
stcKeepSIntermediate |
2170 |
^ false |
|
2171 |
"/ ^ true |
|
2172 |
! |
|
2173 |
||
1658 | 2174 |
stcKeepSTIntermediate |
2702 | 2175 |
^ stcKeepSTIntermediate ? false |
2176 |
||
2177 |
"Modified: / 16-09-2011 / 19:57:11 / cg" |
|
1658 | 2178 |
! |
2179 |
||
2180 |
stcKeepSTIntermediate:something |
|
2181 |
stcKeepSTIntermediate := something. |
|
2182 |
! |
|
2183 |
||
2184 |
stcModulePath |
|
4012 | 2185 |
stcModulePath isNil ifTrue:[^ self class stcModulePath]. |
2186 |
^ stcModulePath |
|
1658 | 2187 |
! |
2188 |
||
4013 | 2189 |
stcModulePath:aPath |
2190 |
"set the path to the directory (for an individual compilation context). |
|
2191 |
Obsolete now, as this should not be set from the outside, |
|
2192 |
but instead rely totally on the userPreferences." |
|
2193 |
||
2194 |
stcModulePath := aPath. |
|
1658 | 2195 |
! |
2196 |
||
2197 |
stcPath |
|
2198 |
^ stcPath |
|
2199 |
! |
|
2200 |
||
4017 | 2201 |
stcPath:aPath |
2202 |
stcPath := aPath. |
|
1658 | 2203 |
! ! |
2204 |
||
2205 |
!ParserFlags methodsFor:'accessing-syntax-control'! |
|
1634 | 2206 |
|
2207 |
allowArrayIndexSyntaxExtension |
|
2208 |
^ allowArrayIndexSyntaxExtension |
|
2209 |
! |
|
2210 |
||
2211 |
allowArrayIndexSyntaxExtension:aBoolean |
|
2212 |
allowArrayIndexSyntaxExtension := aBoolean. |
|
2213 |
! |
|
2214 |
||
3220 | 2215 |
allowAssignmentToBlockArgument |
2216 |
^ allowAssignmentToBlockArgument |
|
2217 |
! |
|
2218 |
||
2219 |
allowAssignmentToBlockArgument:aBoolean |
|
2220 |
allowAssignmentToBlockArgument := aBoolean. |
|
2221 |
! |
|
2222 |
||
2223 |
allowAssignmentToMethodArgument |
|
2224 |
^ allowAssignmentToMethodArgument |
|
2225 |
! |
|
2226 |
||
2227 |
allowAssignmentToMethodArgument:aBoolean |
|
2228 |
allowAssignmentToMethodArgument := aBoolean. |
|
2229 |
! |
|
2230 |
||
2231 |
allowAssignmentToPoolVariable |
|
2232 |
^ allowAssignmentToPoolVariable |
|
2233 |
! |
|
2234 |
||
2235 |
allowAssignmentToPoolVariable:aBoolean |
|
2236 |
allowAssignmentToPoolVariable := aBoolean. |
|
2237 |
! |
|
2238 |
||
2306 | 2239 |
allowCaretAsBinop |
2240 |
^ allowCaretAsBinop |
|
2241 |
! |
|
2242 |
||
2243 |
allowCaretAsBinop:aBoolean |
|
2244 |
allowCaretAsBinop := aBoolean. |
|
2245 |
! |
|
2246 |
||
2312 | 2247 |
allowCharacterEscapes |
2248 |
^ allowCharacterEscapes |
|
2249 |
! |
|
2250 |
||
2251 |
allowCharacterEscapes:aBoolean |
|
2252 |
allowCharacterEscapes := aBoolean. |
|
2253 |
! |
|
2254 |
||
1634 | 2255 |
allowDollarInIdentifier |
2256 |
^ allowDollarInIdentifier |
|
2257 |
! |
|
2258 |
||
2259 |
allowDollarInIdentifier:aBoolean |
|
2260 |
allowDollarInIdentifier := aBoolean. |
|
2261 |
! |
|
2262 |
||
2263 |
allowDolphinExtensions |
|
2264 |
^ allowDolphinExtensions |
|
2265 |
! |
|
2266 |
||
2267 |
allowDolphinExtensions:aBoolean |
|
2268 |
allowDolphinExtensions := aBoolean |
|
2269 |
! |
|
2270 |
||
2271 |
allowDomainVariables |
|
2272 |
^ allowDomainVariables |
|
2273 |
! |
|
2274 |
||
2275 |
allowDomainVariables:aBoolean |
|
2276 |
allowDomainVariables := aBoolean. |
|
2277 |
! |
|
2278 |
||
1950 | 2279 |
allowEmptyStatements |
2280 |
^ allowEmptyStatements ? false |
|
2281 |
||
2282 |
"Created: / 20-11-2006 / 13:56:14 / cg" |
|
2283 |
! |
|
2284 |
||
2285 |
allowEmptyStatements:aBoolean |
|
2286 |
allowEmptyStatements := aBoolean. |
|
2287 |
||
2288 |
"Created: / 20-11-2006 / 14:26:48 / cg" |
|
2289 |
! |
|
2290 |
||
1634 | 2291 |
allowExtendedBinarySelectors |
2292 |
^ allowExtendedBinarySelectors |
|
2293 |
! |
|
2294 |
||
2295 |
allowExtendedBinarySelectors:aBoolean |
|
2296 |
allowExtendedBinarySelectors := aBoolean. |
|
2297 |
! |
|
2298 |
||
2299 |
allowExtendedSTXSyntax |
|
2300 |
^ allowExtendedSTXSyntax |
|
2301 |
! |
|
2302 |
||
3220 | 2303 |
allowExtendedSTXSyntax:aBoolean |
2304 |
allowExtendedSTXSyntax := aBoolean. |
|
1634 | 2305 |
! |
2306 |
||
2307 |
allowFixedPointLiterals |
|
2308 |
^ allowFixedPointLiterals |
|
2309 |
! |
|
2310 |
||
3220 | 2311 |
allowFixedPointLiterals:aBoolean |
2312 |
allowFixedPointLiterals := aBoolean. |
|
1634 | 2313 |
! |
2314 |
||
2315 |
allowFunctionCallSyntaxForBlockEvaluation |
|
2316 |
^ allowFunctionCallSyntaxForBlockEvaluation |
|
2317 |
! |
|
2318 |
||
2319 |
allowFunctionCallSyntaxForBlockEvaluation:aBoolean |
|
2320 |
allowFunctionCallSyntaxForBlockEvaluation := aBoolean. |
|
2321 |
! |
|
2322 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2323 |
allowHashAsBinarySelector |
1713 | 2324 |
^ allowHashAsBinarySelector |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2325 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2326 |
|
1634 | 2327 |
allowLazyValueExtension |
2328 |
^ allowLazyValueExtension |
|
2329 |
! |
|
2330 |
||
3220 | 2331 |
allowLazyValueExtension:aBoolean |
2332 |
allowLazyValueExtension := aBoolean. |
|
1634 | 2333 |
! |
2334 |
||
2335 |
allowLiteralNameSpaceSymbols |
|
2336 |
^ allowLiteralNameSpaceSymbols |
|
2337 |
! |
|
2338 |
||
2339 |
allowLiteralNameSpaceSymbols:aBoolean |
|
2340 |
allowLiteralNameSpaceSymbols := aBoolean |
|
2341 |
! |
|
2342 |
||
2343 |
allowLocalVariableDeclarationWithInitializerExpression |
|
2344 |
^ allowLocalVariableDeclarationWithInitializerExpression |
|
2345 |
! |
|
2346 |
||
2347 |
allowLocalVariableDeclarationWithInitializerExpression:aBoolean |
|
2348 |
allowLocalVariableDeclarationWithInitializerExpression := aBoolean. |
|
2349 |
! |
|
2350 |
||
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2351 |
allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2352 |
^ allowNationalCharactersInIdentifier |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2353 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2354 |
|
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2355 |
allowNationalCharactersInIdentifier:aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2356 |
allowNationalCharactersInIdentifier := aBoolean |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2357 |
! |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2358 |
|
1634 | 2359 |
allowOldStyleAssignment |
4039 | 2360 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
2361 |
||
1634 | 2362 |
^ allowOldStyleAssignment |
2363 |
! |
|
2364 |
||
2365 |
allowOldStyleAssignment:aBoolean |
|
4039 | 2366 |
"return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed" |
2367 |
||
1634 | 2368 |
allowOldStyleAssignment := aBoolean |
2369 |
! |
|
2370 |
||
4041 | 2371 |
allowParagraphInIdentifier |
2372 |
^ allowParagraphInIdentifier |
|
2373 |
||
2374 |
"Created: / 16-11-2016 / 22:29:06 / cg" |
|
2375 |
! |
|
2376 |
||
2377 |
allowParagraphInIdentifier:aBoolean |
|
2378 |
allowParagraphInIdentifier := aBoolean. |
|
2379 |
||
2380 |
"Created: / 16-11-2016 / 22:29:14 / cg" |
|
2381 |
! |
|
2382 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2383 |
allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2384 |
^ allowPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2385 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2386 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2387 |
allowPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2388 |
allowPeriodInSymbol := aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2389 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2390 |
|
1634 | 2391 |
allowQualifiedNames |
2392 |
^ allowQualifiedNames |
|
2393 |
! |
|
2394 |
||
2395 |
allowQualifiedNames:aBoolean |
|
2396 |
allowQualifiedNames := aBoolean. |
|
2397 |
! |
|
2398 |
||
2399 |
allowReservedWordsAsSelectors |
|
2400 |
^ allowReservedWordsAsSelectors |
|
2401 |
! |
|
2402 |
||
2403 |
allowReservedWordsAsSelectors:aBoolean |
|
2404 |
allowReservedWordsAsSelectors := aBoolean. |
|
2405 |
! |
|
2406 |
||
1703 | 2407 |
allowSTVExtensions |
2408 |
"return true, if support for ST/V extensions is enabled." |
|
2409 |
||
2410 |
^ allowSTVExtensions |
|
2411 |
! |
|
2412 |
||
1701 | 2413 |
allowSTVPrimitives |
2414 |
"return true, if support for ST/V primitives is enabled." |
|
2415 |
||
2416 |
^ allowSTVPrimitives |
|
2417 |
! |
|
2418 |
||
2984 | 2419 |
allowSTXDelimiterComments |
3946 | 2420 |
"are ST/X token-delimited comments allowed? |
2421 |
(see comment on class side)" |
|
2422 |
||
2984 | 2423 |
^ allowSTXDelimiterComments |
2424 |
! |
|
2425 |
||
2426 |
allowSTXDelimiterComments:aBoolean |
|
3946 | 2427 |
"are ST/X token-delimited comments allowed? |
2428 |
(see comment on class side)" |
|
2429 |
||
2984 | 2430 |
allowSTXDelimiterComments := aBoolean. |
2431 |
||
2432 |
" |
|
2433 |
ParserFlags allowSTXDelimiterComments:false |
|
2434 |
ParserFlags allowSTXDelimiterComments:true |
|
2435 |
" |
|
2436 |
! |
|
2437 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2438 |
allowSTXEOLComments |
3946 | 2439 |
"are ST/X end-of-line comments allowed?" |
2440 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2441 |
^ allowSTXEOLComments |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2442 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2443 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2444 |
allowSTXEOLComments:aBoolean |
3946 | 2445 |
"are ST/X end-of-line comments allowed?" |
2446 |
||
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2447 |
allowSTXEOLComments := aBoolean. |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2448 |
|
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2449 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2450 |
ParserFlags allowSTXEOLComments:false |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2451 |
ParserFlags allowSTXEOLComments:true |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2452 |
" |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2453 |
! |
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2454 |
|
3945 | 2455 |
allowSTXExtendedArrayLiterals |
3946 | 2456 |
"are scheme-style typed literal arrays allowed?" |
2457 |
||
3945 | 2458 |
^ allowSTXExtendedArrayLiterals ? false |
2459 |
! |
|
2460 |
||
2461 |
allowSTXExtendedArrayLiterals:aBoolean |
|
3946 | 2462 |
"are scheme-style typed literal arrays allowed?" |
2463 |
||
3945 | 2464 |
allowSTXExtendedArrayLiterals := aBoolean |
2465 |
! |
|
2466 |
||
2494 | 2467 |
allowSTXFunctions |
2468 |
^ false |
|
2469 |
||
2470 |
"Created: / 23-05-2011 / 17:43:45 / cg" |
|
2471 |
! |
|
2472 |
||
3783 | 2473 |
allowSignedByteArrayElements |
2474 |
"experimental" |
|
2475 |
"/ ^ true. |
|
2476 |
"/ ^ allowSignedByteArrayElements |
|
2477 |
^ false. |
|
2478 |
! |
|
2479 |
||
3576 | 2480 |
allowSqueakExtensions |
2481 |
"return true, if support for squeak extensions |
|
2482 |
computed arrays { .., } |
|
2483 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
2484 |
is enabled." |
|
2485 |
||
2486 |
^ allowSqueakExtensions |
|
2487 |
! |
|
2488 |
||
2489 |
allowSqueakExtensions:aBoolean |
|
2490 |
"this allows turning on/off support for squeak extensions: |
|
2491 |
computed arrays { .., } |
|
2492 |
c/java style arguments in message sends rec foo(arg1, ... argN) |
|
2493 |
" |
|
2494 |
||
2495 |
allowSqueakExtensions := aBoolean |
|
2496 |
! |
|
1634 | 2497 |
|
1689 | 2498 |
allowSqueakPrimitives |
2499 |
"return true, if support for squeak primitives is enabled." |
|
2500 |
||
2501 |
^ allowSqueakPrimitives |
|
2502 |
! |
|
2503 |
||
2504 |
allowSqueakPrimitives:aBoolean |
|
2505 |
"this allows turning on/off support for squeak primitives" |
|
2506 |
||
2507 |
allowSqueakPrimitives := aBoolean |
|
2508 |
! |
|
2509 |
||
2313 | 2510 |
allowStringEscapes |
2511 |
^ allowStringEscapes |
|
2512 |
! |
|
2513 |
||
2514 |
allowStringEscapes:aBoolean |
|
2515 |
allowStringEscapes := aBoolean. |
|
2516 |
! |
|
2517 |
||
1634 | 2518 |
allowUnderscoreInIdentifier |
2519 |
^ allowUnderscoreInIdentifier |
|
2520 |
! |
|
2521 |
||
2522 |
allowUnderscoreInIdentifier:aBoolean |
|
2523 |
allowUnderscoreInIdentifier := aBoolean |
|
2524 |
! |
|
2525 |
||
2310 | 2526 |
allowUnicodeCharacters |
2527 |
^ allowUnicodeCharacters |
|
2528 |
! |
|
2529 |
||
2530 |
allowUnicodeCharacters:aBoolean |
|
2531 |
allowUnicodeCharacters := aBoolean |
|
2532 |
! |
|
2533 |
||
2307 | 2534 |
allowUnicodeStrings |
2535 |
^ allowUnicodeStrings |
|
2536 |
! |
|
2537 |
||
2538 |
allowUnicodeStrings:aBoolean |
|
2539 |
allowUnicodeStrings := aBoolean |
|
2540 |
! |
|
2541 |
||
1634 | 2542 |
allowVariableReferences |
2543 |
^ allowVariableReferences |
|
2544 |
! |
|
2545 |
||
2546 |
allowVariableReferences:aBoolean |
|
2547 |
allowVariableReferences := aBoolean. |
|
2548 |
! |
|
2549 |
||
1655 | 2550 |
allowVisualAgeESSymbolLiterals |
2551 |
^ allowVisualAgeESSymbolLiterals |
|
2552 |
! |
|
2553 |
||
2554 |
allowVisualAgeESSymbolLiterals:aBoolean |
|
2555 |
allowVisualAgeESSymbolLiterals := aBoolean. |
|
1689 | 2556 |
! |
2557 |
||
2558 |
allowVisualAgePrimitives |
|
2559 |
"return true, if support for V'Age primitives is enabled." |
|
2560 |
||
2561 |
^ allowVisualAgePrimitives |
|
2562 |
! |
|
2563 |
||
2564 |
allowVisualAgePrimitives:aBoolean |
|
2565 |
"this allows turning on/off support for V'Age primitives" |
|
2566 |
||
2567 |
allowVisualAgePrimitives := aBoolean |
|
1773 | 2568 |
! |
2569 |
||
2570 |
allowVisualWorksMethodAnnotations |
|
2571 |
"return true, if support for V'Works extended primitive syntax for method annotations." |
|
2572 |
||
2573 |
^ allowVisualWorksMethodAnnotations |
|
2574 |
||
2575 |
"Created: / 07-07-2006 / 15:48:30 / cg" |
|
2576 |
! |
|
2577 |
||
2578 |
allowVisualWorksMethodAnnotations:aBoolean |
|
2579 |
"turn on/off support for V'Works extended primitive syntax for method annotations." |
|
2580 |
||
3355 | 2581 |
allowVisualWorksMethodAnnotations := aBoolean |
1773 | 2582 |
|
2583 |
"Created: / 07-07-2006 / 15:49:03 / cg" |
|
3220 | 2584 |
! |
2585 |
||
2586 |
warnAssignmentToBlockArgument |
|
2587 |
^ warnAssignmentToBlockArgument |
|
2588 |
! |
|
2589 |
||
2590 |
warnAssignmentToBlockArgument:aBoolean |
|
2591 |
warnAssignmentToBlockArgument := aBoolean. |
|
2592 |
! |
|
2593 |
||
2594 |
warnAssignmentToMethodArgument |
|
2595 |
^ warnAssignmentToMethodArgument |
|
2596 |
! |
|
2597 |
||
2598 |
warnAssignmentToMethodArgument:aBoolean |
|
2599 |
warnAssignmentToMethodArgument := aBoolean. |
|
2600 |
! |
|
2601 |
||
2602 |
warnAssignmentToPoolVariable |
|
2603 |
^ warnAssignmentToPoolVariable |
|
2604 |
! |
|
2605 |
||
2606 |
warnAssignmentToPoolVariable:aBoolean |
|
2607 |
warnAssignmentToPoolVariable := aBoolean. |
|
1658 | 2608 |
! ! |
1634 | 2609 |
|
1658 | 2610 |
!ParserFlags methodsFor:'accessing-warning-control'! |
1634 | 2611 |
|
1652 | 2612 |
warnAboutBadComments |
2613 |
^ warnAboutBadComments |
|
2614 |
! |
|
2615 |
||
2616 |
warnAboutBadComments:aBoolean |
|
2617 |
warnAboutBadComments := aBoolean. |
|
2618 |
! |
|
2619 |
||
1811 | 2620 |
warnAboutNonLowercaseLocalVariableNames |
2621 |
^ warnAboutNonLowercaseLocalVariableNames |
|
1740 | 2622 |
! |
2623 |
||
1811 | 2624 |
warnAboutNonLowercaseLocalVariableNames:aBoolean |
2625 |
warnAboutNonLowercaseLocalVariableNames := aBoolean. |
|
1740 | 2626 |
! |
2627 |
||
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2628 |
warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2629 |
^ warnAboutPeriodInSymbol |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2630 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2631 |
|
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2632 |
warnAboutPeriodInSymbol:aBoolean |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2633 |
warnAboutPeriodInSymbol := aBoolean. |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2634 |
! |
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2635 |
|
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2636 |
warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2637 |
^ warnAboutPossibleSTCCompilationProblems |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2638 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2639 |
"Created: / 16-11-2006 / 14:24:38 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2640 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2641 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2642 |
warnAboutPossibleSTCCompilationProblems:aBoolean |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2643 |
warnAboutPossibleSTCCompilationProblems := aBoolean. |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2644 |
|
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2645 |
"Created: / 16-11-2006 / 14:24:40 / cg" |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2646 |
! |
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2647 |
|
2121 | 2648 |
warnAboutPossiblyUnimplementedSelectors |
2649 |
^ warnAboutPossiblyUnimplementedSelectors |
|
2650 |
! |
|
2651 |
||
2652 |
warnAboutPossiblyUnimplementedSelectors:aBoolean |
|
2653 |
warnAboutPossiblyUnimplementedSelectors := aBoolean. |
|
2654 |
! |
|
2655 |
||
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2656 |
warnAboutReferenceToPrivateClass |
3396 | 2657 |
"controls generation of warning messages when a private class is referenced" |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2658 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2659 |
^ warnAboutReferenceToPrivateClass |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2660 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2661 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2662 |
warnAboutReferenceToPrivateClass:aBoolean |
3396 | 2663 |
"controls generation of warning messages when a private class is referenced" |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2664 |
|
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2665 |
warnAboutReferenceToPrivateClass := aBoolean |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2666 |
! |
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2667 |
|
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2668 |
warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2669 |
^ warnAboutShortLocalVariableNames |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2670 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2671 |
|
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2672 |
warnAboutShortLocalVariableNames:aBoolean |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2673 |
warnAboutShortLocalVariableNames := aBoolean. |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2674 |
! |
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2675 |
|
2738 | 2676 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant |
2739 | 2677 |
^ warnAboutUnknownCharacterEscapesInJavaScriptStringConstant ? false |
2738 | 2678 |
|
2679 |
"Created: / 04-10-2011 / 19:51:19 / cg" |
|
2680 |
! |
|
2681 |
||
2682 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean |
|
2683 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean. |
|
2684 |
||
2685 |
"Created: / 04-10-2011 / 19:51:27 / cg" |
|
2686 |
! |
|
2687 |
||
1634 | 2688 |
warnAboutVariableNameConventions |
2689 |
^ warnAboutVariableNameConventions |
|
2690 |
! |
|
2691 |
||
2692 |
warnAboutVariableNameConventions:aBoolean |
|
2693 |
warnAboutVariableNameConventions := aBoolean. |
|
2694 |
! |
|
2695 |
||
2696 |
warnAboutWrongVariableNames |
|
2697 |
^ warnAboutWrongVariableNames |
|
2698 |
! |
|
2699 |
||
2700 |
warnAboutWrongVariableNames:aBoolean |
|
2701 |
warnAboutWrongVariableNames := aBoolean. |
|
2702 |
! |
|
2703 |
||
2704 |
warnCommonMistakes |
|
2705 |
^ warnCommonMistakes |
|
2706 |
! |
|
2707 |
||
2708 |
warnCommonMistakes:aBoolean |
|
2709 |
warnCommonMistakes := aBoolean. |
|
2710 |
! |
|
2711 |
||
2712 |
warnDollarInIdentifier |
|
2713 |
^ warnDollarInIdentifier |
|
2714 |
! |
|
2715 |
||
2716 |
warnDollarInIdentifier:aBoolean |
|
2717 |
warnDollarInIdentifier := aBoolean. |
|
2718 |
! |
|
2719 |
||
1638 | 2720 |
warnHiddenVariables |
2721 |
^ warnHiddenVariables |
|
2722 |
! |
|
2723 |
||
2724 |
warnHiddenVariables:aBoolean |
|
2465 | 2725 |
"controls generation of warning messages about hiding variables by locals" |
2726 |
||
1638 | 2727 |
warnHiddenVariables := aBoolean. |
2465 | 2728 |
|
2729 |
"Modified: / 30-11-2010 / 15:00:55 / cg" |
|
1638 | 2730 |
! |
2731 |
||
1682 | 2732 |
warnInconsistentReturnValues |
2733 |
^ warnInconsistentReturnValues |
|
2734 |
! |
|
2735 |
||
2736 |
warnInconsistentReturnValues:aBoolean |
|
2737 |
warnInconsistentReturnValues := aBoolean. |
|
2738 |
! |
|
2739 |
||
1634 | 2740 |
warnOldStyleAssignment |
2741 |
^ warnOldStyleAssignment |
|
2742 |
! |
|
2743 |
||
2744 |
warnOldStyleAssignment:aBoolean |
|
2745 |
warnOldStyleAssignment := aBoolean. |
|
2746 |
! |
|
2747 |
||
4041 | 2748 |
warnParagraphInIdentifier |
2749 |
^ warnParagraphInIdentifier |
|
2750 |
||
2751 |
"Created: / 16-11-2016 / 22:29:33 / cg" |
|
2752 |
! |
|
2753 |
||
2754 |
warnParagraphInIdentifier:aBoolean |
|
2755 |
warnParagraphInIdentifier := aBoolean. |
|
2756 |
||
2757 |
"Created: / 16-11-2016 / 22:29:45 / cg" |
|
2758 |
! |
|
2759 |
||
2787 | 2760 |
warnPlausibilityChecks |
2761 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
2762 |
||
2789
3100327ad683
changed: #warnPlausibilityChecks
Claus Gittinger <cg@exept.de>
parents:
2787
diff
changeset
|
2763 |
^ warnPlausibilityChecks ? true |
2787 | 2764 |
|
2765 |
"Created: / 19-01-2012 / 10:38:54 / cg" |
|
2766 |
! |
|
2767 |
||
2768 |
warnPlausibilityChecks:aBoolean |
|
2769 |
"controls generation of warning messages about plausibility checks (possible precedence, etc.)" |
|
2770 |
||
2771 |
warnPlausibilityChecks := aBoolean |
|
2772 |
||
2773 |
"Created: / 19-01-2012 / 10:39:02 / cg" |
|
2774 |
! |
|
2775 |
||
1634 | 2776 |
warnPossibleIncompatibilities |
2057 | 2777 |
"holds true, if possible incompatibilities (with other ST systems) |
2778 |
are to be warned about" |
|
2779 |
||
1634 | 2780 |
^ warnPossibleIncompatibilities |
2781 |
! |
|
2782 |
||
2783 |
warnPossibleIncompatibilities:aBoolean |
|
2057 | 2784 |
"holds true, if possible incompatibilities (with other ST systems) |
2785 |
are to be warned about" |
|
2786 |
||
1634 | 2787 |
warnPossibleIncompatibilities := aBoolean. |
2788 |
! |
|
2789 |
||
2790 |
warnST80Directives |
|
2791 |
^ warnST80Directives |
|
2792 |
! |
|
2793 |
||
2476 | 2794 |
warnST80Directives:aBoolean |
2795 |
warnST80Directives := aBoolean. |
|
2796 |
||
2797 |
"Modified: / 30-01-2011 / 13:01:06 / cg" |
|
1634 | 2798 |
! |
2799 |
||
2800 |
warnSTXHereExtensionUsed |
|
2801 |
^ warnSTXHereExtensionUsed |
|
2802 |
! |
|
2803 |
||
2804 |
warnSTXHereExtensionUsed:aBoolean |
|
2805 |
warnSTXHereExtensionUsed := aBoolean. |
|
2806 |
! |
|
2807 |
||
2808 |
warnSTXNameSpaceUse |
|
2809 |
^ warnSTXNameSpaceUse |
|
2810 |
! |
|
2811 |
||
2812 |
warnSTXNameSpaceUse:aBoolean |
|
2813 |
warnSTXNameSpaceUse := aBoolean. |
|
2814 |
! |
|
2815 |
||
2816 |
warnSTXSpecialComment |
|
2817 |
^ warnSTXSpecialComment |
|
2818 |
! |
|
2819 |
||
2820 |
warnSTXSpecialComment:aBoolean |
|
2821 |
warnSTXSpecialComment := aBoolean. |
|
2822 |
! |
|
2823 |
||
2824 |
warnUndeclared |
|
2825 |
^ warnUndeclared |
|
2826 |
! |
|
2827 |
||
2828 |
warnUndeclared:aBoolean |
|
2829 |
warnUndeclared := aBoolean. |
|
2830 |
! |
|
2831 |
||
2832 |
warnUnderscoreInIdentifier |
|
2833 |
^ warnUnderscoreInIdentifier |
|
2834 |
! |
|
2835 |
||
2836 |
warnUnderscoreInIdentifier:aBoolean |
|
2837 |
warnUnderscoreInIdentifier := aBoolean. |
|
2838 |
! |
|
2839 |
||
2840 |
warnUnusedVars |
|
2841 |
^ warnUnusedVars |
|
2842 |
! |
|
2843 |
||
2844 |
warnUnusedVars:aBoolean |
|
2845 |
warnUnusedVars := aBoolean. |
|
1662 | 2846 |
! |
2847 |
||
2848 |
warnings |
|
2477 | 2849 |
^ warnings ? true |
2850 |
||
2851 |
"Modified: / 30-01-2011 / 13:05:48 / cg" |
|
1662 | 2852 |
! |
2853 |
||
2476 | 2854 |
warnings:aBoolean |
2855 |
warnings := aBoolean. |
|
2856 |
||
2857 |
"Modified: / 30-01-2011 / 13:00:51 / cg" |
|
1634 | 2858 |
! ! |
2859 |
||
2860 |
!ParserFlags methodsFor:'initialization'! |
|
2861 |
||
2862 |
initialize |
|
3220 | 2863 |
"each instance is initially setup from the classes global defaults. |
2864 |
(but can be changed as required for an individual compilation run" |
|
2865 |
||
1662 | 2866 |
warnings := Warnings. |
1634 | 2867 |
warnUndeclared := WarnUndeclared. |
2868 |
warnUnusedVars := WarnUnusedVars. |
|
2869 |
warnST80Directives := WarnST80Directives. |
|
2870 |
warnSTXSpecialComment := WarnSTXSpecials. |
|
2871 |
warnSTXNameSpaceUse := WarnSTXSpecials. |
|
2872 |
warnSTXHereExtensionUsed := WarnSTXSpecials. |
|
2873 |
warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier. |
|
2874 |
warnDollarInIdentifier := WarnDollarInIdentifier. |
|
4041 | 2875 |
warnParagraphInIdentifier := WarnParagraphInIdentifier. |
1634 | 2876 |
warnOldStyleAssignment := WarnOldStyleAssignment. |
2877 |
warnCommonMistakes := WarnCommonMistakes. |
|
2878 |
warnPossibleIncompatibilities := WarnPossibleIncompatibilities. |
|
2879 |
warnAboutVariableNameConventions := WarnAboutVariableNameConventions. |
|
2880 |
warnAboutWrongVariableNames := WarnAboutWrongVariableNames. |
|
1652 | 2881 |
warnAboutBadComments := WarnAboutBadComments. |
2073
efd507565894
+warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents:
2061
diff
changeset
|
2882 |
warnAboutReferenceToPrivateClass := WarnAboutReferenceToPrivateClass. |
1638 | 2883 |
warnHiddenVariables := WarnHiddenVariables. |
1682 | 2884 |
warnInconsistentReturnValues := WarnInconsistentReturnValues. |
1811 | 2885 |
warnAboutNonLowercaseLocalVariableNames := WarnAboutNonLowercaseLocalVariableNames. |
2079
0625ff661e53
+warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents:
2073
diff
changeset
|
2886 |
warnAboutShortLocalVariableNames := WarnAboutShortLocalVariableNames. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2887 |
warnAboutPossibleSTCCompilationProblems := WarnAboutPossibleSTCCompilationProblems. |
2121 | 2888 |
warnAboutPossiblyUnimplementedSelectors := WarnAboutPossiblyUnimplementedSelectors. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2889 |
warnAboutPeriodInSymbol := WarnAboutPeriodInSymbol. |
2738 | 2890 |
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant. |
2787 | 2891 |
warnPlausibilityChecks := WarnPlausibilityChecks. |
3220 | 2892 |
warnAssignmentToBlockArgument := WarnAssignmentToBlockArgument. |
2893 |
warnAssignmentToMethodArgument := WarnAssignmentToMethodArgument. |
|
3396 | 2894 |
warnAssignmentToPoolVariable := WarnAssignmentToPoolVariable. |
1634 | 2895 |
|
2896 |
allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier. |
|
2897 |
allowDollarInIdentifier := AllowDollarInIdentifier. |
|
4041 | 2898 |
allowParagraphInIdentifier := AllowParagraphInIdentifier. |
1634 | 2899 |
allowOldStyleAssignment := AllowOldStyleAssignment. |
2900 |
allowSqueakExtensions := AllowSqueakExtensions. |
|
2901 |
allowDolphinExtensions := AllowDolphinExtensions. |
|
2902 |
allowLiteralNameSpaceSymbols := AllowLiteralNameSpaceSymbols. |
|
2903 |
allowExtendedBinarySelectors := AllowExtendedBinarySelectors. |
|
2306 | 2904 |
allowCaretAsBinop := AllowCaretAsBinop. |
1634 | 2905 |
allowFunctionCallSyntaxForBlockEvaluation := AllowFunctionCallSyntaxForBlockEvaluation. |
2906 |
allowLocalVariableDeclarationWithInitializerExpression := AllowLocalVariableDeclarationWithInitializerExpression. |
|
2907 |
allowDomainVariables := AllowDomainVariables. |
|
2908 |
allowArrayIndexSyntaxExtension := AllowArrayIndexSyntaxExtension. |
|
2909 |
allowReservedWordsAsSelectors := AllowReservedWordsAsSelectors. |
|
2910 |
allowVariableReferences := AllowVariableReferences. |
|
2911 |
allowLazyValueExtension := AllowLazyValueExtension. |
|
2912 |
allowFixedPointLiterals := AllowFixedPointLiterals. |
|
2913 |
allowExtendedSTXSyntax := AllowExtendedSTXSyntax. |
|
2914 |
allowQualifiedNames := AllowQualifiedNames. |
|
1655 | 2915 |
allowVisualAgeESSymbolLiterals := AllowVisualAgeESSymbolLiterals. |
1668 | 2916 |
allowExtensionsToPrivateClasses := AllowExtensionsToPrivateClasses. |
1689 | 2917 |
allowVisualAgePrimitives := AllowVisualAgePrimitives. |
2918 |
allowSqueakPrimitives := AllowSqueakPrimitives. |
|
1700 | 2919 |
allowSTVPrimitives := AllowSTVPrimitives. |
1702 | 2920 |
allowSTVExtensions := AllowSTVExtensions. |
1706
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2921 |
allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier. |
685cea395a8c
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1704
diff
changeset
|
2922 |
allowHashAsBinarySelector := AllowHashAsBinarySelector. |
1708
eb71a302895e
more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents:
1706
diff
changeset
|
2923 |
allowSTXEOLComments := AllowSTXEOLComments. |
2984 | 2924 |
allowSTXDelimiterComments := AllowSTXDelimiterComments. |
3947 | 2925 |
allowSTXExtendedArrayLiterals := AllowSTXExtendedArrayLiterals. |
1773 | 2926 |
allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations. |
1947
a5429732842a
warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents:
1940
diff
changeset
|
2927 |
allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems. |
1950 | 2928 |
allowEmptyStatements := AllowEmptyStatements. |
2179
5ccb29e1233a
allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents:
2145
diff
changeset
|
2929 |
allowPeriodInSymbol := AllowPeriodInSymbol. |
2311 | 2930 |
"/ these are only supported in the new compiler |
2307 | 2931 |
allowUnicodeStrings := AllowUnicodeStrings. |
2310 | 2932 |
allowUnicodeCharacters := AllowUnicodeCharacters. |
2311 | 2933 |
allowCharacterEscapes := AllowCharacterEscapes. |
2313 | 2934 |
allowStringEscapes := AllowStringEscapes. |
2685 | 2935 |
allowAssignmentToBlockArgument := AllowAssignmentToBlockArgument. |
2936 |
allowAssignmentToMethodArgument := AllowAssignmentToMethodArgument. |
|
2937 |
allowAssignmentToPoolVariable := AllowAssignmentToPoolVariable. |
|
1634 | 2938 |
|
2939 |
arraysAreImmutable := ArraysAreImmutable ? true. |
|
2940 |
stringsAreImmutable := StringsAreImmutable ? true. |
|
2941 |
implicitSelfSends := ImplicitSelfSends ? false. |
|
2929 | 2942 |
lineNumberInfo := LineNumberInfo ? false. |
1634 | 2943 |
|
1658 | 2944 |
stcKeepCIntermediate := STCKeepCIntermediate. |
2945 |
stcKeepOIntermediate := STCKeepOIntermediate. |
|
2946 |
stcKeepSTIntermediate := STCKeepSTIntermediate. |
|
2947 |
stcModulePath := STCModulePath. |
|
2948 |
stcCompilation := STCCompilation. |
|
2949 |
stcCompilationIncludes := STCCompilationIncludes. |
|
2950 |
stcCompilationDefines := STCCompilationDefines. |
|
2951 |
stcCompilationOptions := STCCompilationOptions. |
|
2952 |
stcPath := STCPath. |
|
2953 |
ccCompilationOptions := CCCompilationOptions. |
|
2954 |
ccPath := CCPath. |
|
2955 |
linkArgs := LinkArgs. |
|
2956 |
linkCommand := LinkCommand. |
|
2957 |
libPath := LibPath. |
|
2958 |
searchedLibraries := SearchedLibraries. |
|
2959 |
||
1634 | 2960 |
" |
2961 |
ParserFlags initialize. |
|
2962 |
self new inspect. |
|
2963 |
" |
|
1773 | 2964 |
|
4041 | 2965 |
"Modified: / 16-11-2016 / 22:32:37 / cg" |
1634 | 2966 |
! ! |
2967 |
||
2968 |
!ParserFlags class methodsFor:'documentation'! |
|
2969 |
||
2970 |
version |
|
3653 | 2971 |
^ '$Header$' |
2218
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2972 |
! |
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2973 |
|
51ac45ab36a2
changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents:
2179
diff
changeset
|
2974 |
version_CVS |
3653 | 2975 |
^ '$Header$' |
1634 | 2976 |
! ! |
2977 |
||
3009
4dea425c9718
flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents:
2984
diff
changeset
|
2978 |
|
1634 | 2979 |
ParserFlags initialize! |