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