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