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