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