ParserFlags.st
author Claus Gittinger <cg@exept.de>
Sat, 17 Aug 2019 14:36:09 +0200
changeset 4482 64eb770b276e
parent 4478 ce41aebbe8e2
child 4483 f1070419e5d9
permissions -rw-r--r--
#FEATURE by exept class: Parser changed: #primary warnings for typed array
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
     1
"{ Encoding: utf8 }"
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
     2
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
 COPYRIGHT (c) 1989 by Claus Gittinger
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 COPYRIGHT (c) 2005 by eXept Software AG
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
     6
	      All Rights Reserved
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 This software is furnished under a license and may be used
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 only in accordance with the terms of that license and with the
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 inclusion of the above copyright notice.   This software may not
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
 be provided or otherwise made available to, or used by, any
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
 other person.  No title to or ownership of the software is
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
 hereby transferred.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
    15
"{ Package: 'stx:libcomp' }"
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
    16
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
    17
"{ NameSpace: Smalltalk }"
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
    18
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
    19
Object subclass:#ParserFlags
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    20
	instanceVariableNames:'warnings warnUnusedVars warnUndeclared warnST80Directives
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    21
		warnSTXHereExtensionUsed warnSTXSpecialComment
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    22
		warnUnderscoreInIdentifier warnOldStyleAssignment
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    23
		warnCommonMistakes warnSTXNameSpaceUse
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    24
		warnPossibleIncompatibilities warnDollarInIdentifier
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    25
		warnParagraphInIdentifier warnHiddenVariables
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    26
		warnAboutVariableNameConventions warnAboutWrongVariableNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    27
		warnAboutBadComments warnInconsistentReturnValues
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    28
		warnAboutNonLowercaseLocalVariableNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    29
		warnAboutPossibleSTCCompilationProblems
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    30
		warnAboutReferenceToPrivateClass warnAboutShortLocalVariableNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    31
		warnAboutPossiblyUnimplementedSelectors
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    32
		warnAboutUnknownCharacterEscapesInJavaScriptStringConstant
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    33
		warnPlausibilityChecks allowLiteralNameSpaceSymbols
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    34
		allowUnderscoreInIdentifier allowDollarInIdentifier
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    35
		allowParagraphInIdentifier allowOldStyleAssignment
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    36
		allowSqueakExtensions allowDolphinExtensions
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    37
		allowExtendedBinarySelectors allowQualifiedNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    38
		allowFunctionCallSyntaxForBlockEvaluation
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    39
		allowLocalVariableDeclarationWithInitializerExpression
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    40
		allowDomainVariables allowArrayIndexSyntaxExtension
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    41
		allowReservedWordsAsSelectors allowVariableReferences
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    42
		allowLazyValueExtension allowFixedPointLiterals
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    43
		allowExtendedSTXSyntax allowVisualAgeESSymbolLiterals
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    44
		allowExtensionsToPrivateClasses allowSqueakPrimitives
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    45
		allowVisualAgePrimitives allowSTVPrimitives allowSTVExtensions
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    46
		allowNationalCharactersInIdentifier allowHashAsBinarySelector
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    47
		allowSTXEOLComments allowEmptyStatements
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    48
		allowVisualWorksMethodAnnotations
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    49
		allowPossibleSTCCompilationProblems arraysAreImmutable
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    50
		stringsAreImmutable implicitSelfSends stcKeepCIntermediate
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    51
		stcKeepOIntermediate stcKeepSTIntermediate stcModulePath
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    52
		stcCompilation stcCompilationIncludes stcCompilationDefines
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    53
		stcCompilationOptions stcPath ccCompilationOptions ccPath
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    54
		linkArgs linkSharedArgs linkCommand libPath searchedLibraries
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    55
		warnAboutPeriodInSymbol allowPeriodInSymbol allowCaretAsBinop
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    56
		allowUnicodeStrings allowUnicodeCharacters allowCharacterEscapes
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    57
		allowStringEscapes allowAssignmentToBlockArgument
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    58
		allowAssignmentToMethodArgument allowAssignmentToPoolVariable
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    59
		lineNumberInfo allowSTXDelimiterComments
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    60
		allowSTXExtendedArrayLiterals warnAssignmentToBlockArgument
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    61
		warnAssignmentToMethodArgument warnAssignmentToPoolVariable
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    62
		allowSignedByteArrayElements allowSymbolsStartingWithDigit
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
    63
		allowJavaScriptConst allowPeriodAsNameSpaceSeparator
4421
3e423ef3465e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4413
diff changeset
    64
		allowCStrings warnAboutPossiblyUninitializedLocals allowEStrings
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
    65
		singlePrecisionFloatF allowRStrings
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
    66
		allowGreekCharactersInIdentifier allowCIntegers'
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    67
	classVariableNames:'AllowArrayIndexSyntaxExtension AllowAssignmentToBlockArgument
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    68
		AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    69
		AllowCaretAsBinop AllowCharacterEscapes AllowDollarInIdentifier
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    70
		AllowDolphinExtensions AllowDomainVariables AllowEmptyStatements
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    71
		AllowExtendedBinarySelectors AllowExtendedSTXSyntax
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    72
		AllowExtensionsToPrivateClasses AllowFixedPointLiterals
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    73
		AllowFunctionCallSyntaxForBlockEvaluation
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    74
		AllowHashAsBinarySelector AllowLazyValueExtension
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    75
		AllowLiteralNameSpaceSymbols
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    76
		AllowLocalVariableDeclarationWithInitializerExpression
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    77
		AllowNationalCharactersInIdentifier AllowOldStyleAssignment
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    78
		AllowParagraphInIdentifier AllowPeriodInSymbol
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    79
		AllowPossibleSTCCompilationProblems AllowQualifiedNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    80
		AllowReservedWordsAsSelectors AllowSTVExtensions
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    81
		AllowSTVPrimitives AllowSTXDelimiterComments AllowSTXEOLComments
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    82
		AllowSTXExtendedArrayLiterals AllowSqueakExtensions
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    83
		AllowSqueakPrimitives AllowStringEscapes
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    84
		AllowUnderscoreInIdentifier AllowUnicodeCharacters
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    85
		AllowUnicodeStrings AllowVariableReferences
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    86
		AllowVisualAgeESSymbolLiterals AllowVisualAgePrimitives
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    87
		AllowVisualWorksMethodAnnotations ArraysAreImmutable BCCTop
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    88
		CCCompilationOptions CCPath DefineForBorlandC DefineForCLANG
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    89
		DefineForGNUC DefineForMINGW DefineForMINGW32 DefineForMINGW64
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    90
		DefineForMSC DefineForVisualC ForcedCompiler ImplicitSelfSends
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    91
		LibDirectory LibPath LineNumberInfo LinkArgs LinkCommand
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    92
		LinkSharedArgs MakeCommand MingwTop PerMethodFlags SDKTop
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    93
		STCCompilation STCCompilationDefines STCCompilationIncludes
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    94
		STCCompilationOptions STCKeepCIntermediate STCKeepOIntermediate
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    95
		STCKeepSTIntermediate STCModulePath STCPath SearchedLibraries
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    96
		StringsAreImmutable VCTop WarnAboutBadComments
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    97
		WarnAboutNonLowercaseLocalVariableNames WarnAboutPeriodInSymbol
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    98
		WarnAboutPossibleSTCCompilationProblems
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
    99
		WarnAboutPossiblyUnimplementedSelectors
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   100
		WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   101
		WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   102
		WarnAboutVariableNameConventions WarnAboutWrongVariableNames
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   103
		WarnAssignmentToBlockArgument WarnAssignmentToMethodArgument
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   104
		WarnAssignmentToPoolVariable WarnCommonMistakes
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   105
		WarnDollarInIdentifier WarnHiddenVariables
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   106
		WarnInconsistentReturnValues WarnOldStyleAssignment
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   107
		WarnParagraphInIdentifier WarnPlausibilityChecks
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   108
		WarnPossibleIncompatibilities WarnST80Directives WarnSTXSpecials
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   109
		WarnUndeclared WarnUnderscoreInIdentifier WarnUnusedVars Warnings
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   110
		AutoDefineVariables AllowSignedByteArrayElements
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   111
		AllowSymbolsStartingWithDigit AllowJavaScriptConst
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
   112
		AllowJavaScriptLet AllowPeriodAsNameSpaceSeparator AllowCStrings
4421
3e423ef3465e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4413
diff changeset
   113
		WarnAboutPossiblyUninitializedLocals AllowEStrings
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
   114
		SinglePrecisionFloatF AllowRStrings
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   115
		AllowGreekCharactersInIdentifier WarnAboutPossibleNameClashes
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   116
		AllowCIntegers'
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   117
	poolDictionaries:''
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   118
	category:'System-Compiler'
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
   119
!
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
!ParserFlags class methodsFor:'documentation'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
copyright
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
 COPYRIGHT (c) 1989 by Claus Gittinger
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
 COPYRIGHT (c) 2005 by eXept Software AG
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   127
	      All Rights Reserved
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
 This software is furnished under a license and may be used
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
 only in accordance with the terms of that license and with the
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
 inclusion of the above copyright notice.   This software may not
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
 be provided or otherwise made available to, or used by, any
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
 other person.  No title to or ownership of the software is
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
 hereby transferred.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
documentation
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
    compiler flags (used to be defined in Scanner and Parser) have been extracted for easier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
    individual-method customization (using ST as scripting).
1711
3e2ba2a12cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1709
diff changeset
   142
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
   143
    The class side provides correspondingly-named variables, which hold the default values.
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
   144
1712
75bba1da2451 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1711
diff changeset
   145
    howTo_fileInVSE:
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
   146
        ParserFlags allowSTVExtensions:true.
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
   147
        ParserFlags allowSTVPrimitives:true.
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
   148
        ParserFlags allowSTXEOLComments:false.
2488
10949eaf1071 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 2477
diff changeset
   149
10949eaf1071 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 2477
diff changeset
   150
    for stx debugging:
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
   151
        STCKeepCIntermediate := true
2488
10949eaf1071 changed: #documentation
Claus Gittinger <cg@exept.de>
parents: 2477
diff changeset
   152
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   153
    the flags control:
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   154
        Warnings                            -- enable/disable any warnings from the compiler
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   155
          WarnUndeclared                    -- warn about undeclared variables
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   156
          WarnUnusedVars                    -- warn about unused variables
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   157
          WarnST80Directives                -- warn when ST80 (visualworks) directives (primitives) are used
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   158
          WarnAboutWrongVariableNames       -- conventions / style
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   159
          WarnAboutVariableNameConventions 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   160
          WarnAboutNonLowercaseLocalVariableNames
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   161
          WarnAboutShortLocalVariableNames
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   162
          WarnAboutBadComments 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   163
          WarnCommonMistakes
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   164
          WarnAboutReferenceToPrivateClass
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   165
        WarnPossibleIncompatibilities
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   166
          WarnSTXSpecials                   -- warn when special ST/X syntax extensions are used
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   167
          WarnUnderscoreInIdentifier        -- underscores in identifier (not all Smalltalk dialects support this)
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   168
          WarnDollarInIdentifier            -- dollar in identifier (not all Smalltalk dialects support this)
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   169
          WarnParagraphInIdentifier         -- paragraph character in identifier
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   170
          WarnOldStyleAssignment            -- assignment with _ - character
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   171
          WarnHiddenVariables               -- locals shadowing outer/instvars
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   172
          WarnInconsistentReturnValues      -- boolean/non-boolean return values
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   173
          WarnAboutPeriodInSymbol
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   174
          WarnAboutPossibleSTCCompilationProblems
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   175
          WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   176
          WarnAssignmentToBlockArgument 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   177
          WarnAssignmentToMethodArgument
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   178
          WarnAssignmentToPoolVariable
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   179
        WarnPlausibilityChecks
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   180
          WarnAboutPossiblyUnimplementedSelectors
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   181
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   182
       AllowReservedWordsAsSelectors
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   183
       AllowUnderscoreInIdentifier 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   184
       AllowParagraphInIdentifier 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   185
       AllowDollarInIdentifier              -- st80-vms dollars in identifiers
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   186
       AllowOldStyleAssignment              -- st80 underscore as assignment
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   187
       AllowDolphinExtensions               -- dolphin computed literal
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   188
       AllowQualifiedNames                  -- vw3 qualified names
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   189
       AllowExtendedBinarySelectors         -- vw5.4 extended binary selectors (plus/minus, center-dot etc.)
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   190
       AllowCaretAsBinop                    -- too dangerous
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   191
       AllowLiteralNameSpaceSymbols         -- st/x literal nameSpace-symbols (#foo::bar)
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   192
       AllowArrayIndexSyntaxExtension 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   193
       AllowFunctionCallSyntaxForBlockEvaluation 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   194
       AllowLocalVariableDeclarationWithInitializerExpression 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   195
       AllowDomainVariables 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   196
       AllowArrayIndexSyntaxExtension 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   197
       AllowReservedWordsAsSelectors 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   198
       AllowVariableReferences 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   199
       AllowLazyValueExtension 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   200
       AllowFixedPointLiterals 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   201
       AllowExtendedSTXSyntax 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   202
       AllowVisualAgeESSymbolLiterals 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   203
       AllowExtensionsToPrivateClasses 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   204
       AllowVisualAgePrimitives 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   205
       AllowSqueakExtensions                -- squeak computed array
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   206
       AllowSqueakPrimitives 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   207
       AllowSTVPrimitives                   -- number-sign syntax
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   208
       AllowSTVExtensions 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   209
       AllowNationalCharactersInIdentifier 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   210
       AllowHashAsBinarySelector 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   211
       AllowSTXEOLComments                  -- DQuote/ EOL comments
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   212
       AllowSTXDelimiterComments            -- DQuote<<END delimiter comments
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   213
       AllowVisualWorksMethodAnnotations 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   214
       AllowPossibleSTCCompilationProblems  -- must be true, to allow fileIn
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   215
       AllowEmptyStatements 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   216
       AllowPeriodInSymbol 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   217
       AllowPeriodAsNameSpaceSeparator 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   218
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   219
       AllowCStrings                        -- c'....' is a string with C-escapes
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   220
       AllowUnicodeStrings 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   221
       AllowUnicodeCharacters 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   222
       AllowCharacterEscapes 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   223
       AllowStringEscapes 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   224
       AllowAssignmentToBlockArgument 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   225
       AllowAssignmentToMethodArgument 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   226
       AllowAssignmentToPoolVariable 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   227
       AllowSignedByteArrayElements 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   228
       AllowSymbolsStartingWithDigit 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   229
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   230
       AllowJavaScriptConst               
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   231
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   232
       ArraysAreImmutable                 -- still care for ST-80 compatibility
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   233
       StringsAreImmutable                -- still care for ST-80 compatibility
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   234
       ImplicitSelfSends 
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   235
    
1711
3e2ba2a12cc9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1709
diff changeset
   236
"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
!ParserFlags class methodsFor:'instance creation'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
new
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
    ^ self basicNew initialize
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
!ParserFlags class methodsFor:'accessing-compilation control'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   247
allowExtensionsToPrivateClasses
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   248
    ^ AllowExtensionsToPrivateClasses
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   249
!
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   250
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   251
allowExtensionsToPrivateClasses:aBoolean
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   252
    AllowExtensionsToPrivateClasses := aBoolean
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   253
!
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   254
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   255
allowPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   256
    ^ AllowPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   257
3546
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   258
    "
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   259
     self allowPossibleSTCCompilationProblems:true
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   260
     self allowPossibleSTCCompilationProblems:false
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   261
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   262
     self warnAboutPossibleSTCCompilationProblems
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   263
    "
a242fdde05dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3519
diff changeset
   264
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   265
    "Created: / 16-11-2006 / 14:31:36 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   266
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   267
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   268
allowPossibleSTCCompilationProblems:aBoolean
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   269
    AllowPossibleSTCCompilationProblems := aBoolean
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   270
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   271
    "Created: / 16-11-2006 / 14:31:40 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   272
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
   273
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
arraysAreImmutable
3219
6c7afe87902c class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   275
    "return true if arrays and byteArrays are compiled as immutable literals"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
    ^ ArraysAreImmutable
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
arraysAreImmutable:aBoolean
3219
6c7afe87902c class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3218
diff changeset
   281
    "turn on/off immutable array and byteArrays literals - default is false for ST-80 compatibilty."
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
    ArraysAreImmutable := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
     can be added to your private.rc file:
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   288
     ParserFlags arraysAreImmutable:true
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   289
     ParserFlags arraysAreImmutable:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
2927
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   293
fullLineNumberInfo
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   294
    ^ (self lineNumberInfo == #full)
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   295
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   296
    "Created: / 26-09-2012 / 14:16:09 / cg"
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   297
!
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   298
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
implicitSelfSends
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
    "return true if undefined variables with
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
     lowercase first character are to be turned
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
     into implicit self sends"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
    ^ ImplicitSelfSends
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
implicitSelfSends:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
    "turn on/off implicit self sends"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
    ImplicitSelfSends := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
     Compiler implicitSelfSends:true
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   314
     Compiler implicitSelfSends:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
2927
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   318
lineNumberInfo
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   319
    ^ LineNumberInfo
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   320
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   321
    "Created: / 26-09-2012 / 13:27:34 / cg"
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   322
!
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   323
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   324
lineNumberInfo:aSymbol
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   325
    LineNumberInfo := aSymbol.
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   326
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   327
    "Created: / 26-09-2012 / 13:27:54 / cg"
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   328
!
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
   329
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   330
singlePrecisionFloatF
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   331
    "by default, the 'f'-character in a float literal will generate
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   332
     double-precision Float literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   333
     With allowSinglePrecisionFloats, it will generate single precision ShortFloat literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   334
     The default is false.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   335
     Notice, that there is some confusion among Smalltalk systems, whether a float has
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   336
     single or double precision (VW vs. V'age).
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   337
     In ST/X, floats have double-precision by default."
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   338
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   339
    ^ SinglePrecisionFloatF
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   340
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   341
    "Created: / 26-05-2019 / 11:32:38 / Claus Gittinger"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   342
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   343
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   344
singlePrecisionFloatF:aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   345
    "by default, the 'f'-character in a float literal will generate
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   346
     double-precision Float literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   347
     With allowSinglePrecisionFloats, it will generate single precision ShortFloat literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   348
     The default is false.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   349
     Notice, that there is some confusion among Smalltalk systems, whether a float has
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   350
     single or double precision (VW vs. V'age).
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   351
     In ST/X, floats have double-precision by default."
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   352
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   353
    SinglePrecisionFloatF := aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   354
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   355
    "Created: / 26-05-2019 / 11:32:29 / Claus Gittinger"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   356
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   357
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
stringsAreImmutable
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
    "return true if strings are immutable literals"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
    ^ StringsAreImmutable
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
    "Created: / 3.8.1998 / 14:53:25 / cg"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
stringsAreImmutable:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
    "turn on/off immutable string literals - default is false for ST-80 compatibilty."
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
    StringsAreImmutable := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
     can be added to your private.rc file:
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   374
     ParserFlags stringsAreImmutable:true
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   375
     ParserFlags stringsAreImmutable:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
    "Created: / 3.8.1998 / 14:53:28 / cg"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   381
!ParserFlags class methodsFor:'accessing-per method flags'!
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   382
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   383
disableFlag:flagName forClass:class selector:selector
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   384
    "remember that warnings named flagName (such as #warnUnusedVars)
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   385
     are disabled for a particular method.
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
   386
     Sent if user wants to disable warnings in the future
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   387
     (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
   388
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   389
    |key|
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   390
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   391
    PerMethodFlags isNil ifTrue:[
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   392
	PerMethodFlags := Dictionary new.
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   393
    ].
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   394
    key := class name, '>>',selector.
2852
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   395
    PerMethodFlags at:key put:(Timestamp now + self perMethodDisableWarningTimeDuration).
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   396
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   397
    "Created: / 28-02-2012 / 12:57:45 / cg"
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   398
!
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   399
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   400
isFlag:flagName enabledForClass:class selector:selector
3295
d5243ecc477d class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3224
diff changeset
   401
    "return true, if warnings named <flagName> (such as #warnUnusedVars)
2852
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   402
     are to be suppressed for a particular method."
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   403
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   404
    |key endTime|
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   405
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   406
    PerMethodFlags isNil ifTrue:[^ true].
2830
9763658e0c0b changed:
Claus Gittinger <cg@exept.de>
parents: 2829
diff changeset
   407
    class isNil ifTrue:[^ true].
9763658e0c0b changed:
Claus Gittinger <cg@exept.de>
parents: 2829
diff changeset
   408
    selector isNil ifTrue:[^ true].
9763658e0c0b changed:
Claus Gittinger <cg@exept.de>
parents: 2829
diff changeset
   409
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   410
    key := class name, '>>',selector.
2852
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   411
    endTime := PerMethodFlags at:key ifAbsent:nil.
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   412
    endTime isNil ifTrue:[^ true].
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   413
    endTime > Timestamp now ifTrue:[^ false].
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   414
    PerMethodFlags removeKey:key.
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   415
    ^ true
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   416
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   417
    "Created: / 28-02-2012 / 12:57:30 / cg"
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   418
!
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   419
2852
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   420
perMethodDisableWarningTimeDuration
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   421
    "when the user wants to suppress a particular warning for a particular
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   422
     method, it will be only suppressed for some time duration.
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   423
     After that, the suppress will automatically be removed, and normal warnings
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   424
     are issued again."
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   425
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   426
    ^ 30 minutes
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   427
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   428
    "Created: / 08-03-2012 / 10:22:57 / cg"
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   429
!
Claus Gittinger <cg@exept.de>
parents: 2830
diff changeset
   430
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   431
reenableAllSuppressedFlags
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   432
    "turn off any suppressed warnings"
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   433
2830
9763658e0c0b changed:
Claus Gittinger <cg@exept.de>
parents: 2829
diff changeset
   434
    PerMethodFlags := nil
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   435
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   436
    "Created: / 28-02-2012 / 12:59:08 / cg"
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   437
! !
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   438
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   439
!ParserFlags class methodsFor:'accessing-stc compilation control'!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   440
2645
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   441
bccTop:aPath
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   442
    "windows only: define the borland-C installation directory.
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   443
     must contain bin\bcc32.exe and include.
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   444
     Typically, something like 'C:\borland\bcc55'"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   445
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   446
    BCCTop := aPath
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   447
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   448
    "Created: / 08-08-2011 / 22:41:48 / cg"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   449
!
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   450
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   451
ccCompilationOptions
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
   452
    ^ CCCompilationOptions ? ''
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   453
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   454
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   455
ccCompilationOptions:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   456
    CCCompilationOptions := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   457
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   458
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   459
ccPath
4475
2ade19de2d67 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4461
diff changeset
   460
    ^ CCPath ? 'cc'
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   461
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   462
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   463
ccPath:aSymbol
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   464
    CCPath := aSymbol
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   465
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   466
2626
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   467
libDirectory
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   468
    ^ LibDirectory
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   469
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   470
    "Created: / 07-08-2011 / 14:01:21 / cg"
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   471
!
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   472
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   473
libDirectory:aString
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   474
    LibDirectory := aString
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   475
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   476
    "Created: / 07-08-2011 / 14:01:28 / cg"
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   477
!
76a39762314a class definition
Claus Gittinger <cg@exept.de>
parents: 2625
diff changeset
   478
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   479
libPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   480
    ^ LibPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   481
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   482
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   483
libPath:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   484
    LibPath := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   485
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   486
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   487
linkArgs
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   488
    ^ LinkArgs
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   489
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   490
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   491
linkArgs:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   492
    LinkArgs := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   493
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   494
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   495
linkCommand
4475
2ade19de2d67 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4461
diff changeset
   496
    ^ LinkCommand ? self ccPath
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   497
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   498
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   499
linkCommand:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   500
    LinkCommand := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   501
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   502
1898
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   503
linkSharedArgs
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   504
    ^ LinkSharedArgs
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   505
!
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   506
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   507
linkSharedArgs:aString
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   508
    LinkSharedArgs := aString
2829
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   509
c4b600d7f96d support per-method warning suppression
Claus Gittinger <cg@exept.de>
parents: 2805
diff changeset
   510
    "Modified (format): / 28-02-2012 / 13:34:58 / cg"
1898
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   511
!
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
   512
1814
7792d732d60c make command
fm
parents: 1811
diff changeset
   513
makeCommand
7792d732d60c make command
fm
parents: 1811
diff changeset
   514
    ^ MakeCommand
7792d732d60c make command
fm
parents: 1811
diff changeset
   515
7792d732d60c make command
fm
parents: 1811
diff changeset
   516
    "Created: / 09-08-2006 / 18:45:04 / fm"
7792d732d60c make command
fm
parents: 1811
diff changeset
   517
!
7792d732d60c make command
fm
parents: 1811
diff changeset
   518
7792d732d60c make command
fm
parents: 1811
diff changeset
   519
makeCommand:aString
7792d732d60c make command
fm
parents: 1811
diff changeset
   520
    MakeCommand := aString
7792d732d60c make command
fm
parents: 1811
diff changeset
   521
7792d732d60c make command
fm
parents: 1811
diff changeset
   522
    "Created: / 09-08-2006 / 18:45:12 / fm"
7792d732d60c make command
fm
parents: 1811
diff changeset
   523
!
7792d732d60c make command
fm
parents: 1811
diff changeset
   524
2645
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   525
sdkTop:aPath
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   526
    "windows only: define the SDK top directory.
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   527
     must include folder with windows header files.
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   528
     Typically something like 'C:\Program Files\Microsoft SDKs\Windows\v6.0A'"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   529
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   530
    SDKTop := aPath
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   531
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   532
    "Created: / 08-08-2011 / 22:39:24 / cg"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   533
!
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   534
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   535
searchedLibraries
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   536
    ^ SearchedLibraries
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   537
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   538
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   539
searchedLibraries:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   540
    SearchedLibraries := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   541
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   542
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   543
stcCompilation
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   544
    ^ STCCompilation
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   545
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   546
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   547
stcCompilation:aSymbol
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   548
    STCCompilation := aSymbol
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   549
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   550
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   551
stcCompilationDefines
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   552
    ^ STCCompilationDefines
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   553
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   554
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   555
stcCompilationDefines:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   556
    STCCompilationDefines := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   557
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   558
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   559
stcCompilationIncludes
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   560
    ^ STCCompilationIncludes
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   561
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   562
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   563
stcCompilationIncludes:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   564
    STCCompilationIncludes := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   565
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   566
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   567
stcCompilationOptions
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   568
    ^ STCCompilationOptions
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   569
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   570
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   571
stcCompilationOptions:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   572
    STCCompilationOptions := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   573
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   574
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   575
stcKeepCIntermediate
2701
36ad61f458e8 changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
   576
    ^ STCKeepCIntermediate ? false
36ad61f458e8 changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
   577
36ad61f458e8 changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
   578
    "Modified: / 16-09-2011 / 19:56:18 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   579
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   580
4089
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   581
stcKeepCIntermediate:aBoolean
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   582
    STCKeepCIntermediate := aBoolean.
1940
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   583
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   584
    "
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   585
     STCKeepCIntermediate := true.
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   586
     STCKeepCIntermediate := false.
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   587
    "
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   588
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   589
    "Modified: / 07-11-2006 / 10:58:42 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   590
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   591
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   592
stcKeepOIntermediate
2702
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
   593
    ^ STCKeepOIntermediate ? false
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
   594
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
   595
    "Modified: / 16-09-2011 / 19:56:49 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   596
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   597
4089
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   598
stcKeepOIntermediate:aBoolean
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   599
    STCKeepOIntermediate := aBoolean.
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   600
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   601
    "
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   602
     STCKeepOIntermediate := true.
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   603
     STCKeepOIntermediate := false.
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   604
    "
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   605
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   606
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   607
stcKeepSTIntermediate
2702
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
   608
    ^ STCKeepSTIntermediate ? false
2142
c39591bd8f9d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2121
diff changeset
   609
c39591bd8f9d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2121
diff changeset
   610
    "
c39591bd8f9d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2121
diff changeset
   611
     STCKeepSTIntermediate := true.
c39591bd8f9d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2121
diff changeset
   612
     STCKeepSTIntermediate := false.
c39591bd8f9d *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2121
diff changeset
   613
    "
2702
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
   614
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
   615
    "Modified: / 16-09-2011 / 19:57:17 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   616
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   617
4089
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   618
stcKeepSTIntermediate:aBoolean
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   619
    STCKeepSTIntermediate := aBoolean.
1940
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   620
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   621
    "
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   622
     STCKeepSTIntermediate := true.
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   623
     STCKeepSTIntermediate := false.
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   624
    "
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   625
72cc74daf8fc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1902
diff changeset
   626
    "Modified: / 07-11-2006 / 10:58:54 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   627
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   628
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   629
stcModulePath
4012
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   630
    "the folder, where temporarily compiled modules are created by stc.
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   631
     Used to be inside the bin-directory, but that did not work for readonly/shared
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   632
     st/x installations (i.e. running stx from a mounted dbg).
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   633
     Therefore, this is now in the workspace (where the snapshot image resudes as well)
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   634
     
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   635
     Notice: 
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   636
        this ought to be a persistent folder (at least as along as any
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   637
        snapshot image is present, which refers to any module there.
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   638
        As we cannot (currently) scan snapshots, this is somewhat tricky."
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   639
        
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   640
    STCModulePath notNil ifTrue:[^ STCModulePath].    
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
   641
    ^ UserPreferences current workspaceDirectory  / 'modules'     
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   642
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   643
4089
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   644
stcModulePath:aPath
4013
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
   645
    "set the path to the directory, where temporary modules are created.
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
   646
     Obsolete now, as this should not be set from the outside,
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
   647
     but instead rely totally on the userPreferences."
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
   648
4089
3fa82c96b2e5 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   649
    STCModulePath := aPath.
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   650
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   651
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   652
stcPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   653
    ^ STCPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   654
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   655
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   656
stcPath:aPath
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   657
    STCPath := aPath
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   658
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   659
2011
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   660
useBorlandC
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   661
    "true if borland compiler should be used"
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   662
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   663
    ^ self usedCompilerDefine = DefineForBorlandC
2011
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   664
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   665
    "Created: / 15-03-2007 / 13:33:32 / cg"
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   666
!
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   667
3653
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
   668
useClang
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
   669
    "true if clang compiler should be used"
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
   670
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
   671
    ^ self usedCompilerDefine = DefineForCLANG
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
   672
!
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
   673
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   674
useCompilerDefine: aCompilerDefine
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   675
    "enforce a particular compiler to be used (independent from
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   676
     what the system was compiled with)"
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   677
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   678
    ForcedCompiler := aCompilerDefine.
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   679
2804
f76727ee9e2d changed: #useCompiler:
Claus Gittinger <cg@exept.de>
parents: 2803
diff changeset
   680
    "
f76727ee9e2d changed: #useCompiler:
Claus Gittinger <cg@exept.de>
parents: 2803
diff changeset
   681
     self useCompiler: DefineForBorlandC
f76727ee9e2d changed: #useCompiler:
Claus Gittinger <cg@exept.de>
parents: 2803
diff changeset
   682
     self useCompiler: DefineForVisualC
3719
cf47b10b5607 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3653
diff changeset
   683
     self useCompiler: DefineForMINGW32
2804
f76727ee9e2d changed: #useCompiler:
Claus Gittinger <cg@exept.de>
parents: 2803
diff changeset
   684
    "
f76727ee9e2d changed: #useCompiler:
Claus Gittinger <cg@exept.de>
parents: 2803
diff changeset
   685
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   686
    "Created: / 20-07-2012 / 13:10:30 / cg"
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   687
!
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   688
2011
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   689
useGnuC
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   690
    "true if gnu-c compiler should be used"
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   691
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   692
    ^ self usedCompilerDefine = DefineForGNUC
2011
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   693
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   694
    "Created: / 15-03-2007 / 13:34:49 / cg"
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   695
!
25a6ebc4a173 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1950
diff changeset
   696
3009
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   697
useMingw32
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   698
    "true if mingw compiler should be used"
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   699
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   700
    ^ self usedCompilerDefine = DefineForMINGW32
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   701
!
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   702
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   703
useMingw64
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   704
    "true if mingw compiler should be used"
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   705
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   706
    ^ self usedCompilerDefine = DefineForMINGW64
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   707
!
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
   708
2645
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   709
useVisualC
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   710
    "true if visual-c compiler should be used"
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   711
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   712
    |def|
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   713
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   714
    ^ (def := self usedCompilerDefine) = DefineForVisualC
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   715
    or:[ def = DefineForMSC ]
2645
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   716
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   717
    "Created: / 08-08-2011 / 22:50:25 / cg"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   718
!
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   719
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   720
usedCompiler
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   721
    |dfn|
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   722
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   723
    dfn := self usedCompilerDefine.
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   724
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   725
    dfn = DefineForGNUC ifTrue:[ ^'gcc'].
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   726
    dfn = DefineForBorlandC ifTrue:[ ^'bcc'].
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   727
    dfn = DefineForMSC ifTrue:[ ^'vc'].
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   728
    dfn = DefineForVisualC ifTrue:[ ^'vc'].
3160
9266aad770f5 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
   729
    dfn = DefineForMINGW64 ifTrue:[ ^'mingw'].
9266aad770f5 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
   730
    dfn = DefineForMINGW32 ifTrue:[ ^'mingw'].
9266aad770f5 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3158
diff changeset
   731
    dfn = DefineForMINGW ifTrue:[ ^'mingw'].
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   732
"/    dfn = DefineForLCC ifTrue:[ ^'lcc'].
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   733
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   734
    OperatingSystem isMSWINDOWSlike ifTrue:[
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   735
	^ 'bcc'
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   736
    ].
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   737
    ^ 'gcc'
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   738
2805
5e2d20bbc77e changed: #usedCompiler
Claus Gittinger <cg@exept.de>
parents: 2804
diff changeset
   739
    "
5e2d20bbc77e changed: #usedCompiler
Claus Gittinger <cg@exept.de>
parents: 2804
diff changeset
   740
     self usedCompiler
5e2d20bbc77e changed: #usedCompiler
Claus Gittinger <cg@exept.de>
parents: 2804
diff changeset
   741
    "
5e2d20bbc77e changed: #usedCompiler
Claus Gittinger <cg@exept.de>
parents: 2804
diff changeset
   742
2803
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   743
    "Created: / 31-01-2012 / 12:05:30 / cg"
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   744
!
de9ca0b32bd4 class definition
Claus Gittinger <cg@exept.de>
parents: 2801
diff changeset
   745
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   746
usedCompilerDefine
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   747
    "return the define to be used for the compiler toolchain.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   748
     By default, the toolchain with which stx itself was compiled is used (getCCDefine);
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   749
     can be overwritten by setting ForcedCompiler"
4251
299bb2bfcc35 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 4239
diff changeset
   750
299bb2bfcc35 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 4239
diff changeset
   751
    ^ ForcedCompiler ? STCCompilerInterface getCCDefine.
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   752
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   753
    "
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   754
     ForcedCompiler := DefineForCLANG.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   755
     self usedCompilerDefine.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   756
     
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   757
     ForcedCompiler := nil.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   758
     self usedCompilerDefine.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
   759
    "
4251
299bb2bfcc35 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 4239
diff changeset
   760
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   761
    "Created: / 20-07-2012 / 13:11:22 / cg"
4251
299bb2bfcc35 #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 4239
diff changeset
   762
    "Modified: / 11-05-2018 / 09:44:34 / stefan"
2888
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   763
!
Claus Gittinger <cg@exept.de>
parents: 2852
diff changeset
   764
2645
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   765
vcTop:aPath
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   766
    "windows only: define the visual-C top directory.
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   767
     must contain bin\cl.exe and include.
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   768
     Typically, something like 'C:\Program Files\Microsoft Visual Studio 10.0\VC'"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   769
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   770
    VCTop := aPath
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   771
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   772
    "Created: / 08-08-2011 / 22:39:15 / cg"
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   773
!
0c873acfa7b4 class definition
Claus Gittinger <cg@exept.de>
parents: 2626
diff changeset
   774
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   775
withSTCCompilation:howSymbol do:aBlock
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   776
    |prev|
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   777
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   778
    prev := self stcCompilation.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   779
    self stcCompilation:howSymbol.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   780
    aBlock ensure:[ self stcCompilation:prev ]
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   781
! !
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
   782
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
!ParserFlags class methodsFor:'accessing-syntax-control'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
allowArrayIndexSyntaxExtension
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
   786
    "experimental syntax: var[idx-expr]"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   788
    ^ AllowArrayIndexSyntaxExtension ? false
3190
fcdfb33c75f4 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
   789
fcdfb33c75f4 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
   790
    "
fcdfb33c75f4 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
   791
     self allowArrayIndexSyntaxExtension:true
fcdfb33c75f4 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
   792
     self allowArrayIndexSyntaxExtension:false
fcdfb33c75f4 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
   793
     self allowArrayIndexSyntaxExtension
fcdfb33c75f4 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3160
diff changeset
   794
    "
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
   795
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
   796
    "Modified (comment): / 23-09-2018 / 00:42:11 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   797
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   798
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   799
allowArrayIndexSyntaxExtension:aBoolean
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
   800
    "experimental syntax: var[idx-expr]"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   801
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   802
    AllowArrayIndexSyntaxExtension := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   803
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   804
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   805
     self allowArrayIndexSyntaxExtension:true
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   806
     self allowArrayIndexSyntaxExtension:false
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   807
    "
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
   808
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
   809
    "Modified (comment): / 23-09-2018 / 00:42:15 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   810
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   811
2685
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   812
allowAssignmentToBlockArgument
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   813
    ^ AllowAssignmentToBlockArgument
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   814
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   815
    "Created: / 08-09-2011 / 14:49:46 / cg"
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   816
!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   817
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   818
allowAssignmentToBlockArgument:aBoolean
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   819
    AllowAssignmentToBlockArgument := aBoolean
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   820
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   821
    "Created: / 08-09-2011 / 14:50:23 / cg"
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   822
!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   823
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   824
allowAssignmentToMethodArgument
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   825
    ^ AllowAssignmentToMethodArgument
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   826
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   827
    "Created: / 08-09-2011 / 14:49:57 / cg"
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   828
!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   829
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   830
allowAssignmentToMethodArgument:aBoolean
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   831
    AllowAssignmentToMethodArgument := aBoolean
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   832
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   833
    "Created: / 08-09-2011 / 14:50:34 / cg"
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   834
!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   835
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   836
allowAssignmentToPoolVariable
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   837
    ^ AllowAssignmentToPoolVariable
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   838
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   839
    "Created: / 08-09-2011 / 14:50:06 / cg"
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   840
!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   841
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   842
allowAssignmentToPoolVariable:aBoolean
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   843
    AllowAssignmentToPoolVariable := aBoolean
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   844
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   845
    "Created: / 08-09-2011 / 14:50:48 / cg"
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   846
!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
   847
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   848
allowCIntegers
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   849
    "allow c-style integers of the form: 0xHHH, 0bBBB and 0oOOO"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   850
        
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   851
    ^ AllowCIntegers
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   852
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   853
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   854
allowCIntegers:aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   855
    "allow c-style integers of the form: 0xHHH, 0bBBB and 0oOOO"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   856
        
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   857
    AllowCIntegers := aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   858
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   859
    "
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   860
     ParserFlags allowCIntegers:true
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   861
     ParserFlags allowCIntegers
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   862
    "
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   863
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
   864
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   865
allowCStrings
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   866
    "allow c-style strings of the form:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   867
        c'...' containing c-language character escapes"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   868
        
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   869
    ^ AllowCStrings
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   870
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   871
    "Created: / 08-02-2019 / 18:42:15 / Claus Gittinger"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   872
    "Modified (comment): / 23-05-2019 / 08:57:46 / Claus Gittinger"
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   873
!
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   874
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   875
allowCStrings:aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   876
    "allow c-style strings of the form:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   877
        c'...' containing c-language character escapes"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   878
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   879
    AllowCStrings := aBoolean.
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   880
4335
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   881
    "
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   882
     ParserFlags allowCStrings:true
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   883
     ParserFlags allowCStrings
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   884
    "
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   885
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   886
    "Created: / 08-02-2019 / 18:42:30 / Claus Gittinger"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   887
    "Modified (comment): / 23-05-2019 / 08:57:50 / Claus Gittinger"
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   888
!
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
   889
4335
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   890
allowCaretAsBinop
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   891
    "allow '^' to be used as a binary operator"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   892
4335
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   893
    ^ AllowCaretAsBinop
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   894
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   895
    "Created: / 08-02-2019 / 18:49:12 / Claus Gittinger"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   896
    "Modified (comment): / 23-05-2019 / 08:58:11 / Claus Gittinger"
4335
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   897
!
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   898
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   899
allowCaretAsBinop:aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   900
    "allow '^' to be used as a binary operator"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   901
4335
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   902
    AllowCaretAsBinop := aBoolean
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   903
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   904
    "Created: / 08-02-2019 / 18:49:21 / Claus Gittinger"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   905
    "Modified (comment): / 23-05-2019 / 08:58:14 / Claus Gittinger"
4335
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   906
!
d58aa3c7751c #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4333
diff changeset
   907
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
allowDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
    "return true, if $-characters are allowed in identifiers.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   910
     Notice, that dollars are NEVER allowed as the first character in an identifier
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   911
     (because they are interpreted as character-constant then).
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   912
     Dollars in identifiers were used in VMS versions of VW-Smalltalk"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
    ^ AllowDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   916
    "Created: / 07-09-1997 / 01:32:18 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   917
    "Modified (comment): / 16-11-2016 / 22:25:59 / cg"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   918
    "Modified (comment): / 23-05-2019 / 08:59:03 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
allowDollarInIdentifier:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
    "this allows turning on/off $-characters in identifiers.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
     Notice, that dollars are NEVER allowed as the first character in an identifier.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
     If turned off (the default), dollars are not allowed in identifiers,
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
     but instead are scanned as character-constant prefix.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   926
     If turned on, dollars in identifiers are allowed, while extra
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
     dollars are still scanned as constant character prefix.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
     If you have to fileIn old VW-Vsn2.x classes, turn this off
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
     before filing them in; i.e.:
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   930
        Compiler allowDollarInIdentifiers:false
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   931
     Dollars in identifiers were used in VMS versions of VW-Smalltalk.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   932
    "
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   933
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   934
    AllowDollarInIdentifier := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   935
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   936
    "Created: / 07-09-1997 / 01:34:49 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
   937
    "Modified (comment): / 16-11-2016 / 22:26:38 / cg"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   938
    "Modified (comment): / 23-05-2019 / 09:00:00 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
allowDolphinExtensions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
    "return true, if ##(..) computed literals are allowed"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   943
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
    ^ AllowDolphinExtensions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   946
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   947
allowDolphinExtensions:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   948
    "this allows turning on/off support for computed arrays ##(..) as in dolphin.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
     If you want to fileIn Dolphin classes, enable this with:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
   950
	Compiler allowDolphinComputedArrays:true"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
    AllowDolphinExtensions := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   953
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
     self allowDolphinExtensions:true
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
     self allowDolphinExtensions:false
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   960
allowEStrings
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   961
    "allow extended strings with embedded expressions of the form:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   962
        e'...' containing c-language character escapes
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   963
               and embedded expressions {expr} which are sliced in"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   964
        
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   965
    ^ AllowEStrings
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   966
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   967
    "Created: / 23-05-2019 / 10:28:17 / Claus Gittinger"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   968
!
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   969
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   970
allowEStrings:aBoolean
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   971
    "allow extended strings with embedded expressions of the form:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   972
        e'...' containing c-language character escapes
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   973
               and embedded expressions {expr} which are sliced in"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   974
        
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   975
    AllowEStrings := aBoolean
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   976
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   977
    "Created: / 23-05-2019 / 10:28:29 / Claus Gittinger"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   978
!
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
   979
1950
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   980
allowEmptyStatements
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   981
    "return true, if empty statements are allowed (two .'s in a row).
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   982
     Notice, that stc cannot (yet) handle those."
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   983
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   984
    ^ AllowEmptyStatements
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   985
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   986
    "Created: / 20-11-2006 / 14:29:02 / cg"
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   987
!
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   988
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   989
allowEmptyStatements:aBoolean
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   990
    "turn on/off, if empty statements are allowed (two .'s in a row).
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   991
     Notice, that stc cannot (yet) handle those."
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   992
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   993
    AllowEmptyStatements := aBoolean
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   994
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   995
    "Created: / 20-11-2006 / 14:29:15 / cg"
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   996
!
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
   997
2145
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
   998
allowExtendedBinarySelectors
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
   999
    "experimental extended selectors extensions"
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1000
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1001
    ^ AllowExtendedBinarySelectors
2218
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  1002
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  1003
    "
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  1004
     ParserFlags allowExtendedBinarySelectors
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  1005
     ParserFlags allowExtendedBinarySelectors:false
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  1006
     ParserFlags allowExtendedBinarySelectors:true
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  1007
    "
2145
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1008
!
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1009
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1010
allowExtendedBinarySelectors:aBoolean
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1011
    "experimental syntax extensions"
2145
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1012
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1013
    AllowExtendedBinarySelectors := aBoolean
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1014
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1015
    "Modified (comment): / 23-05-2019 / 10:40:47 / Claus Gittinger"
2145
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1016
!
6cdfee3d29d4 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2142
diff changeset
  1017
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1018
allowExtendedSTXSyntax
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1019
    "Enables ALL of the ST/X extensions.
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1020
     Do not use for now, as stc does not support all of them"
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1021
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1022
    ^ AllowExtendedSTXSyntax
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1023
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1024
    "Modified (comment): / 23-05-2019 / 10:41:53 / Claus Gittinger"
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1025
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1026
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1027
allowExtendedSTXSyntax:aBoolean
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1028
    "Enables ALL of the ST/X extensions.
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1029
     Do not use for now, as stc does not support all of them"
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1030
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1031
    AllowExtendedSTXSyntax := aBoolean
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1032
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1033
    "
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1034
     self allowExtendedSTXSyntax:true
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1035
     'a\tb' inspect.
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1036
     'a\u1616b' inspect.
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1037
     self allowExtendedSTXSyntax:false
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1038
    "
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1039
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  1040
    "Modified (comment): / 23-05-2019 / 10:41:57 / Claus Gittinger"
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1041
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1042
1677
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1043
allowFixedPointLiterals
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1044
    "return true, if nnnsn (FixedPoint) literals are allowed.
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1045
     The default is true."
1677
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1046
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1047
    ^ AllowFixedPointLiterals
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1048
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1049
    "Modified (comment): / 23-05-2019 / 09:00:40 / Claus Gittinger"
1677
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1050
!
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1051
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1052
allowFixedPointLiterals:aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1053
    "enable/disable, if nnnsn (FixedPoint) literals are allowed.
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1054
     The default is true."
1677
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1055
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1056
    AllowFixedPointLiterals := aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1057
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1058
    "Modified (comment): / 23-05-2019 / 09:00:44 / Claus Gittinger"
1677
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1059
!
84d07cf330c0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1668
diff changeset
  1060
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
allowFunctionCallSyntaxForBlockEvaluation
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
    "experimental"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
    ^ AllowFunctionCallSyntaxForBlockEvaluation
1721
70a996f7b6b7 comment
Claus Gittinger <cg@exept.de>
parents: 1717
diff changeset
  1065
70a996f7b6b7 comment
Claus Gittinger <cg@exept.de>
parents: 1717
diff changeset
  1066
    "
70a996f7b6b7 comment
Claus Gittinger <cg@exept.de>
parents: 1717
diff changeset
  1067
     AllowFunctionCallSyntaxForBlockEvaluation := true
70a996f7b6b7 comment
Claus Gittinger <cg@exept.de>
parents: 1717
diff changeset
  1068
    "
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1069
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1070
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1071
allowFunctionCallSyntaxForBlockEvaluation:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1072
    "experimental"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1073
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1074
    AllowFunctionCallSyntaxForBlockEvaluation := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1075
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1077
allowGreekCharactersInIdentifier
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1078
    "return true, if greek characters (alpha, beta etc.) are allowed in identifiers"
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1079
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1080
    ^ AllowGreekCharactersInIdentifier
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1081
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1082
    "Created: / 08-06-2019 / 14:52:29 / Claus Gittinger"
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1083
!
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1084
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1085
allowGreekCharactersInIdentifier:aBoolean
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1086
    "are greek characters (alpha, beta etc.) are allowed in identifiers.
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1087
     Use this ONLY to file in some non-ANSI ST code"
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1088
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1089
    AllowGreekCharactersInIdentifier := aBoolean
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1090
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1091
    "Created: / 08-06-2019 / 14:54:04 / Claus Gittinger"
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1092
!
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  1093
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1094
allowHashAsBinarySelector
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1095
    "if true, a free-standing single '#' is allowed as a binary selector.
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1096
     The default is true."
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1097
    
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1098
    ^ AllowHashAsBinarySelector
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1099
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1100
    "Modified (comment): / 23-05-2019 / 09:01:57 / Claus Gittinger"
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1101
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1102
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1103
allowHashAsBinarySelector:aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1104
    "if true, a free-standing single '#' is allowed as a binary selector.
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1105
     The default is true."
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1106
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1107
    AllowHashAsBinarySelector := aBoolean
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1108
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1109
    "
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1110
     self allowHashAsBinarySelector:true
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1111
     self allowHashAsBinarySelector:false
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1112
     123 # 234
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1113
    "
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1114
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1115
    "Modified (comment): / 23-05-2019 / 09:01:54 / Claus Gittinger"
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1116
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1117
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1118
allowJavaScriptConst
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1119
    "return true, if const is allowed and treated as a keyword (in JavaScript)"
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1120
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1121
    ^ AllowJavaScriptConst
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1122
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1123
    "Created: / 08-08-2017 / 23:48:48 / cg"
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1124
!
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1125
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1126
allowJavaScriptConst:aBoolean
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1127
    "true, if const is allowed and treated as a keyword (in JavaScript)"
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1128
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1129
    AllowJavaScriptConst := aBoolean
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1130
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1131
    "Created: / 08-08-2017 / 23:49:07 / cg"
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1132
!
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  1133
4428
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1134
allowLazyValueExtension
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1135
    "allow !![...] to generate a lazy value"
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1136
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1137
    ^ AllowLazyValueExtension
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1138
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1139
    "Created: / 03-06-2019 / 10:57:42 / Claus Gittinger"
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1140
!
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1141
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1142
allowLazyValueExtension:aBoolean
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1143
    "allow !![...] to generate a lazy value"
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1144
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1145
    AllowLazyValueExtension := aBoolean
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1146
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1147
    "Created: / 03-06-2019 / 10:57:50 / Claus Gittinger"
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1148
!
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  1149
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1150
allowLiteralNameSpaceSymbols
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1151
    "return true, if literal nameSpace symbols are allowed (#foo::bar) are allowed"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1153
    ^ AllowLiteralNameSpaceSymbols
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1154
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1155
    "
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1156
     #foo - ok 
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1157
     #foo::bar - ok 
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1158
     #foo.bar - not allowed
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1159
    "
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1160
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1161
    "Modified (comment): / 23-05-2019 / 09:03:47 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1162
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1163
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1164
allowLiteralNameSpaceSymbols:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
    "controls, if literal nameSpace symbols are allowed (#foo::bar) are allowed"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1166
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1167
    AllowLiteralNameSpaceSymbols := aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1168
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1169
    "
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1170
     #foo - ok
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1171
     #foo::bar - ok 
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1172
     #foo.bar - not allowed
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1173
    "
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1174
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1175
    "Modified (comment): / 23-05-2019 / 09:03:43 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1176
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1177
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1178
allowLocalVariableDeclarationWithInitializerExpression
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  1179
    "experimental: | var := expr |"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1180
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1181
    ^ AllowLocalVariableDeclarationWithInitializerExpression
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  1182
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1183
    "
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1184
     self allowLocalVariableDeclarationWithInitializerExpression:true
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1185
     self allowLocalVariableDeclarationWithInitializerExpression:false
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1186
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1187
     |a := 0 . b := 1 |
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1188
     Transcript showCR:'a is',a,' b is ',b
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1189
    "
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1190
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  1191
    "Modified (comment): / 23-05-2019 / 09:07:42 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1193
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1194
allowLocalVariableDeclarationWithInitializerExpression:aBoolean
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  1195
    "experimental: | var := expr |"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1196
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1197
    AllowLocalVariableDeclarationWithInitializerExpression := aBoolean.
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  1198
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  1199
    "Modified (comment): / 23-09-2018 / 00:44:04 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1200
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1201
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1202
allowNationalCharactersInIdentifier
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1203
    "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
  1204
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1205
    ^ AllowNationalCharactersInIdentifier
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1206
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1207
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1208
allowNationalCharactersInIdentifier:aBoolean
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1209
    "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
  1210
     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
  1211
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1212
    AllowNationalCharactersInIdentifier := aBoolean
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1213
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1214
    "
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1215
     ParserFlags allowNationalCharactersInIdentifier:true
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1216
    "
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1217
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  1218
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1219
allowOldStyleAssignment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1220
    "return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1221
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1222
    ^ AllowOldStyleAssignment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1223
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1224
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1225
allowOldStyleAssignment:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1226
    "this allows turning on/off recognition of underscore-assignment (pre ST-80v4 syntax).
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1227
     You must turn this off, if code with variables named '_' is to be filedIn"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1228
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1229
    AllowOldStyleAssignment := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1230
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1231
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1232
allowParagraphInIdentifier
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1233
    "return true, if §-characters are allowed in identifiers (treated as letter)"
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1234
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1235
    ^ AllowParagraphInIdentifier
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1236
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1237
    "Created: / 16-11-2016 / 22:24:32 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1238
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1239
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1240
allowParagraphInIdentifier:aBoolean
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1241
    "this allows turning on/off §-characters in identifiers."
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1242
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1243
    AllowParagraphInIdentifier := aBoolean.
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1244
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1245
    "Created: / 16-11-2016 / 22:28:49 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1246
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1247
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1248
allowPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1249
    "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
  1250
     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
  1251
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1252
    ^ AllowPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1253
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1254
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1255
allowPeriodInSymbol:aBoolean
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1256
    "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
  1257
     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
  1258
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1259
    AllowPeriodInSymbol := aBoolean
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1260
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1261
    "
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1262
     self allowPeriodInSymbol:true.
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1263
     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
  1264
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1265
     self allowPeriodInSymbol:false.
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1266
     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
  1267
   "
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1268
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1269
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1270
allowQualifiedNames
4302
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  1271
    "return true, if '#{..}' and 'namespace.varName' qualified names are allowed"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1272
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1273
    ^ AllowQualifiedNames
4302
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  1274
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  1275
    "Modified (comment): / 23-09-2018 / 01:08:29 / Claus Gittinger"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1276
!
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1277
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1278
allowQualifiedNames:aBoolean
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1279
    "this allows turning on/off support for qualifiedNames #{ .., } as in vw3.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1280
     If you want to fileIn vw3 or later classes, enable this with:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1281
	Compiler allowQualifiedNames:true
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1282
     Notice, that qualified names are not really supported semantically
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1283
     (they are parsed, but treated like regular globals)
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1284
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1285
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1286
    AllowQualifiedNames := aBoolean.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1287
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1288
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1289
     self allowQualifiedNames:true
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1290
     self allowQualifiedNames:false
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1291
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1292
!
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1293
4430
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1294
allowRStrings
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1295
    "rstrings have the syntax:
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1296
        r'...'
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1297
     which generates a regex"
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1298
        
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1299
    ^ AllowRStrings
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1300
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1301
    "Created: / 03-06-2019 / 11:12:11 / Claus Gittinger"
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1302
!
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1303
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1304
allowRStrings:aBoolean
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1305
    "rstrings have the syntax:
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1306
        r'...'
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1307
     which generates a regex"
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1308
        
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1309
    AllowRStrings := aBoolean
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1310
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1311
    "Created: / 03-06-2019 / 11:12:37 / Claus Gittinger"
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1312
!
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  1313
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1314
allowReservedWordsAsSelectors
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  1315
    "if true, 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are allowed
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1316
     as unary message selectors."
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1317
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1318
    ^ AllowReservedWordsAsSelectors ? false
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  1319
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  1320
    "Modified (format): / 25-06-2019 / 11:17:15 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1321
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1322
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1323
allowReservedWordsAsSelectors:aBoolean
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  1324
    "enable/disable, if 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are to be allowed
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1325
     as unary message selectors."
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1326
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1327
    AllowReservedWordsAsSelectors := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1328
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1329
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1330
     self allowReservedWordsAsSelectors:true
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1331
     self allowReservedWordsAsSelectors:false
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1332
    "
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  1333
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  1334
    "Modified (comment): / 25-06-2019 / 11:18:13 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1335
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1336
1702
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1337
allowSTVExtensions
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1338
    "return true, if support for ST/V syntax extensions is enabled."
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1339
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1340
    ^ AllowSTVExtensions
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1341
!
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1342
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1343
allowSTVExtensions:aBoolean
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1344
    "this allows turning on/off support for ST/V extensions:
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1345
     If you want to fileIn ST/V classes, enable this with:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1346
	Compiler allowSTVComputedArrays:true"
1702
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1347
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1348
    AllowSTVExtensions := aBoolean.
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1349
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1350
    "
1704
349eed9decbe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  1351
     ParserFlags allowSTVExtensions:true
349eed9decbe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  1352
     ParserFlags allowSTVExtensions:false
1702
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1353
    "
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1354
!
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  1355
1700
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1356
allowSTVPrimitives
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1357
    "return true, if support for ST/V primitives is enabled."
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1358
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1359
    ^ AllowSTVPrimitives
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1360
!
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1361
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1362
allowSTVPrimitives:aBoolean
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1363
    "this allows turning on/off support for ST/V primitives"
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1364
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1365
    AllowSTVPrimitives := aBoolean
1704
349eed9decbe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  1366
349eed9decbe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  1367
    "
349eed9decbe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  1368
     ParserFlags allowSTVPrimitives:true
349eed9decbe *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1703
diff changeset
  1369
    "
1700
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1370
!
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  1371
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1372
allowSTXDelimiterComments
3455
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1373
    "token delimited comments;
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1374
     these are multiline comments of the form:
4174
69d1587aa226 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4149
diff changeset
  1375
        ''>>TOKEN
69d1587aa226 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4149
diff changeset
  1376
           ... anything, including double quotes
69d1587aa226 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4149
diff changeset
  1377
        TOKEN>>''
3455
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1378
     (the '' being a double quote in the above)
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1379
     Such comments are especially useful to comment pieces of sample code, which may
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1380
     contain another comment in it, but you don't want to make them all EOL comments
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1381
     (which are an ST/X speciality also, by the way).
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1382
     Be aware, that no other smalltalk supports this, so your code becomes harder to port, if you use it.
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1383
    "
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1384
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1385
    ^ AllowSTXDelimiterComments
4174
69d1587aa226 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4149
diff changeset
  1386
69d1587aa226 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4149
diff changeset
  1387
    "Modified (comment): / 28-07-2017 / 10:32:54 / cg"
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1388
!
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1389
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1390
allowSTXDelimiterComments:aBoolean
3455
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1391
    "enable token delimited comments;
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1392
     these are multiline comments of the form:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1393
	''>>TOKEN
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1394
	   ... anything, including double quotes
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1395
	TOKEN>>''
3455
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1396
     (the '' being a double quote in the above)
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1397
     Such comments are especially useful to comment pieces of sample code, which may
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1398
     contain another comment in it, but you don't want to make them all EOL comments
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1399
     (which are an ST/X speciality also, by the way).
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1400
     Be aware, that no other smalltalk supports this, so your code becomes harder to port, if you use it.
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1401
    "
583dd776d514 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
  1402
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1403
    AllowSTXDelimiterComments := aBoolean.
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1404
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1405
    "
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1406
     self allowSTXDelimiterComments:true
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1407
     self allowSTXDelimiterComments:false
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1408
    "
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1409
!
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  1410
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1411
allowSTXEOLComments
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1412
    "are ST/X end-of-line comments allowed?"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1413
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1414
    ^ AllowSTXEOLComments
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1415
!
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1416
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1417
allowSTXEOLComments:aBoolean
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1418
    "are ST/X end-of-line comments allowed?"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1419
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1420
    AllowSTXEOLComments := aBoolean.
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1421
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1422
    "
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1423
     self allowSTXEOLComments:true
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1424
     self allowSTXEOLComments:false
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1425
    "
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1426
!
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  1427
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1428
allowSTXExtendedArrayLiterals
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1429
    "are scheme-style typed literal arrays allowed?"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1430
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1431
    ^ AllowSTXExtendedArrayLiterals ? false
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1432
!
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1433
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1434
allowSTXExtendedArrayLiterals:aBoolean
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1435
    "are scheme-style typed literal arrays allowed?"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  1436
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1437
    AllowSTXExtendedArrayLiterals := aBoolean.
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1438
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1439
    "
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1440
     self allowSTXExtendedArrayLiterals:true
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1441
     self allowSTXExtendedArrayLiterals:false
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1442
    "
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1443
!
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  1444
4085
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1445
allowSignedByteArrayElements
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1446
    "return true, if byteArray elements are allowed to be negative."
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1447
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1448
    ^ AllowSignedByteArrayElements
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1449
!
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1450
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1451
allowSignedByteArrayElements:aBoolean
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1452
    "controls, if byteArray elements are allowed to be negative."
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1453
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1454
    AllowSignedByteArrayElements := aBoolean
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1455
!
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  1456
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1457
allowSqueakExtensions
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1458
    "return true, if support for squeak extensions
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1459
	computed arrays { .., }
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1460
	c/java style arguments in message sends rec foo(arg1, ... argN)
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1461
     is enabled."
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1462
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1463
    ^ AllowSqueakExtensions
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1464
!
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1465
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1466
allowSqueakExtensions:aBoolean
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1467
    "this allows turning on/off support for squeak extensions:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1468
	computed arrays { .., }
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1469
	c/java style arguments in message sends rec foo(arg1, ... argN)
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1470
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1471
     If you want to fileIn Squeak classes, enable this with:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1472
	Compiler allowSqueakComputedArrays:true"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1473
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1474
    AllowSqueakExtensions := aBoolean.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1475
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1476
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1477
     self allowSqueakExtensions:true
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1478
     self allowSqueakExtensions:false
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1479
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1480
!
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1481
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1482
allowSqueakPrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1483
    "return true, if support for squeak primitives is enabled."
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1484
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1485
    ^ AllowSqueakPrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1486
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1487
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1488
allowSqueakPrimitives:aBoolean
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1489
    "this allows turning on/off support for squeak primitives"
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1490
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1491
    AllowSqueakPrimitives := aBoolean
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1492
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1493
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1494
allowSymbolsStartingWithDigit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1495
    "return true, if a symbol is allowed to start with a digit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1496
     i.e. as in #2D.
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1497
     This seems to be ok in new Squeak/Pharo versions"
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1498
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1499
    ^ AllowSymbolsStartingWithDigit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1500
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1501
    "Created: / 18-06-2017 / 16:23:20 / cg"
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1502
!
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1503
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1504
allowSymbolsStartingWithDigit:aBoolean
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1505
    "controls if a symbol is allowed to start with a digit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1506
     i.e. as in #2D.
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1507
     This seems to be ok in new Squeak/Pharo versions"
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1508
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1509
    AllowSymbolsStartingWithDigit := aBoolean
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1510
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1511
    "Created: / 18-06-2017 / 16:24:47 / cg"
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1512
!
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  1513
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1514
allowUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1515
    "return true, if underscores are allowed in identifiers"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1516
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1517
    ^ AllowUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1518
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1519
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1520
allowUnderscoreInIdentifier:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1521
    "this allows turning on/off underscores in identifiers.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1522
     If turned off (the default), underscores are not allowed in identifiers,
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1523
     but instead scanned as assignment character (old ST/80 syntax).
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1524
     If turned on, underscores are in identifiers are allowed, while extra
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1525
     underscores are still scanned as assignment.
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1526
     If you have to fileIn old VW-Vsn2.x classes,
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1527
     turn them off with:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1528
	Compiler allowUnderscoreInIdentifiers:false"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1529
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1530
    AllowUnderscoreInIdentifier := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1531
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1532
    "Modified: 7.9.1997 / 01:35:19 / cg"
1655
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1533
!
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1534
2310
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1535
allowUnicodeCharacters
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1536
    ^ AllowUnicodeCharacters
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1537
!
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1538
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1539
allowUnicodeCharacters:aBoolean
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1540
    AllowUnicodeCharacters := aBoolean.
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1541
!
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  1542
2307
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1543
allowUnicodeStrings
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1544
    ^ AllowUnicodeStrings
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1545
!
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1546
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1547
allowUnicodeStrings:aBoolean
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1548
    AllowUnicodeStrings := aBoolean.
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1549
!
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  1550
1655
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1551
allowVisualAgeESSymbolLiterals
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1552
    "return true, if ##symbols are allowed (treated like symbols)"
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1553
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1554
    ^ AllowVisualAgeESSymbolLiterals
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1555
!
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1556
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1557
allowVisualAgeESSymbolLiterals:aBoolean
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1558
    "if on, visualAge's ##symbols are allowed (treated like symbols)"
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1559
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  1560
    AllowVisualAgeESSymbolLiterals := aBoolean.
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1561
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1562
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1563
allowVisualAgePrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1564
    "return true, if support for V'Age primitives is enabled."
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1565
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1566
    ^ AllowVisualAgePrimitives
2747
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1567
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1568
    "
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1569
     AllowVisualAgePrimitives := true
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1570
     AllowVisualAgePrimitives := false
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1571
    "
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1572
9be61df60a22 comment
Claus Gittinger <cg@exept.de>
parents: 2739
diff changeset
  1573
    "Modified (comment): / 18-10-2011 / 16:49:12 / cg"
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1574
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1575
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1576
allowVisualAgePrimitives:aBoolean
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1577
    "this allows turning on/off support for V'Age primitives"
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1578
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  1579
    AllowVisualAgePrimitives := aBoolean
1773
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1580
!
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1581
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1582
allowVisualWorksMethodAnnotations
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1583
    "return true, if support for V'Works extended primitive syntax for method annotations."
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1584
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1585
    ^ AllowVisualWorksMethodAnnotations
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1586
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1587
    "Created: / 07-07-2006 / 15:49:32 / cg"
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1588
!
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1589
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1590
allowVisualWorksMethodAnnotations:aBoolean
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1591
    "turn on/off support for V'Works extended primitive syntax for method annotations."
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1592
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1593
    AllowVisualWorksMethodAnnotations := aBoolean
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1594
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  1595
    "Created: / 07-07-2006 / 15:49:27 / cg"
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1596
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1597
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1598
warnAssignmentToBlockArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1599
    ^ WarnAssignmentToBlockArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1600
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1601
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1602
warnAssignmentToBlockArgument:aBoolean
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1603
    WarnAssignmentToBlockArgument := aBoolean
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1604
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1605
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1606
warnAssignmentToMethodArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1607
    ^ WarnAssignmentToMethodArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1608
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1609
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1610
warnAssignmentToMethodArgument:aBoolean
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1611
    WarnAssignmentToMethodArgument := aBoolean
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1612
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1613
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1614
warnAssignmentToPoolVariable
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1615
    ^ WarnAssignmentToPoolVariable
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1616
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1617
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1618
warnAssignmentToPoolVariable:aBoolean
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  1619
    WarnAssignmentToPoolVariable := aBoolean
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1620
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1621
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1622
!ParserFlags class methodsFor:'accessing-warning-control'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1623
1652
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1624
warnAboutBadComments
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1625
    "controls generation of warning messages about empty comments"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1626
1652
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1627
    ^ WarnAboutBadComments
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1628
!
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1629
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1630
warnAboutBadComments:aBoolean
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1631
    "controls generation of warning messages about empty comments"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1632
1652
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1633
    WarnAboutBadComments := aBoolean
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1634
!
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  1635
1811
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  1636
warnAboutNonLowercaseLocalVariableNames
1740
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  1637
    "controls generation of warning messages about wrong variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1638
1811
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  1639
    ^ WarnAboutNonLowercaseLocalVariableNames
1740
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  1640
!
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  1641
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1642
warnAboutNonLowercaseLocalVariableNames:aBoolean
1740
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  1643
    "controls generation of warning messages about wrong variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1644
1811
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  1645
    WarnAboutNonLowercaseLocalVariableNames := aBoolean
1740
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  1646
!
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  1647
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1648
warnAboutPeriodInSymbol
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1649
    ^ WarnAboutPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1650
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1651
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1652
warnAboutPeriodInSymbol:aBoolean
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1653
    WarnAboutPeriodInSymbol := aBoolean
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1654
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  1655
4461
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1656
warnAboutPossibleNameClashes
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1657
    ^ WarnAboutPossibleNameClashes
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1658
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1659
    "Created: / 16-11-2006 / 14:31:52 / cg"
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1660
!
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1661
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1662
warnAboutPossibleNameClashes:aBoolean
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1663
    WarnAboutPossibleNameClashes := aBoolean
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1664
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1665
    "Created: / 16-11-2006 / 14:31:57 / cg"
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1666
!
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  1667
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1668
warnAboutPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1669
    ^ WarnAboutPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1670
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1671
    "Created: / 16-11-2006 / 14:31:52 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1672
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1673
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1674
warnAboutPossibleSTCCompilationProblems:aBoolean
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1675
    WarnAboutPossibleSTCCompilationProblems := aBoolean
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1676
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1677
    "Created: / 16-11-2006 / 14:31:57 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1678
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  1679
2121
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1680
warnAboutPossiblyUnimplementedSelectors
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1681
    ^ WarnAboutPossiblyUnimplementedSelectors
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1682
!
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1683
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1684
warnAboutPossiblyUnimplementedSelectors:aBoolean
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1685
    WarnAboutPossiblyUnimplementedSelectors := aBoolean
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1686
!
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  1687
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1688
warnAboutPossiblyUninitializedLocals
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1689
    ^ WarnAboutPossiblyUninitializedLocals
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1690
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1691
    "Created: / 23-04-2019 / 23:09:08 / Claus Gittinger"
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1692
!
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1693
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1694
warnAboutPossiblyUninitializedLocals:aBoolean
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1695
    WarnAboutPossiblyUninitializedLocals := aBoolean
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1696
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1697
    "Created: / 23-04-2019 / 23:09:20 / Claus Gittinger"
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1698
!
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1699
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1700
warnAboutReferenceToPrivateClass
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1701
    "controls generation of warning messages when a private class is referenced"
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1702
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1703
    ^ WarnAboutReferenceToPrivateClass
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1704
!
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1705
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1706
warnAboutReferenceToPrivateClass:aBoolean
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1707
    "controls generation of warning messages when a private class is referenced"
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1708
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1709
    WarnAboutReferenceToPrivateClass := aBoolean
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1710
!
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  1711
2081
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1712
warnAboutShortLocalVariableNames
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1713
    "controls generation of warning messages about short variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1714
2081
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1715
    ^ WarnAboutShortLocalVariableNames
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1716
!
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1717
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1718
warnAboutShortLocalVariableNames:aBoolean
2081
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1719
    "controls generation of warning messages about short variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1720
2081
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1721
    WarnAboutShortLocalVariableNames := aBoolean
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1722
!
a8b56888f91c +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2079
diff changeset
  1723
2739
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1724
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1725
    "things like '\c:foo' instead of '\\c:foo' "
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1726
2739
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1727
    ^ WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1728
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1729
    "Created: / 04-10-2011 / 19:54:57 / cg"
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1730
!
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1731
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1732
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1733
    "things like '\c:foo' instead of '\\c:foo' "
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1734
2739
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1735
    WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1736
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1737
    "Created: / 04-10-2011 / 19:54:42 / cg"
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1738
!
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  1739
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1740
warnAboutVariableNameConventions
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1741
    "controls generation of warning messages about wrong variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1742
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1743
    ^ WarnAboutVariableNameConventions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1744
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1745
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1746
warnAboutVariableNameConventions:aBoolean
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1747
    "controls generation of warning messages about wrong variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1748
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1749
    WarnAboutVariableNameConventions := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1750
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1751
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1752
warnAboutWrongVariableNames
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1753
    "controls generation of warning messages about wrong variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1754
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1755
    ^ WarnAboutWrongVariableNames
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1756
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1757
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1758
warnAboutWrongVariableNames:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1759
    "controls generation of warning messages about wrong variable names"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1760
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1761
    WarnAboutWrongVariableNames := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1762
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1763
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1764
warnCommonMistakes
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1765
    "return true, if common beginners mistakes are to be warned about"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1766
1754
02942b1dcf1a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1740
diff changeset
  1767
    ^ WarnCommonMistakes
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1768
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1769
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1770
warnCommonMistakes:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1771
    "this allows turning on/off warnings about common beginners mistakes.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1772
     Those are not really errors in the strict sense, but often lead to
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1773
     run time errors later.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1774
     Examples are: expr or:expr2, where expr2 is not a block.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1775
     If you get bored by those warnings, turn them off by adding
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1776
     a line as:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1777
	ParserFlags warnCommonMistakes:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1778
     in your 'private.rc' file"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1779
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1780
    WarnCommonMistakes := aBoolean
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1781
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1782
    "Modified: / 05-09-2006 / 11:46:26 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1783
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1784
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1785
warnDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1786
    "return true, if $-characters in identifiers are to be warned about"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1787
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1788
    ^ Warnings and:[WarnDollarInIdentifier]
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1789
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1790
    "Created: 7.9.1997 / 01:36:17 / cg"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1791
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1792
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1793
warnDollarInIdentifier:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1794
    "this allows turning on/off warnings about $-characters in identifiers.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1795
     You may find those warnings useful, to make certain that your code
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1796
     is portable to other Smalltalk versions, which do not allow this
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1797
     (i.e. VW releases 2.x and maybe others).
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1798
     Notice, that dollars are NEVER allowed as the first character in an identifier.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1799
     If you get bored by those warnings, turn them off by adding
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1800
     a line as:
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1801
        ParserFlags warnDollarInIdentifier:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1802
     in your 'private.rc' file"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1803
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1804
    WarnDollarInIdentifier := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1805
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1806
    "Created: / 07-09-1997 / 01:37:42 / cg"
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1807
    "Modified: / 05-09-2006 / 11:46:23 / cg"
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1808
    "Modified (comment): / 16-11-2016 / 22:31:06 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1809
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1810
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1811
warnHiddenVariables
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1812
    "controls generation of warning messages about hiding variables by locals"
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  1813
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1814
    ^ WarnHiddenVariables
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1815
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1816
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1817
warnHiddenVariables:aBoolean
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1818
    "controls generation of warning messages about hiding variables by locals"
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1819
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1820
    WarnHiddenVariables := aBoolean
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1821
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1822
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1823
warnInconsistentReturnValues
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1824
    "return true, if compiler should warn about inconsitent (boolean / non-boolean)
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1825
     return values"
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1826
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1827
    ^ WarnInconsistentReturnValues
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1828
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1829
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1830
warnInconsistentReturnValues:aBoolean
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1831
    "constrols if the compiler should warn about inconsitent (boolean / non-boolean)
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1832
     return values"
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1833
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1834
    WarnInconsistentReturnValues := aBoolean
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1835
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  1836
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1837
warnOldStyleAssignment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1838
    "return true, if underscore-assignment (pre ST-80v4 syntax) are to be warned about"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1839
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1840
    ^ Warnings and:[WarnOldStyleAssignment]
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1841
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1842
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1843
warnOldStyleAssignment:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1844
    "this allows turning on/off warnings about underscore-assignment (pre ST-80v4 syntax).
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1845
     If you get bored by those warnings, turn them off by adding
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1846
     a line as:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1847
	ParserFlags warnOldStyleAssignment:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1848
     in your 'private.rc' file"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1849
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1850
    WarnOldStyleAssignment := aBoolean
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1851
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1852
    "Modified: / 05-09-2006 / 11:46:17 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1853
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1854
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1855
warnParagraphInIdentifier
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1856
    "return true, if §-characters in identifiers are to be warned about"
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1857
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1858
    ^ Warnings and:[WarnParagraphInIdentifier]
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1859
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1860
    "Created: / 16-11-2016 / 22:30:01 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1861
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1862
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1863
warnParagraphInIdentifier:aBoolean
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  1864
    "this allows turning on/off warnings about §-characters in identifiers.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1865
     You may find those warnings useful, to make certain that your code
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1866
     is portable to other Smalltalk versions, which do not allow this"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1867
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1868
    WarnParagraphInIdentifier := aBoolean
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1869
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1870
    "Created: / 16-11-2016 / 22:30:45 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1871
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  1872
2787
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1873
warnPlausibilityChecks
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1874
    "controls generation of warning messages about plausibility checks (possible precedence, etc.)"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1875
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1876
    ^ WarnPlausibilityChecks
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1877
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1878
    "Created: / 19-01-2012 / 10:38:20 / cg"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1879
!
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1880
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1881
warnPlausibilityChecks:aBoolean
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1882
    "controls generation of warning messages about plausibility checks (possible precedence, etc.)"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1883
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1884
    WarnPlausibilityChecks := aBoolean
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1885
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1886
    "Created: / 19-01-2012 / 10:38:39 / cg"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1887
!
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  1888
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1889
warnPossibleIncompatibilities
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1890
    "return true, if possible incompatibilities (with other ST systems)
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1891
     are to be warned about"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1892
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1893
    ^ Warnings and:[WarnPossibleIncompatibilities]
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1894
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1895
    "Modified: 23.5.1997 / 12:02:02 / cg"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1896
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1897
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1898
warnPossibleIncompatibilities:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1899
    "this turns warnings about possible incompatibilities (with other ST systems)
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1900
     on or off.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1901
     If you get bored by those warnings, turn them off by adding
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1902
     a line as:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1903
	ParserFlags warnPossibleIncompatibilities:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1904
     in your 'private.rc' file."
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1905
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1906
    WarnPossibleIncompatibilities := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1907
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1908
    "Created: / 23-05-1997 / 12:02:45 / cg"
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1909
    "Modified: / 05-09-2006 / 11:46:14 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1910
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1911
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1912
warnSTXSpecials
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1913
    "return true, if ST/X specials are to be warned about"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1914
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1915
    ^ Warnings and:[WarnSTXSpecials]
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1916
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1917
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1918
warnSTXSpecials:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1919
    "this allows turning on/off warnings about stx specials.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1920
     If you get bored by those warnings, turn them off by adding
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1921
     a line as:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1922
	ParserFlags warnSTXSpecials:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1923
     in your 'private.rc' file"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1924
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1925
    WarnSTXSpecials := aBoolean
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1926
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1927
    "Modified: / 05-09-2006 / 11:46:11 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1928
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1929
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1930
warnUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1931
    "return true, if underscores in identifiers are to be warned about"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1932
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1933
    ^ Warnings and:[WarnUnderscoreInIdentifier]
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1934
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1935
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1936
warnUnderscoreInIdentifier:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1937
    "this allows turning on/off warnings about underscores in identifiers.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1938
     You may find those warnings useful, to make certain that your code
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1939
     is portable to other smalltalk versions, which do not allow this
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1940
     (i.e. VW releases 2.x).
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1941
     If you get bored by those warnings, turn them off by adding
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1942
     a line as:
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1943
	ParserFlags warnUnderscoreInIdentifier:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1944
     in your 'private.rc' file"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1945
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1946
    WarnUnderscoreInIdentifier := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1947
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1948
    "Modified: / 05-09-2006 / 11:46:08 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1949
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1950
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1951
warnUnusedVars
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1952
    "controls generation of warning messages about unued method variables"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1953
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1954
    ^ WarnUnusedVars
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1955
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1956
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1957
warnUnusedVars:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1958
    "controls generation of warning messages about unued method variables"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1959
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1960
    WarnUnusedVars := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1961
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1962
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1963
warnings
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1964
    "return true, if any warnings are to be shown"
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1965
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1966
    ^ Warnings
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1967
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1968
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1969
warnings:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1970
    "this allows turning on/off all warnings; the default is on.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1971
     You can turn off warnings in your 'private.rc' file with
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  1972
	 ParserFlags warnings:false
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1973
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1974
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1975
    Warnings := aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1976
1902
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1977
    "
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1978
     ParserFlags warnings
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1979
     ParserFlags warnings:true
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1980
     ParserFlags warnings:false
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1981
    "
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1982
0c4dbe296819 comments
Claus Gittinger <cg@exept.de>
parents: 1898
diff changeset
  1983
    "Modified: / 05-09-2006 / 11:46:47 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1984
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1985
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1986
!ParserFlags class methodsFor:'class initialization'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1987
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1988
initialize
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  1989
    |executablePath topDir|
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1990
4421
3e423ef3465e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4413
diff changeset
  1991
    SinglePrecisionFloatF := false.
3e423ef3465e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4413
diff changeset
  1992
    
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1993
    Warnings := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1994
    WarnUndeclared := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1995
    WarnUnusedVars := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1996
    WarnSTXSpecials := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1997
    WarnST80Directives := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1998
    WarnAboutWrongVariableNames := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  1999
    WarnAboutVariableNameConventions := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2000
    WarnAboutBadComments := true.
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  2001
    WarnAboutPossiblyUninitializedLocals := true.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2002
    WarnUnderscoreInIdentifier := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2003
    WarnDollarInIdentifier := true.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  2004
    WarnParagraphInIdentifier := true.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2005
    WarnOldStyleAssignment := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2006
    WarnCommonMistakes := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2007
    WarnPossibleIncompatibilities := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2008
    WarnHiddenVariables := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2009
    WarnInconsistentReturnValues := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2010
    WarnAboutNonLowercaseLocalVariableNames := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2011
    WarnAboutShortLocalVariableNames := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2012
    WarnAboutPossibleSTCCompilationProblems := true.
4461
204091b9d849 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4449
diff changeset
  2013
    WarnAboutPossibleNameClashes := true.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2014
    WarnAboutReferenceToPrivateClass := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2015
    WarnAboutPossiblyUnimplementedSelectors := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2016
    WarnAboutPeriodInSymbol := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2017
    WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2018
    WarnPlausibilityChecks := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2019
    WarnAssignmentToBlockArgument := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2020
    WarnAssignmentToMethodArgument := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2021
    WarnAssignmentToPoolVariable := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2022
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2023
    AllowReservedWordsAsSelectors := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2024
    AllowUnderscoreInIdentifier := true.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  2025
    AllowParagraphInIdentifier := false.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2026
    AllowDollarInIdentifier := false.           "/ st80-vms dollars in identifiers
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2027
    AllowOldStyleAssignment := true.            "/ st80 underscore as assignment
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2028
    AllowDolphinExtensions := false.            "/ dolphin computed literal
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2029
    AllowQualifiedNames := false.               "/ vw3 qualified names
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2030
    AllowExtendedBinarySelectors := false.      "/ vw5.4 extended binary selectors (plus/minus, center-dot etc.)
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2031
    AllowCaretAsBinop := false.                 "/ too dangerous
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2032
    AllowLiteralNameSpaceSymbols := true.       "/ st/x literal nameSpace-symbols (#foo::bar)
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2033
    AllowArrayIndexSyntaxExtension := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2034
    AllowFunctionCallSyntaxForBlockEvaluation := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2035
    AllowLocalVariableDeclarationWithInitializerExpression := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2036
    AllowDomainVariables := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2037
    AllowArrayIndexSyntaxExtension := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2038
    AllowReservedWordsAsSelectors := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2039
    AllowVariableReferences := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2040
    AllowLazyValueExtension := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2041
    AllowFixedPointLiterals := true "false".
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2042
    AllowExtendedSTXSyntax := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2043
    AllowVisualAgeESSymbolLiterals := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2044
    AllowExtensionsToPrivateClasses := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2045
    AllowVisualAgePrimitives := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2046
    AllowSqueakExtensions := true.              "/ squeak computed array
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2047
    AllowSqueakPrimitives := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2048
    AllowSTVPrimitives := false.                "/ number-sign syntax
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2049
    AllowSTVExtensions := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2050
    AllowNationalCharactersInIdentifier := false.
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2051
    AllowGreekCharactersInIdentifier := false.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2052
    AllowHashAsBinarySelector := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2053
    AllowSTXEOLComments := true.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2054
    AllowSTXDelimiterComments := true.         "/ until stc and RBScanner support it also
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2055
    AllowVisualWorksMethodAnnotations := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2056
    AllowPossibleSTCCompilationProblems := true. "/ must be true, to allow fileIn!!
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2057
    AllowEmptyStatements := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2058
    AllowPeriodInSymbol := false.
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  2059
    AllowPeriodAsNameSpaceSeparator := false.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2060
    "/ these are only used by the new compiler
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2061
    AllowCIntegers := true.                    "/ 0xXXX, 0bBBB and 0oOOO syntax
4346
1023a1792e57 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4339
diff changeset
  2062
    AllowCStrings := true.                     "/ c'...' syntax
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2063
    AllowEStrings := false.                    "/ e'...' syntax
4430
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  2064
    AllowRStrings := false.                    "/ r'...' syntax
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2065
    AllowUnicodeStrings := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2066
    AllowUnicodeCharacters := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2067
    AllowCharacterEscapes := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2068
    AllowStringEscapes := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2069
    AllowAssignmentToBlockArgument := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2070
    AllowAssignmentToMethodArgument := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2071
    AllowAssignmentToPoolVariable := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2072
    "/ AllowAssignmentToPoolVariable := true.
4085
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  2073
    AllowSignedByteArrayElements := false.
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2074
    AllowSymbolsStartingWithDigit := false.
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2075
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2076
    AllowJavaScriptConst := true.              
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  2077
    
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2078
    ArraysAreImmutable := false.                "/ still care for ST-80 compatibility
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2079
    StringsAreImmutable := false.               "/ still care for ST-80 compatibility
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2080
    "/ ArraysAreImmutable := true.                 "/ do not care for ST-80 compatibility
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2081
    "/ StringsAreImmutable := true.                "/ do not care for ST-80 compatibility
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2082
    ImplicitSelfSends := false.
4050
acca4ea9dab7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4048
diff changeset
  2083
    
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2084
    STCKeepCIntermediate := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2085
    STCKeepOIntermediate := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2086
    STCKeepSTIntermediate := false.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2087
    STCCompilation := #default.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2088
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2089
    DefineForBorlandC := '__BORLANDC__'.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2090
    DefineForVisualC := '__VISUALC__'.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2091
    DefineForMSC := '__MSC__'.
4255
6ff79c868b94 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4252
diff changeset
  2092
    "/ https://expeccoalm.exept.de/D252306
6ff79c868b94 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4252
diff changeset
  2093
    "/ must not redefine __GNUC__, because gcc defines this anyway with the gcc version 
6ff79c868b94 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4252
diff changeset
  2094
    "/ contained in this macro (which is used by glibc includes).
6ff79c868b94 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4252
diff changeset
  2095
    "/ also defined in STCCompilerInterface class >> #getCCDefine
6ff79c868b94 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4252
diff changeset
  2096
    DefineForGNUC := 'STX__GNUC__'.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2097
    DefineForMINGW := '__MINGW__'.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2098
    DefineForMINGW32 := '__MINGW32__'.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2099
    DefineForMINGW64 := '__MINGW64__'.
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  2100
    DefineForCLANG := '__CLANG__'.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2101
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2102
    "/ try along the executable's path itself
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2103
    (executablePath := OperatingSystem pathOfSTXExecutable) notNil ifTrue:[
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2104
        |parentDir|
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2105
        
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2106
        parentDir := executablePath asFilename directory.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2107
        ((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2108
            topDir := parentDir.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2109
        ] ifFalse:[    
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2110
            parentDir := parentDir directory.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2111
            ((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[  
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2112
                topDir := parentDir.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2113
            ] ifFalse:[    
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2114
                parentDir := parentDir directory.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2115
                ((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[  
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2116
                    topDir := parentDir.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2117
                ]
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2118
            ]
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2119
        ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2120
    ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2121
    
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2122
    topDir isNil ifTrue:[
4048
e3c3a9e1f3a9 #DOCUMENTATION by mawalch
mawalch
parents: 4043
diff changeset
  2123
        "/ try standard installation paths...
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2124
        OperatingSystem isOSXlike ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2125
            |appDir parentDir|
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2126
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2127
            (appDir := '/Applications/SmalltalkX.app' asFilename) exists ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2128
                (parentDir := appDir / 'Packages/stx') exists ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2129
                    ((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[  
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2130
                        topDir := parentDir.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2131
                    ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2132
                ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2133
            ].    
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2134
            (appDir := Filename homeDirectory / 'Applications/SmalltalkX.app') exists ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2135
                (parentDir := appDir / 'Packages/stx') exists ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2136
                    ((parentDir / 'include') exists and:[(parentDir / 'stc') exists]) ifTrue:[  
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2137
                        topDir := parentDir.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2138
                    ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2139
                ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2140
            ].    
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2141
        ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2142
    ].
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2143
    
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2144
    topDir notNil ifTrue:[
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2145
        self initializeSTCFlagsForTopDirectory:topDir.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2146
    ].
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2147
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2148
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2149
     ParserFlags initialize
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2150
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2151
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2152
    "Modified: / 09-08-2006 / 18:47:18 / fm"
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2153
    "Modified: / 08-08-2017 / 23:49:41 / cg"
4255
6ff79c868b94 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4252
diff changeset
  2154
    "Modified (comment): / 11-05-2018 / 10:12:29 / stefan"
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2155
    "Modified: / 08-06-2019 / 14:53:27 / Claus Gittinger"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2156
!
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2157
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2158
initializeSTCFlagsForTopDirectory:topDirArg
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2159
    "topDirArg must be the stx directory (where stc directory with stc-executable is found)
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2160
     notice: for now, can only initialize for borland+windows or linux;
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2161
     visualC setup still fails."
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2162
3719
cf47b10b5607 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 3653
diff changeset
  2163
    |topDir topDirName vcTop sdkTop bccTop mingwTop
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  2164
     borlandDir useBorlandC useVisualC useMingw32 useMingw64
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2165
     programFiles archArg picArg optArg|
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2166
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2167
    topDir := topDirArg.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2168
    OperatingSystem isMSWINDOWSlike ifTrue:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2169
        topDirArg isString ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2170
            topDir := topDirArg copyReplaceAll:$/ with:$\ ifNone:topDirArg.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2171
        ]
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2172
    ].
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2173
    topDir := topDir asFilename.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2174
    topDirName := topDir name.
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2175
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2176
    "/ if in the development directory, use ./modules
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2177
    Smalltalk isSmalltalkDevelopmentSystem ifTrue:[
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2178
        STCModulePath := UserPreferences current workspaceDirectory / 'modules'.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2179
    ] ifFalse:[
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2180
        STCModulePath := Filename tempDirectory / 'modules'.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2181
    ].
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2182
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2183
    (topDir construct:'stc') exists ifFalse:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2184
        ('ParserFlags [warning]: stc not found in "',topDirName,'"') infoPrintCR.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2185
        'ParserFlags [warning]: stc-compiling (primitive code) will not work in the browser' infoPrintCR.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2186
        STCCompilation := #never.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2187
    ].
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2188
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2189
    OperatingSystem isMSWINDOWSlike ifTrue:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2190
        useBorlandC := useVisualC := useMingw32 := useMingw64 := false.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2191
        programFiles := OperatingSystem getEnvironment:'ProgramFiles'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2192
        programFiles isEmptyOrNil ifTrue:[ programFiles := 'C:\Program Files' ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2193
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2194
        STCCompilationIncludes := '-I',topDirName,'\include -I',topDirName,'\libopengl'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2195
4252
be79e76ee1d3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4251
diff changeset
  2196
        ExternalBytes sizeofPointer == 4 ifFalse:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2197
            bccTop := nil
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2198
        ] ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2199
            (bccTop := BCCTop) isNil ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2200
                borlandDir := OperatingSystem getEnvironment:'BCCDIR'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2201
                borlandDir isEmptyOrNil ifTrue:[ borlandDir := 'C:\Borland\bcc55' ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2202
                bccTop := {
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2203
                            (borlandDir) .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2204
                            (programFiles , '\Borland\bcc55') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2205
                            (programFiles , '\bcc55') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2206
                          } detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]]
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2207
                             ifNone:nil.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2208
            ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2209
        ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2210
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2211
        STCCompilationDefines := '-DWIN32'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2212
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2213
        (bccTop notNil and:[bccTop asFilename exists]) ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2214
            STCCompilationIncludes := STCCompilationIncludes,' -I',bccTop,'\Include'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2215
            LibDirectory := topDirName,'\lib\bc'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2216
            LinkArgs := '-L',topDirName,'\lib\bc'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2217
            LinkArgs := LinkArgs,' -L',bccTop,'\Lib -r -c -ap -Tpd -Gi -w-dup'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2218
            CCPath := 'bcc32'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2219
            MakeCommand := 'bmake'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2220
            LinkCommand := 'ilink32'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2221
            CCCompilationOptions := '-w-'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2222
            useBorlandC := true.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2223
        ] ifFalse:[
4252
be79e76ee1d3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4251
diff changeset
  2224
            ExternalBytes sizeofPointer == 4 ifFalse:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2225
                vcTop := nil.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2226
            ] ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2227
                (vcTop := VCTop) isNil ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2228
                    vcTop := {
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2229
                                (programFiles,'\Microsoft Visual Studio 13.0\VC') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2230
                                (programFiles,'\Microsoft Visual Studio 12.0\VC') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2231
                                (programFiles,'\Microsoft Visual Studio 11.0\VC') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2232
                                (programFiles,'\Microsoft Visual Studio 10.0\VC') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2233
                                (programFiles,'\Microsoft Visual Studio 9.0\VC' ) .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2234
                             } detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/cl.exe') exists]]
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2235
                               ifNone:nil.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2236
                ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2237
            ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2238
            (vcTop notNil and:[vcTop asFilename exists]) ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2239
                useVisualC := true.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2240
                STCCompilationIncludes := STCCompilationIncludes,' -I',vcTop,'include'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2241
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2242
                (sdkTop := SDKTop) isNil ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2243
                    sdkTop := {
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2244
                                (programFiles,'\Microsoft SDKs\Windows\v9.0A') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2245
                                (programFiles,'\Microsoft SDKs\Windows\v8.0A') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2246
                                (programFiles,'\Microsoft SDKs\Windows\v8.0A') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2247
                                (programFiles,'\Microsoft SDKs\Windows\v7.0A') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2248
                                (programFiles,'\Microsoft SDKs\Windows\v6.0A') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2249
                             }  detect:[:path | path asFilename exists and:[(path asFilename construct:'include') exists]] ifNone:nil.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2250
                ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2251
                (sdkTop notNil and:[sdkTop asFilename exists]) ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2252
                    STCCompilationIncludes := STCCompilationIncludes,' -I',sdkTop,'\include'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2253
                ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2254
                LibDirectory := topDirName,'\lib\vc'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2255
                LinkArgs := '-L',topDirName,'\lib\vc'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2256
                LinkArgs := LinkArgs,' -r -c -ap -Tpd -Gi -w-dup'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2257
                CCPath := vcTop,'\bin\cl.exe'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2258
                LinkCommand := 'ilink32'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2259
                MakeCommand := 'vcmake'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2260
                CCCompilationOptions := '/nologo /ZI  /w /GF /EHsc /FR.\objvc\'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2261
            ] ifFalse:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2262
                "/ add definitions for lcc, mingc etc.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2263
                "/ STCCompilationIncludes := STCCompilationIncludes,' -IC:\xxxxx\Include'.
4252
be79e76ee1d3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4251
diff changeset
  2264
                ExternalBytes sizeofPointer == 4 ifTrue:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2265
                    (mingwTop := MingwTop) isNil ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2266
                        mingwTop := {
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2267
                                    (programFiles,'\mingw') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2268
                                    (programFiles,'\mingw') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2269
                                    ('c:\mingw32') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2270
                                    ('c:\mingw') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2271
                                 } detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/gcc.exe') exists]]
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2272
                                   ifNone:nil.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2273
                    ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2274
                    (mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2275
                        useMingw32 := true.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2276
                        STCCompilationDefines := STCCompilationDefines,' -D__MINGW32__'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2277
                        CCCompilationOptions := '-w32'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2278
                    ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2279
                ] ifFalse:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2280
                    (mingwTop := MingwTop) isNil ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2281
                        mingwTop := {
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2282
                                    (programFiles,'\mingw64') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2283
                                    (programFiles,'\mingw') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2284
                                    ('c:\mingw64') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2285
                                    ('c:\mingw') .
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2286
                                 } detect:[:path | path asFilename exists and:[(path asFilename construct:'bin/gcc.exe') exists]]
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2287
                                   ifNone:nil.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2288
                    ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2289
                    (mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2290
                        STCCompilationDefines := STCCompilationDefines,' -D__MINGW64__'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2291
                        "/ CCCompilationOptions := '-w64'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2292
                    ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2293
                ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2294
                (mingwTop notNil and:[mingwTop asFilename exists]) ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2295
                    STCCompilationDefines := STCCompilationDefines,' -D__MINGW__'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2296
                    CCPath := mingwTop,'\bin\gcc.exe'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2297
                    LinkCommand := 'gcc'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2298
                    MakeCommand := 'mingwmake'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2299
                    LibDirectory := topDirName,'\lib\mingw'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2300
                    LinkArgs := '-L',topDirName,'\lib\mingw'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2301
                    "/ LinkArgs := LinkArgs,' -r -c -ap -Tpd -Gi -w-dup'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2302
                ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2303
            ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2304
        ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2305
        STCCompilationOptions := '+optinline +inlineNew'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2306
        (topDirName,'\stc\stc.exe') asFilename exists ifTrue:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2307
            STCPath := (topDirName,'\stc\stc.exe').
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2308
        ] ifFalse:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2309
            STCPath := 'stc.exe'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2310
        ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2311
        LibPath := ''.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2312
        SearchedLibraries := #('import32.lib').
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2313
        "/ SearchedLibraries := #('import32.lib' 'glu32.lib' 'opengl32.lib').
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2314
    ] ifFalse:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2315
        STCCompilationIncludes := '-I',topDirName,'/include'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2316
        STCCompilationDefines := ''.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2317
        STCCompilationOptions := '+optinline +inlineNew'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2318
        STCPath := topDirName,'/stc/stc'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2319
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2320
        archArg := picArg := ''.
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2321
        optArg := '-O'.
4252
be79e76ee1d3 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4251
diff changeset
  2322
        (ExternalBytes sizeofPointer == 4) ifTrue:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2323
            archArg := ' -m32'
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2324
        ] ifFalse:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2325
            archArg := ' -m64'.            "gcc -m64 needs -fPIC to make a shared library"
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2326
            picArg := ' -fPIC'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2327
        ].
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2328
        self useClang ifTrue:[
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2329
            CCPath := 'clang'
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2330
        ] ifFalse:[
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2331
            self useGnuC ifTrue:[
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2332
                CCPath := 'gcc'.
4279
5d61e0122b4e #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4256
diff changeset
  2333
                optArg := '-O2 -fno-toplevel-reorder -fno-stack-protector -fno-strict-overflow'.
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2334
            ] ifFalse:[
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2335
                CCPath := 'cc'
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2336
            ].
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2337
        ].
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2338
        CCCompilationOptions := STCCompilerInterface getCPUDefine,
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2339
                                ' -D', self usedCompilerDefine,
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2340
                                ' ', STCCompilerInterface getOSDefine,
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2341
                                ' ', optArg, archArg, picArg.
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2342
        LinkArgs := archArg.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2343
        LinkCommand := CCPath.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2344
        LinkSharedArgs := '-shared'.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2345
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2346
        OperatingSystem isOSXlike ifTrue:[
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2347
            LinkSharedArgs := '-shared -mmacosx-version-min=10.5 -arch x86_64 librun.so'.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2348
            CCCompilationOptions := CCCompilationOptions ,' -mmacosx-version-min=10.5' 
3960
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2349
        ].    
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2350
        LibPath := ''.
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2351
        SearchedLibraries := #().
c028435d05a6 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 3947
diff changeset
  2352
        MakeCommand := 'make'.
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2353
    ].
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2354
4025
de861c5aaa61 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 4022
diff changeset
  2355
    (Smalltalk verbose and:[ Smalltalk infoPrinting ]) ifTrue:[
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2356
        'ParserFlags [info]: STC Setup:' infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2357
        ('ParserFlags [info]:  STCCompilationDefines: ',(STCCompilationDefines?'')) infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2358
        ('ParserFlags [info]:  CCPath: ',CCPath asString) infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2359
        ('ParserFlags [info]:  CCCompilationOptions: ',(CCCompilationOptions?'')) infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2360
        ('ParserFlags [info]:  LinkCommand: ',LinkCommand asString) infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2361
        ('ParserFlags [info]:  MakeCommand: ',MakeCommand asString) infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2362
        ('ParserFlags [info]:  LinkArgs: ',(LinkArgs?''),' ',(LinkSharedArgs ?'')) infoPrintCR.
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2363
        ('ParserFlags [info]:  STCModulePath: ',STCModulePath asString) infoPrintCR.
3748
1d2f19126419 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 3729
diff changeset
  2364
    ].
1d2f19126419 #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 3729
diff changeset
  2365
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2366
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2367
     ParserFlags initializeSTCFlagsForTopDirectory:'../..'
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2368
     ParserFlags initialize
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2369
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2370
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2371
    "Modified: / 09-08-2006 / 18:47:18 / fm"
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2372
    "Created: / 06-08-2011 / 19:47:47 / cg"
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  2373
    "Modified: / 11-05-2018 / 14:18:42 / stefan"
4279
5d61e0122b4e #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4256
diff changeset
  2374
    "Modified: / 19-06-2018 / 10:47:21 / Stefan Vogel"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  2375
! !
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2376
2685
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  2377
!ParserFlags methodsFor:'accessing'!
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  2378
2927
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2379
fullLineNumberInfo
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2380
    ^ (self lineNumberInfo == #full)
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2381
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2382
    "Created: / 26-09-2012 / 14:13:42 / cg"
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2383
!
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2384
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2385
lineNumberInfo
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2386
    ^ lineNumberInfo
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2387
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2388
    "Created: / 26-09-2012 / 13:27:08 / cg"
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2389
!
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2390
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2391
lineNumberInfo:something
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2392
    lineNumberInfo := something.
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2393
5e01571e5811 class definition
Claus Gittinger <cg@exept.de>
parents: 2888
diff changeset
  2394
    "Created: / 26-09-2012 / 13:27:17 / cg"
2685
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  2395
! !
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  2396
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2397
!ParserFlags methodsFor:'accessing-compilation control'!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2398
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2399
allowExtensionsToPrivateClasses
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2400
    ^ allowExtensionsToPrivateClasses
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2401
!
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2402
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2403
allowExtensionsToPrivateClasses:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2404
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2405
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2406
    allowExtensionsToPrivateClasses := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2407
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2408
    "Modified (comment): / 09-02-2019 / 15:52:10 / Claus Gittinger"
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2409
!
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2410
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2411
allowPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2412
    ^ allowPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2413
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2414
    "Created: / 16-11-2006 / 14:24:54 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2415
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2416
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2417
allowPossibleSTCCompilationProblems:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2418
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2419
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2420
    allowPossibleSTCCompilationProblems := aBoolean
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2421
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2422
    "Created: / 16-11-2006 / 14:24:56 / cg"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2423
    "Modified (comment): / 09-02-2019 / 15:53:08 / Claus Gittinger"
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2424
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  2425
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2426
arraysAreImmutable
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2427
    ^ arraysAreImmutable
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2428
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2429
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2430
arraysAreImmutable:aBoolean
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2431
    arraysAreImmutable := aBoolean.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2432
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2433
1717
fff182879ce2 qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents: 1713
diff changeset
  2434
flattenVisualWorksNamespaces
fff182879ce2 qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents: 1713
diff changeset
  2435
    ^ true
fff182879ce2 qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents: 1713
diff changeset
  2436
!
fff182879ce2 qualified names again (VW7);
Claus Gittinger <cg@exept.de>
parents: 1713
diff changeset
  2437
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2438
singlePrecisionFloatF
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2439
    "by default, the 'f'-character in a float literal will generate
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2440
     double-precision Float literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2441
     With singlePrecisionFloats, it will generate single precision ShortFloat literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2442
     The default is false.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2443
     Notice, that there is some confusion among Smalltalk systems, whether a float has
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2444
     single or double precision (VW vs. V'age).
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2445
     In ST/X, floats have double-precision by default."
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2446
     
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2447
    ^ singlePrecisionFloatF
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2448
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2449
    "Created: / 26-05-2019 / 11:31:37 / Claus Gittinger"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2450
    "Modified (comment): / 08-06-2019 / 15:02:20 / Claus Gittinger"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2451
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2452
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2453
singlePrecisionFloatF:aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2454
    "by default, the 'f'-character in a float literal will generate
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2455
     double-precision Float literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2456
     With singlePrecisionFloats, it will generate single precision ShortFloat literals.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2457
     The default is false.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2458
     Notice, that there is some confusion among Smalltalk systems, whether a float has
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2459
     single or double precision (VW vs. V'age).
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2460
     In ST/X, floats have double-precision by default."
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2461
     
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2462
    singlePrecisionFloatF := aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2463
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2464
    "Created: / 26-05-2019 / 11:32:11 / Claus Gittinger"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2465
    "Modified (comment): / 08-06-2019 / 15:02:14 / Claus Gittinger"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2466
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2467
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2468
stringsAreImmutable
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2469
    ^ stringsAreImmutable
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2470
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2471
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2472
stringsAreImmutable:aBoolean
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2473
    stringsAreImmutable := aBoolean.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2474
! !
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2475
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2476
!ParserFlags methodsFor:'accessing-stc compilation control'!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2477
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2478
ccCompilationOptions
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  2479
    ^ ccCompilationOptions ? ''
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2480
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2481
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2482
     self ccCompilationOptions
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2483
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2484
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2485
    "Modified (comment): / 17-11-2016 / 15:40:29 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2486
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2487
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2488
ccCompilationOptions:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2489
    ccCompilationOptions := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2490
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2491
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2492
ccPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2493
    ^ ccPath
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2494
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2495
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2496
     self ccPath
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2497
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2498
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2499
    "Modified (comment): / 17-11-2016 / 15:40:40 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2500
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2501
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2502
ccPath:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2503
    ccPath := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2504
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2505
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2506
implicitSelfSends
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2507
    ^ implicitSelfSends
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2508
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2509
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2510
implicitSelfSends:aBoolean
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2511
    implicitSelfSends := aBoolean.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2512
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2513
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2514
libPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2515
    ^ libPath
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2516
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2517
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2518
     self libPath
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2519
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2520
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2521
    "Modified (comment): / 17-11-2016 / 15:40:52 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2522
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2523
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2524
libPath:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2525
    libPath := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2526
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2527
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2528
linkArgs
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2529
    ^ linkArgs
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2530
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2531
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2532
     self linkArgs
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2533
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2534
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2535
    "Modified (comment): / 17-11-2016 / 15:41:03 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2536
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2537
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2538
linkArgs:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2539
    linkArgs := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2540
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2541
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2542
linkCommand
4475
2ade19de2d67 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4461
diff changeset
  2543
    ^ linkCommand ? self class linkCommand
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2544
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2545
    "
4475
2ade19de2d67 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4461
diff changeset
  2546
     self new linkCommand
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2547
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2548
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2549
    "Modified (comment): / 17-11-2016 / 15:41:16 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2550
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2551
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2552
linkCommand:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2553
    linkCommand := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2554
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2555
1898
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2556
linkSharedArgs
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2557
    ^ linkSharedArgs
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2558
!
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2559
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2560
linkSharedArgs:aString
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2561
    linkSharedArgs := aString
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2562
!
f1d3d58a0d63 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1814
diff changeset
  2563
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2564
searchedLibraries
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2565
    ^ searchedLibraries
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2566
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2567
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2568
searchedLibraries:aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2569
    searchedLibraries := aString
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2570
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2571
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2572
stcCompilation
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2573
    ^ stcCompilation
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2574
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2575
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2576
stcCompilation:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2577
    stcCompilation := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2578
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2579
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2580
stcCompilationDefines
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2581
    ^ stcCompilationDefines
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2582
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2583
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2584
stcCompilationDefines:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2585
    stcCompilationDefines := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2586
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2587
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2588
stcCompilationIncludes
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2589
    ^ stcCompilationIncludes
4043
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2590
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2591
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2592
     self stcCompilationIncludes
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2593
    "
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2594
c7360098ca6f #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4041
diff changeset
  2595
    "Modified (comment): / 17-11-2016 / 15:41:43 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2596
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2597
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2598
stcCompilationIncludes:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2599
    stcCompilationIncludes := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2600
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2601
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2602
stcCompilationOptions
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2603
    ^ stcCompilationOptions
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2604
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2605
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2606
stcCompilationOptions:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2607
    stcCompilationOptions := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2608
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2609
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2610
stcKeepCIntermediate
2701
36ad61f458e8 changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  2611
    ^ stcKeepCIntermediate ? false
36ad61f458e8 changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  2612
36ad61f458e8 changed: #stcKeepCIntermediate
Claus Gittinger <cg@exept.de>
parents: 2690
diff changeset
  2613
    "Modified: / 16-09-2011 / 19:56:22 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2614
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2615
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2616
stcKeepCIntermediate:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2617
    stcKeepCIntermediate := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2618
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2619
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2620
stcKeepOIntermediate
2702
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
  2621
    ^ stcKeepOIntermediate ? false
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
  2622
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
  2623
    "Modified: / 16-09-2011 / 19:56:52 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2624
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2625
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2626
stcKeepOIntermediate:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2627
    stcKeepOIntermediate := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2628
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2629
2490
cb034ba95b0c added: #stcKeepSIntermediate
Michael Beyl <mb@exept.de>
parents: 2488
diff changeset
  2630
stcKeepSIntermediate
cb034ba95b0c added: #stcKeepSIntermediate
Michael Beyl <mb@exept.de>
parents: 2488
diff changeset
  2631
    ^ false
cb034ba95b0c added: #stcKeepSIntermediate
Michael Beyl <mb@exept.de>
parents: 2488
diff changeset
  2632
    "/ ^ true
cb034ba95b0c added: #stcKeepSIntermediate
Michael Beyl <mb@exept.de>
parents: 2488
diff changeset
  2633
!
cb034ba95b0c added: #stcKeepSIntermediate
Michael Beyl <mb@exept.de>
parents: 2488
diff changeset
  2634
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2635
stcKeepSTIntermediate
2702
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
  2636
    ^ stcKeepSTIntermediate ? false
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
  2637
8cf0d5642c70 changed:
Claus Gittinger <cg@exept.de>
parents: 2701
diff changeset
  2638
    "Modified: / 16-09-2011 / 19:57:11 / cg"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2639
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2640
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2641
stcKeepSTIntermediate:something
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2642
    stcKeepSTIntermediate := something.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2643
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2644
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2645
stcModulePath
4012
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
  2646
    stcModulePath isNil ifTrue:[^ self class stcModulePath].
55763135379f #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 3960
diff changeset
  2647
    ^ stcModulePath
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2648
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2649
4013
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
  2650
stcModulePath:aPath
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
  2651
    "set the path to the directory (for an individual compilation context).
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
  2652
     Obsolete now, as this should not be set from the outside,
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
  2653
     but instead rely totally on the userPreferences."
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
  2654
32a83d2dc88d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4012
diff changeset
  2655
    stcModulePath := aPath.
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2656
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2657
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2658
stcPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2659
    ^ stcPath
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2660
!
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2661
4017
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2662
stcPath:aPath
45d0fed88f5f #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4013
diff changeset
  2663
    stcPath := aPath.
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2664
! !
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2665
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  2666
!ParserFlags methodsFor:'accessing-syntax-control'!
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2667
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2668
allowArrayIndexSyntaxExtension
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  2669
    "experimental syntax: var[idx-expr]"
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  2670
4179
ad49e7852c6d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4174
diff changeset
  2671
    ^ allowArrayIndexSyntaxExtension ? false
ad49e7852c6d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4174
diff changeset
  2672
ad49e7852c6d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4174
diff changeset
  2673
    "Modified: / 08-08-2017 / 16:57:03 / cg"
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  2674
    "Modified (comment): / 08-06-2019 / 15:00:13 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2675
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2676
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2677
allowArrayIndexSyntaxExtension:aBoolean
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  2678
    "experimental syntax: var[idx-expr]"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2679
    "attn: possibly sent via perform (Parser >> parsePragma)"
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  2680
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2681
    allowArrayIndexSyntaxExtension := aBoolean.
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  2682
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2683
    "Modified (comment): / 09-02-2019 / 15:51:18 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2684
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2685
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2686
allowAssignmentToBlockArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2687
    ^ allowAssignmentToBlockArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2688
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2689
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2690
allowAssignmentToBlockArgument:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2691
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2692
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2693
    allowAssignmentToBlockArgument := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2694
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2695
    "Modified (comment): / 09-02-2019 / 15:51:22 / Claus Gittinger"
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2696
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2697
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2698
allowAssignmentToMethodArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2699
    ^ allowAssignmentToMethodArgument
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2700
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2701
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2702
allowAssignmentToMethodArgument:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2703
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2704
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2705
    allowAssignmentToMethodArgument := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2706
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2707
    "Modified (comment): / 09-02-2019 / 15:51:27 / Claus Gittinger"
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2708
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2709
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2710
allowAssignmentToPoolVariable
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2711
    ^ allowAssignmentToPoolVariable
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2712
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2713
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2714
allowAssignmentToPoolVariable:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2715
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2716
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2717
    allowAssignmentToPoolVariable := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2718
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2719
    "Modified (comment): / 09-02-2019 / 15:51:29 / Claus Gittinger"
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2720
!
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2721
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2722
allowCIntegers
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2723
    "allow c-style integers of the form: 0xHHH, 0bBBB and 0oOOO"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2724
     
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2725
    ^ allowCIntegers ? false.
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2726
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2727
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2728
allowCIntegers:aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2729
    "allow c-style integers of the form: 0xHHH, 0bBBB and 0oOOO"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2730
     
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2731
    "attn: possibly sent via perform (Parser >> parsePragma)"
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2732
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2733
    allowCIntegers := aBoolean
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2734
!
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  2735
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2736
allowCStrings
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2737
    "cstrings have the syntax:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2738
        c'...'
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2739
     where inside the string, c-language escapes are recognized"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2740
     
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2741
    ^ allowCStrings ? false.
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2742
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2743
    "Created: / 08-02-2019 / 18:28:33 / Claus Gittinger"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2744
    "Modified (comment): / 23-05-2019 / 10:26:31 / Claus Gittinger"
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2745
!
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2746
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2747
allowCStrings:aBoolean
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2748
    "cstrings have the syntax:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2749
        c'...'
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2750
     where inside the string, c-language escapes are recognized"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2751
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2752
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2753
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2754
    allowCStrings := aBoolean
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2755
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2756
    "Created: / 08-02-2019 / 18:28:47 / Claus Gittinger"
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2757
    "Modified (comment): / 23-05-2019 / 10:26:36 / Claus Gittinger"
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2758
!
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  2759
2306
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2760
allowCaretAsBinop
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2761
    ^ allowCaretAsBinop
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2762
!
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2763
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2764
allowCaretAsBinop:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2765
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2766
2306
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2767
    allowCaretAsBinop := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2768
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2769
    "Modified (comment): / 09-02-2019 / 15:51:38 / Claus Gittinger"
2306
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2770
!
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  2771
2312
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2772
allowCharacterEscapes
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2773
    ^ allowCharacterEscapes
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2774
!
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2775
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2776
allowCharacterEscapes:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2777
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2778
2312
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2779
    allowCharacterEscapes := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2780
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2781
    "Modified (comment): / 09-02-2019 / 15:51:41 / Claus Gittinger"
2312
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2782
!
Claus Gittinger <cg@exept.de>
parents: 2311
diff changeset
  2783
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2784
allowDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2785
    ^ allowDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2786
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2787
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2788
allowDollarInIdentifier:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2789
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2790
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2791
    allowDollarInIdentifier := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2792
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2793
    "Modified (comment): / 09-02-2019 / 15:51:47 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2794
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2795
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2796
allowDolphinExtensions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2797
    ^ allowDolphinExtensions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2798
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2799
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2800
allowDolphinExtensions:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2801
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2802
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2803
    allowDolphinExtensions := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2804
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2805
    "Modified (comment): / 09-02-2019 / 15:51:50 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2806
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2807
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2808
allowDomainVariables
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2809
    ^ allowDomainVariables
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2810
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2811
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2812
allowDomainVariables:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2813
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2814
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2815
    allowDomainVariables := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2816
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2817
    "Modified (comment): / 09-02-2019 / 15:51:55 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2818
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2819
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2820
allowEStrings
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2821
    "estrings have the syntax:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2822
        e'...'
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2823
     where inside the string, c-language escapes are recognized
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2824
     AND embedded expressions {expr} are sliced into the string."
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2825
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2826
    ^ allowEStrings ? false.
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2827
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2828
    "Created: / 23-05-2019 / 10:25:50 / Claus Gittinger"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2829
!
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2830
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2831
allowEStrings:aBoolean
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2832
    "estrings have the syntax:
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2833
        e'...'
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2834
     where inside the string, c-language escapes are recognized
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2835
     AND embedded expressions {expr} are sliced into the string."
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2836
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2837
    "attn: possibly sent via perform (Parser >> parsePragma)"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2838
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2839
    allowEStrings := aBoolean
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2840
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2841
    "Created: / 23-05-2019 / 10:26:02 / Claus Gittinger"
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2842
!
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  2843
1950
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2844
allowEmptyStatements
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2845
    ^ allowEmptyStatements ? false
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2846
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2847
    "Created: / 20-11-2006 / 13:56:14 / cg"
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2848
!
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2849
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2850
allowEmptyStatements:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2851
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2852
1950
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2853
    allowEmptyStatements := aBoolean.
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2854
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2855
    "Created: / 20-11-2006 / 14:26:48 / cg"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2856
    "Modified (comment): / 09-02-2019 / 15:51:58 / Claus Gittinger"
1950
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2857
!
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  2858
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2859
allowExtendedBinarySelectors
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2860
    ^ allowExtendedBinarySelectors
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2861
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2862
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2863
allowExtendedBinarySelectors:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2864
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2865
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2866
    allowExtendedBinarySelectors := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2867
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2868
    "Modified (comment): / 09-02-2019 / 15:52:01 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2869
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2870
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2871
allowExtendedSTXSyntax
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2872
    "enables ALL of the ST/X extensions.
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2873
     Do not use for now, as stc does not support all of them"
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2874
     
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2875
    ^ allowExtendedSTXSyntax
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2876
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2877
    "Modified (comment): / 23-05-2019 / 10:36:04 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2878
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2879
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2880
allowExtendedSTXSyntax:aBoolean
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2881
    "enables ALL of the ST/X extensions.
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2882
     Do not use for now, as stc does not support all of them"
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2883
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2884
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2885
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2886
    allowExtendedSTXSyntax := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2887
4413
ad104abaa18d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4412
diff changeset
  2888
    "Modified (comment): / 23-05-2019 / 10:41:41 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2889
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2890
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2891
allowFixedPointLiterals
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2892
    ^ allowFixedPointLiterals
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2893
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2894
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2895
allowFixedPointLiterals:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2896
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2897
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2898
    allowFixedPointLiterals := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2899
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2900
    "Modified (comment): / 09-02-2019 / 15:52:13 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2901
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2902
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2903
allowFunctionCallSyntaxForBlockEvaluation
4179
ad49e7852c6d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4174
diff changeset
  2904
    ^ allowFunctionCallSyntaxForBlockEvaluation ? false
ad49e7852c6d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4174
diff changeset
  2905
ad49e7852c6d #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 4174
diff changeset
  2906
    "Modified: / 08-08-2017 / 16:57:17 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2907
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2908
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2909
allowFunctionCallSyntaxForBlockEvaluation:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2910
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2911
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2912
    allowFunctionCallSyntaxForBlockEvaluation := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2913
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2914
    "Modified (comment): / 09-02-2019 / 15:52:19 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2915
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2916
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2917
allowGreekCharactersInIdentifier
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2918
    ^ allowGreekCharactersInIdentifier
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2919
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2920
    "Created: / 08-06-2019 / 14:52:42 / Claus Gittinger"
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2921
!
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2922
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2923
allowGreekCharactersInIdentifier:aBoolean
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  2924
    "attn: possibly sent via perform (Parser >> parsePragma)"
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  2925
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2926
    allowGreekCharactersInIdentifier := aBoolean
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2927
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2928
    "Created: / 08-06-2019 / 14:54:55 / Claus Gittinger"
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2929
!
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  2930
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2931
allowHashAsBinarySelector
1713
4ddfa56c5744 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1712
diff changeset
  2932
    ^ allowHashAsBinarySelector
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2933
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2934
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2935
allowJavaScriptConst
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  2936
    "attn: possibly sent via perform (Parser >> parsePragma)"
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  2937
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2938
    ^ allowJavaScriptConst
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2939
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2940
    "Created: / 08-08-2017 / 23:50:12 / cg"
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  2941
    "Modified (comment): / 08-06-2019 / 15:00:52 / Claus Gittinger"
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2942
!
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2943
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2944
allowJavaScriptConst:aBoolean
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2945
    allowJavaScriptConst := aBoolean
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2946
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2947
    "Created: / 08-08-2017 / 23:50:23 / cg"
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2948
!
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  2949
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2950
allowLazyValueExtension
4428
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  2951
    "allow !![...] to generate a lazy value"
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  2952
    
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2953
    ^ allowLazyValueExtension
4428
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  2954
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  2955
    "Modified (comment): / 03-06-2019 / 10:57:32 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2956
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2957
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2958
allowLazyValueExtension:aBoolean
4428
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  2959
    "allow !![...] to generate a lazy value"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2960
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2961
    
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  2962
    allowLazyValueExtension := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2963
4428
a04104250af7 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4421
diff changeset
  2964
    "Modified (comment): / 03-06-2019 / 10:57:58 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2965
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2966
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2967
allowLiteralNameSpaceSymbols
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2968
    ^ allowLiteralNameSpaceSymbols
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2969
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2970
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2971
allowLiteralNameSpaceSymbols:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2972
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2973
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2974
    allowLiteralNameSpaceSymbols := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2975
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2976
    "Modified (comment): / 09-02-2019 / 15:52:36 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2977
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2978
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2979
allowLocalVariableDeclarationWithInitializerExpression
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2980
    ^ allowLocalVariableDeclarationWithInitializerExpression
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2981
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2982
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2983
allowLocalVariableDeclarationWithInitializerExpression:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2984
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2985
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2986
    allowLocalVariableDeclarationWithInitializerExpression := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2987
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2988
    "Modified (comment): / 09-02-2019 / 15:52:43 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2989
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  2990
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2991
allowNationalCharactersInIdentifier
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2992
    ^ allowNationalCharactersInIdentifier
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2993
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2994
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2995
allowNationalCharactersInIdentifier:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2996
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2997
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  2998
    allowNationalCharactersInIdentifier := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  2999
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3000
    "Modified (comment): / 09-02-2019 / 15:52:46 / Claus Gittinger"
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  3001
!
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  3002
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3003
allowOldStyleAssignment
4039
a31a6da554f4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4025
diff changeset
  3004
    "return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed"
a31a6da554f4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4025
diff changeset
  3005
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3006
    ^ allowOldStyleAssignment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3007
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3008
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3009
allowOldStyleAssignment:aBoolean
4039
a31a6da554f4 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4025
diff changeset
  3010
    "return true, if underscore-assignment (pre ST-80v4 syntax) are to be allowed"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3011
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3012
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3013
    allowOldStyleAssignment := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3014
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3015
    "Modified (format): / 09-02-2019 / 15:52:52 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3016
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3017
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3018
allowParagraphInIdentifier
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3019
    "return true, if §-characters are allowed in identifiers (treated as letter)"
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3020
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3021
    ^ allowParagraphInIdentifier
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3022
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3023
    "Created: / 16-11-2016 / 22:29:06 / cg"
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3024
    "Modified (comment): / 08-06-2019 / 14:59:39 / Claus Gittinger"
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3025
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3026
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3027
allowParagraphInIdentifier:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3028
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3029
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3030
    allowParagraphInIdentifier := aBoolean.
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3031
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3032
    "Created: / 16-11-2016 / 22:29:14 / cg"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3033
    "Modified (comment): / 09-02-2019 / 15:52:54 / Claus Gittinger"
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3034
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3035
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3036
allowPeriodAsNameSpaceSeparator
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3037
    "experimental syntax: foo.bar"
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3038
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3039
    ^ allowPeriodAsNameSpaceSeparator ? false
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3040
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3041
    "Created: / 23-09-2018 / 00:48:59 / Claus Gittinger"
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3042
!
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3043
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3044
allowPeriodAsNameSpaceSeparator:aBoolean
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3045
    "experimental syntax: foo.bar"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3046
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3047
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3048
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3049
    allowPeriodAsNameSpaceSeparator := aBoolean
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3050
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3051
    "Created: / 23-09-2018 / 00:49:09 / Claus Gittinger"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3052
    "Modified (comment): / 09-02-2019 / 15:53:00 / Claus Gittinger"
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3053
!
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3054
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3055
allowPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3056
    ^ allowPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3057
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3058
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3059
allowPeriodInSymbol:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3060
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3061
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3062
    allowPeriodInSymbol := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3063
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3064
    "Modified (comment): / 09-02-2019 / 15:53:02 / Claus Gittinger"
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3065
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3066
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3067
allowQualifiedNames
4302
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  3068
    "return true, if '#{..}' and 'namespace.varName' qualified names are allowed"
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  3069
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3070
    ^ allowQualifiedNames
4302
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  3071
97c125843381 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4301
diff changeset
  3072
    "Modified (comment): / 23-09-2018 / 01:08:34 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3073
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3074
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3075
allowQualifiedNames:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3076
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3077
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3078
    allowQualifiedNames := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3079
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3080
    "Modified (comment): / 09-02-2019 / 15:53:11 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3081
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3082
4430
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3083
allowRStrings
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3084
    "rstrings have the syntax:
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3085
        r'...'
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3086
     which generates a regex"
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3087
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3088
    ^ allowRStrings ? false.
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3089
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3090
    "Created: / 03-06-2019 / 11:11:25 / Claus Gittinger"
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3091
!
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3092
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3093
allowRStrings:aBoolean
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3094
    "rstrings have the syntax:
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3095
        r'...'
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3096
     which generates a regex"
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3097
    "attn: possibly sent via perform (Parser >> parsePragma)"
4430
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3098
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3099
    allowRStrings := aBoolean
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3100
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3101
    "Created: / 03-06-2019 / 11:11:51 / Claus Gittinger"
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3102
    "Modified (comment): / 08-06-2019 / 15:01:17 / Claus Gittinger"
4430
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3103
!
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3104
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3105
allowReservedWordsAsSelectors
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3106
    "if true, 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are allowed
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3107
     as unary message selectors."
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3108
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3109
    ^ allowReservedWordsAsSelectors
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3110
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3111
    "Modified (comment): / 25-06-2019 / 11:16:52 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3112
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3113
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3114
allowReservedWordsAsSelectors:aBoolean
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3115
    "enable/disable, if 'self', 'super', 'thisContext', 'nil', 'true' and 'false' are to be allowed
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3116
     as unary message selectors."
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3117
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3118
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3119
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3120
    allowReservedWordsAsSelectors := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3121
4449
25db115428a7 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 4437
diff changeset
  3122
    "Modified (comment): / 25-06-2019 / 11:18:06 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3123
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3124
1703
97b2baf97611 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1702
diff changeset
  3125
allowSTVExtensions
97b2baf97611 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1702
diff changeset
  3126
    "return true, if support for ST/V extensions is enabled."
97b2baf97611 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1702
diff changeset
  3127
97b2baf97611 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1702
diff changeset
  3128
    ^ allowSTVExtensions
97b2baf97611 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1702
diff changeset
  3129
!
97b2baf97611 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1702
diff changeset
  3130
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3131
allowSTVExtensions:aBoolean
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3132
    "if support for ST/V extensions is enabled."
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3133
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3134
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3135
    allowSTVExtensions := aBoolean
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3136
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3137
    "Created: / 09-02-2019 / 15:53:32 / Claus Gittinger"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3138
!
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3139
1701
d122f5efa601 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1700
diff changeset
  3140
allowSTVPrimitives
d122f5efa601 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1700
diff changeset
  3141
    "return true, if support for ST/V primitives is enabled."
d122f5efa601 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1700
diff changeset
  3142
d122f5efa601 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1700
diff changeset
  3143
    ^ allowSTVPrimitives
d122f5efa601 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1700
diff changeset
  3144
!
d122f5efa601 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1700
diff changeset
  3145
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3146
allowSTVPrimitives:aBoolean
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3147
    "if support for ST/V primitives is enabled."
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3148
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3149
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3150
    allowSTVPrimitives := aBoolean
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3151
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3152
    "Created: / 09-02-2019 / 15:53:53 / Claus Gittinger"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3153
!
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3154
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3155
allowSTXDelimiterComments
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3156
    "are ST/X token-delimited comments allowed?
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3157
     (see comment on class side)"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3158
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3159
    ^ allowSTXDelimiterComments
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3160
!
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3161
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3162
allowSTXDelimiterComments:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3163
    "are ST/X token-delimited comments allowed? (default is true)
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3164
     (see comment on class side)"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3165
    "attn: possibly sent via perform (Parser >> parsePragma)"
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3166
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3167
    allowSTXDelimiterComments := aBoolean.
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3168
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3169
    "
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3170
     ParserFlags allowSTXDelimiterComments:false
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3171
     ParserFlags allowSTXDelimiterComments:true
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3172
    "
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3173
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3174
    "Modified (comment): / 09-02-2019 / 15:54:26 / Claus Gittinger"
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3175
!
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3176
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3177
allowSTXEOLComments
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3178
    "are ST/X end-of-line comments allowed?"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3179
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3180
    ^ allowSTXEOLComments
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3181
!
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3182
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3183
allowSTXEOLComments:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3184
    "are ST/X end-of-line comments allowed? (default is true)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3185
    "attn: possibly sent via perform (Parser >> parsePragma)"
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3186
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3187
    allowSTXEOLComments := aBoolean.
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3188
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3189
    "
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3190
     ParserFlags allowSTXEOLComments:false
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3191
     ParserFlags allowSTXEOLComments:true
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3192
    "
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3193
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3194
    "Modified (comment): / 09-02-2019 / 15:54:21 / Claus Gittinger"
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3195
!
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3196
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3197
allowSTXExtendedArrayLiterals
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3198
    "are scheme-style typed literal arrays allowed?"
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3199
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3200
    ^ allowSTXExtendedArrayLiterals ? false
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3201
!
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3202
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3203
allowSTXExtendedArrayLiterals:aBoolean
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3204
    "are scheme-style typed literal arrays allowed?"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3205
    "attn: possibly sent via perform (Parser >> parsePragma)"
3946
d6a5d4cc96e0 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3945
diff changeset
  3206
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3207
    allowSTXExtendedArrayLiterals := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3208
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3209
    "Modified (comment): / 09-02-2019 / 15:54:33 / Claus Gittinger"
3945
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3210
!
e462043d335b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3783
diff changeset
  3211
2494
8c4913740254 added: #allowSTXFunctions
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  3212
allowSTXFunctions
8c4913740254 added: #allowSTXFunctions
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  3213
    ^ false
8c4913740254 added: #allowSTXFunctions
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  3214
8c4913740254 added: #allowSTXFunctions
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  3215
    "Created: / 23-05-2011 / 17:43:45 / cg"
8c4913740254 added: #allowSTXFunctions
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  3216
!
8c4913740254 added: #allowSTXFunctions
Claus Gittinger <cg@exept.de>
parents: 2490
diff changeset
  3217
3783
e7a3fe517286 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3748
diff changeset
  3218
allowSignedByteArrayElements
4085
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  3219
    ^ allowSignedByteArrayElements
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  3220
!
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  3221
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  3222
allowSignedByteArrayElements:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3223
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3224
4085
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  3225
    allowSignedByteArrayElements := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3226
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3227
    "Modified (comment): / 09-02-2019 / 15:54:39 / Claus Gittinger"
3783
e7a3fe517286 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3748
diff changeset
  3228
!
e7a3fe517286 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 3748
diff changeset
  3229
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3230
allowSqueakExtensions
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3231
    "return true, if support for squeak extensions
4256
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  3232
	computed arrays { .., }
5152078ff118 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 4255
diff changeset
  3233
	c/java style arguments in message sends rec foo(arg1, ... argN)
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3234
     is enabled."
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3235
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3236
    ^ allowSqueakExtensions
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3237
!
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3238
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3239
allowSqueakExtensions:aBoolean
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3240
    "this allows turning on/off support for squeak extensions:
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3241
        computed arrays { .., }
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3242
        c/java style arguments in message sends rec foo(arg1, ... argN)
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3243
     attn: possibly sent via perform (Parser >> parsePragma)
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3244
    "
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3245
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3246
    allowSqueakExtensions := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3247
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3248
    "Modified (comment): / 09-02-2019 / 15:54:53 / Claus Gittinger"
3576
94e212168fa5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3575
diff changeset
  3249
!
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3250
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3251
allowSqueakPrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3252
    "return true, if support for squeak primitives is enabled."
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3253
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3254
    ^ allowSqueakPrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3255
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3256
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3257
allowSqueakPrimitives:aBoolean
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3258
    "this allows turning on/off support for squeak primitives"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3259
    "attn: possibly sent via perform (Parser >> parsePragma)"
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3260
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3261
    allowSqueakPrimitives := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3262
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3263
    "Modified (comment): / 09-02-2019 / 15:55:01 / Claus Gittinger"
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3264
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3265
2313
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3266
allowStringEscapes
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3267
    ^ allowStringEscapes
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3268
!
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3269
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3270
allowStringEscapes:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3271
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3272
2313
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3273
    allowStringEscapes := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3274
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3275
    "Modified (comment): / 09-02-2019 / 15:55:04 / Claus Gittinger"
2313
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3276
!
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3277
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3278
allowSymbolsStartingWithDigit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3279
    "return true, if a symbol is allowed to start with a digit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3280
     i.e. as in #2D.
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3281
     This seems to be ok in new Squeak/Pharo versions"
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3282
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3283
    ^ allowSymbolsStartingWithDigit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3284
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3285
    "Created: / 18-06-2017 / 16:26:08 / cg"
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3286
!
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3287
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3288
allowSymbolsStartingWithDigit:aBoolean
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3289
    "control if a symbol is allowed to start with a digit
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3290
     i.e. as in #2D.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3291
     This seems to be ok in new Squeak/Pharo versions.
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3292
     attn: possibly sent via perform (Parser >> parsePragma)"
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3293
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3294
    allowSymbolsStartingWithDigit := aBoolean
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3295
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3296
    "Created: / 18-06-2017 / 16:26:23 / cg"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3297
    "Modified (comment): / 09-02-2019 / 15:55:14 / Claus Gittinger"
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3298
!
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3299
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3300
allowUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3301
    ^ allowUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3302
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3303
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3304
allowUnderscoreInIdentifier:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3305
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3306
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3307
    allowUnderscoreInIdentifier := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3308
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3309
    "Modified (comment): / 09-02-2019 / 15:55:21 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3310
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3311
2310
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3312
allowUnicodeCharacters
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3313
    ^ allowUnicodeCharacters
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3314
!
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3315
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3316
allowUnicodeCharacters:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3317
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3318
2310
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3319
    allowUnicodeCharacters := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3320
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3321
    "Modified (comment): / 09-02-2019 / 15:55:25 / Claus Gittinger"
2310
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3322
!
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3323
2307
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3324
allowUnicodeStrings
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3325
    ^ allowUnicodeStrings
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3326
!
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3327
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3328
allowUnicodeStrings:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3329
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3330
2307
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3331
    allowUnicodeStrings := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3332
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3333
    "Modified (comment): / 09-02-2019 / 15:55:28 / Claus Gittinger"
2307
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3334
!
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3335
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3336
allowVariableReferences
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3337
    ^ allowVariableReferences
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3338
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3339
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3340
allowVariableReferences:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3341
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3342
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3343
    allowVariableReferences := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3344
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3345
    "Modified (comment): / 09-02-2019 / 15:55:32 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3346
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3347
1655
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3348
allowVisualAgeESSymbolLiterals
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3349
    ^ allowVisualAgeESSymbolLiterals
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3350
!
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3351
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3352
allowVisualAgeESSymbolLiterals:aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3353
    "attn: possibly sent via perform (Parser >> parsePragma)"
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3354
1655
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3355
    allowVisualAgeESSymbolLiterals := aBoolean.
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3356
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3357
    "Modified (comment): / 09-02-2019 / 15:55:35 / Claus Gittinger"
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3358
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3359
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3360
allowVisualAgePrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3361
    "return true, if support for V'Age primitives is enabled."
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3362
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3363
    ^ allowVisualAgePrimitives
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3364
!
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3365
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3366
allowVisualAgePrimitives:aBoolean
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3367
    "this allows turning on/off support for V'Age primitives"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3368
    "attn: possibly sent via perform (Parser >> parsePragma)"
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3369
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3370
    allowVisualAgePrimitives := aBoolean
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3371
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3372
    "Modified (comment): / 09-02-2019 / 15:55:39 / Claus Gittinger"
1773
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3373
!
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3374
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3375
allowVisualWorksMethodAnnotations
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3376
    "return true, if support for V'Works extended primitive syntax for method annotations."
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3377
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3378
    ^ allowVisualWorksMethodAnnotations
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3379
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3380
    "Created: / 07-07-2006 / 15:48:30 / cg"
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3381
!
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3382
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3383
allowVisualWorksMethodAnnotations:aBoolean
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3384
    "turn on/off support for V'Works extended primitive syntax for method annotations."
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3385
    "attn: possibly sent via perform (Parser >> parsePragma)"
1773
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3386
3355
8da364ec416e class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3295
diff changeset
  3387
    allowVisualWorksMethodAnnotations := aBoolean
1773
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3388
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3389
    "Created: / 07-07-2006 / 15:49:03 / cg"
4339
525b013ad75c #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4335
diff changeset
  3390
    "Modified (comment): / 09-02-2019 / 15:55:42 / Claus Gittinger"
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3391
! !
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3392
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3393
!ParserFlags methodsFor:'accessing-warning-control'!
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3394
1652
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3395
warnAboutBadComments
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3396
    ^ warnAboutBadComments
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3397
!
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3398
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3399
warnAboutBadComments:aBoolean
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3400
    warnAboutBadComments := aBoolean.
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3401
!
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3402
1811
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  3403
warnAboutNonLowercaseLocalVariableNames
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  3404
    ^ warnAboutNonLowercaseLocalVariableNames
1740
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  3405
!
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  3406
1811
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  3407
warnAboutNonLowercaseLocalVariableNames:aBoolean
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  3408
    warnAboutNonLowercaseLocalVariableNames := aBoolean.
1740
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  3409
!
52588058c368 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1721
diff changeset
  3410
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3411
warnAboutPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3412
    ^ warnAboutPeriodInSymbol
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3413
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3414
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3415
warnAboutPeriodInSymbol:aBoolean
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3416
    warnAboutPeriodInSymbol := aBoolean.
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3417
!
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3418
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3419
warnAboutPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3420
    ^ warnAboutPossibleSTCCompilationProblems
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3421
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3422
    "Created: / 16-11-2006 / 14:24:38 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3423
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3424
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3425
warnAboutPossibleSTCCompilationProblems:aBoolean
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3426
    warnAboutPossibleSTCCompilationProblems := aBoolean.
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3427
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3428
    "Created: / 16-11-2006 / 14:24:40 / cg"
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3429
!
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3430
2121
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3431
warnAboutPossiblyUnimplementedSelectors
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3432
    ^ warnAboutPossiblyUnimplementedSelectors
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3433
!
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3434
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3435
warnAboutPossiblyUnimplementedSelectors:aBoolean
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3436
    warnAboutPossiblyUnimplementedSelectors := aBoolean.
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3437
!
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3438
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3439
warnAboutPossiblyUninitializedLocals
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3440
    ^ warnAboutPossiblyUninitializedLocals
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3441
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3442
    "Created: / 23-04-2019 / 23:09:55 / Claus Gittinger"
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3443
!
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3444
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3445
warnAboutPossiblyUninitializedLocals:aBoolean
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3446
    warnAboutPossiblyUninitializedLocals := aBoolean.
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3447
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3448
    "Created: / 23-04-2019 / 23:10:01 / Claus Gittinger"
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3449
!
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3450
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3451
warnAboutReferenceToPrivateClass
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  3452
    "controls generation of warning messages when a private class is referenced"
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3453
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3454
    ^ warnAboutReferenceToPrivateClass
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3455
!
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3456
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3457
warnAboutReferenceToPrivateClass:aBoolean
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  3458
    "controls generation of warning messages when a private class is referenced"
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3459
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3460
    warnAboutReferenceToPrivateClass := aBoolean
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3461
!
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3462
2079
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3463
warnAboutShortLocalVariableNames
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3464
    ^ warnAboutShortLocalVariableNames
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3465
!
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3466
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3467
warnAboutShortLocalVariableNames:aBoolean
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3468
    warnAboutShortLocalVariableNames := aBoolean.
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3469
!
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3470
2738
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3471
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant
2739
Claus Gittinger <cg@exept.de>
parents: 2738
diff changeset
  3472
    ^ warnAboutUnknownCharacterEscapesInJavaScriptStringConstant ? false
2738
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3473
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3474
    "Created: / 04-10-2011 / 19:51:19 / cg"
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3475
!
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3476
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3477
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant:aBoolean
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3478
    warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := aBoolean.
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3479
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3480
    "Created: / 04-10-2011 / 19:51:27 / cg"
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3481
!
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3482
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3483
warnAboutVariableNameConventions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3484
    ^ warnAboutVariableNameConventions
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3485
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3486
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3487
warnAboutVariableNameConventions:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3488
    warnAboutVariableNameConventions := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3489
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3490
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3491
warnAboutWrongVariableNames
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3492
    ^ warnAboutWrongVariableNames
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3493
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3494
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3495
warnAboutWrongVariableNames:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3496
    warnAboutWrongVariableNames := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3497
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3498
4437
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3499
warnAssignmentToBlockArgument
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3500
    ^ warnAssignmentToBlockArgument
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3501
!
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3502
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3503
warnAssignmentToBlockArgument:aBoolean
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3504
    warnAssignmentToBlockArgument := aBoolean.
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3505
!
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3506
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3507
warnAssignmentToMethodArgument
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3508
    ^ warnAssignmentToMethodArgument
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3509
!
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3510
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3511
warnAssignmentToMethodArgument:aBoolean
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3512
    warnAssignmentToMethodArgument := aBoolean.
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3513
!
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3514
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3515
warnAssignmentToPoolVariable
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3516
    ^ warnAssignmentToPoolVariable
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3517
!
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3518
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3519
warnAssignmentToPoolVariable:aBoolean
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3520
    warnAssignmentToPoolVariable := aBoolean.
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3521
!
5155327c7c91 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4436
diff changeset
  3522
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3523
warnCommonMistakes
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3524
    ^ warnCommonMistakes
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3525
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3526
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3527
warnCommonMistakes:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3528
    warnCommonMistakes := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3529
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3530
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3531
warnDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3532
    ^ warnDollarInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3533
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3534
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3535
warnDollarInIdentifier:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3536
    warnDollarInIdentifier := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3537
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3538
1638
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3539
warnHiddenVariables
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3540
    ^ warnHiddenVariables
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3541
!
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3542
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3543
warnHiddenVariables:aBoolean
2465
76964184a7f8 comment
Claus Gittinger <cg@exept.de>
parents: 2411
diff changeset
  3544
    "controls generation of warning messages about hiding variables by locals"
76964184a7f8 comment
Claus Gittinger <cg@exept.de>
parents: 2411
diff changeset
  3545
1638
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3546
    warnHiddenVariables := aBoolean.
2465
76964184a7f8 comment
Claus Gittinger <cg@exept.de>
parents: 2411
diff changeset
  3547
76964184a7f8 comment
Claus Gittinger <cg@exept.de>
parents: 2411
diff changeset
  3548
    "Modified: / 30-11-2010 / 15:00:55 / cg"
1638
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3549
!
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3550
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3551
warnInconsistentReturnValues
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3552
    ^ warnInconsistentReturnValues
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3553
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3554
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3555
warnInconsistentReturnValues:aBoolean
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3556
    warnInconsistentReturnValues := aBoolean.
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3557
!
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3558
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3559
warnOldStyleAssignment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3560
    ^ warnOldStyleAssignment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3561
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3562
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3563
warnOldStyleAssignment:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3564
    warnOldStyleAssignment := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3565
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3566
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3567
warnParagraphInIdentifier
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3568
    ^ warnParagraphInIdentifier
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3569
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3570
    "Created: / 16-11-2016 / 22:29:33 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3571
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3572
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3573
warnParagraphInIdentifier:aBoolean
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3574
    warnParagraphInIdentifier := aBoolean.
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3575
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3576
    "Created: / 16-11-2016 / 22:29:45 / cg"
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3577
!
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3578
2787
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3579
warnPlausibilityChecks
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3580
    "controls generation of warning messages about plausibility checks (possible precedence, etc.)"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3581
2789
3100327ad683 changed: #warnPlausibilityChecks
Claus Gittinger <cg@exept.de>
parents: 2787
diff changeset
  3582
    ^ warnPlausibilityChecks ? true
2787
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3583
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3584
    "Created: / 19-01-2012 / 10:38:54 / cg"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3585
!
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3586
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3587
warnPlausibilityChecks:aBoolean
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3588
    "controls generation of warning messages about plausibility checks (possible precedence, etc.)"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3589
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3590
    warnPlausibilityChecks := aBoolean
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3591
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3592
    "Created: / 19-01-2012 / 10:39:02 / cg"
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3593
!
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3594
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3595
warnPossibleIncompatibilities
2057
724cca1f07e2 comment
Claus Gittinger <cg@exept.de>
parents: 2011
diff changeset
  3596
    "holds true, if possible incompatibilities (with other ST systems)
724cca1f07e2 comment
Claus Gittinger <cg@exept.de>
parents: 2011
diff changeset
  3597
     are to be warned about"
724cca1f07e2 comment
Claus Gittinger <cg@exept.de>
parents: 2011
diff changeset
  3598
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3599
    ^ warnPossibleIncompatibilities
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3600
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3601
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3602
warnPossibleIncompatibilities:aBoolean
2057
724cca1f07e2 comment
Claus Gittinger <cg@exept.de>
parents: 2011
diff changeset
  3603
    "holds true, if possible incompatibilities (with other ST systems)
724cca1f07e2 comment
Claus Gittinger <cg@exept.de>
parents: 2011
diff changeset
  3604
     are to be warned about"
724cca1f07e2 comment
Claus Gittinger <cg@exept.de>
parents: 2011
diff changeset
  3605
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3606
    warnPossibleIncompatibilities := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3607
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3608
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3609
warnST80Directives
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3610
    ^ warnST80Directives
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3611
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3612
2476
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3613
warnST80Directives:aBoolean
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3614
    warnST80Directives := aBoolean.
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3615
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3616
    "Modified: / 30-01-2011 / 13:01:06 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3617
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3618
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3619
warnSTXHereExtensionUsed
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3620
    ^ warnSTXHereExtensionUsed
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3621
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3622
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3623
warnSTXHereExtensionUsed:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3624
    warnSTXHereExtensionUsed := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3625
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3626
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3627
warnSTXNameSpaceUse
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3628
    ^ warnSTXNameSpaceUse
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3629
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3630
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3631
warnSTXNameSpaceUse:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3632
    warnSTXNameSpaceUse := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3633
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3635
warnSTXSpecialComment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3636
    ^ warnSTXSpecialComment
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3637
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3638
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3639
warnSTXSpecialComment:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3640
    warnSTXSpecialComment := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3641
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3642
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3643
warnUndeclared
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3644
    ^ warnUndeclared
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3645
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3646
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3647
warnUndeclared:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3648
    warnUndeclared := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3649
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3650
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3651
warnUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3652
    ^ warnUnderscoreInIdentifier
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3653
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3654
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3655
warnUnderscoreInIdentifier:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3656
    warnUnderscoreInIdentifier := aBoolean.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3657
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3658
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3659
warnUnusedVars
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3660
    ^ warnUnusedVars
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3661
!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3662
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3663
warnUnusedVars:aBoolean
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3664
    warnUnusedVars := aBoolean.
1662
3dda95b11eb9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1660
diff changeset
  3665
!
3dda95b11eb9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1660
diff changeset
  3666
3dda95b11eb9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1660
diff changeset
  3667
warnings
2477
f3c17d1753bb changed: #warnings
Claus Gittinger <cg@exept.de>
parents: 2476
diff changeset
  3668
    ^ warnings ? true
f3c17d1753bb changed: #warnings
Claus Gittinger <cg@exept.de>
parents: 2476
diff changeset
  3669
f3c17d1753bb changed: #warnings
Claus Gittinger <cg@exept.de>
parents: 2476
diff changeset
  3670
    "Modified: / 30-01-2011 / 13:05:48 / cg"
1662
3dda95b11eb9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1660
diff changeset
  3671
!
3dda95b11eb9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1660
diff changeset
  3672
2476
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3673
warnings:aBoolean
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3674
    warnings := aBoolean.
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3675
61a1c160bf69 changed:
Claus Gittinger <cg@exept.de>
parents: 2465
diff changeset
  3676
    "Modified: / 30-01-2011 / 13:00:51 / cg"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3677
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3678
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3679
!ParserFlags methodsFor:'initialization'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3680
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3681
initialize
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  3682
    "each instance is initially setup from the classes global defaults.
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  3683
     (but can be changed as required for an individual compilation run"
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  3684
4421
3e423ef3465e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4413
diff changeset
  3685
    singlePrecisionFloatF := SinglePrecisionFloatF.
3e423ef3465e #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4413
diff changeset
  3686
    
1662
3dda95b11eb9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1660
diff changeset
  3687
    warnings := Warnings.
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3688
    warnUndeclared := WarnUndeclared.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3689
    warnUnusedVars := WarnUnusedVars.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3690
    warnST80Directives := WarnST80Directives.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3691
    warnSTXSpecialComment := WarnSTXSpecials.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3692
    warnSTXNameSpaceUse := WarnSTXSpecials.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3693
    warnSTXHereExtensionUsed := WarnSTXSpecials.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3694
    warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3695
    warnDollarInIdentifier := WarnDollarInIdentifier.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3696
    warnParagraphInIdentifier := WarnParagraphInIdentifier.
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3697
    warnOldStyleAssignment := WarnOldStyleAssignment.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3698
    warnCommonMistakes := WarnCommonMistakes.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3699
    warnPossibleIncompatibilities := WarnPossibleIncompatibilities.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3700
    warnAboutVariableNameConventions := WarnAboutVariableNameConventions.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3701
    warnAboutWrongVariableNames := WarnAboutWrongVariableNames.
1652
293e3bc18ae2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1638
diff changeset
  3702
    warnAboutBadComments := WarnAboutBadComments.
2073
efd507565894 +warnAboutReferenceToPrivateClass
Claus Gittinger <cg@exept.de>
parents: 2061
diff changeset
  3703
    warnAboutReferenceToPrivateClass := WarnAboutReferenceToPrivateClass.
4406
03f5935bf045 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4346
diff changeset
  3704
    warnAboutPossiblyUninitializedLocals := WarnAboutPossiblyUninitializedLocals.
1638
d6c83055d28d warn about hidden variables
Claus Gittinger <cg@exept.de>
parents: 1634
diff changeset
  3705
    warnHiddenVariables := WarnHiddenVariables.
1682
f93ffa268e04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1677
diff changeset
  3706
    warnInconsistentReturnValues := WarnInconsistentReturnValues.
1811
408c68643f04 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1773
diff changeset
  3707
    warnAboutNonLowercaseLocalVariableNames := WarnAboutNonLowercaseLocalVariableNames.
2079
0625ff661e53 +warnAboutShortVariableNames
Claus Gittinger <cg@exept.de>
parents: 2073
diff changeset
  3708
    warnAboutShortLocalVariableNames := WarnAboutShortLocalVariableNames.
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3709
    warnAboutPossibleSTCCompilationProblems := WarnAboutPossibleSTCCompilationProblems.
2121
69bb3adc78b2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2083
diff changeset
  3710
    warnAboutPossiblyUnimplementedSelectors := WarnAboutPossiblyUnimplementedSelectors.
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3711
    warnAboutPeriodInSymbol := WarnAboutPeriodInSymbol.
2738
bebdef2de2bc class definition
Claus Gittinger <cg@exept.de>
parents: 2702
diff changeset
  3712
    warnAboutUnknownCharacterEscapesInJavaScriptStringConstant := WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant.
2787
Claus Gittinger <cg@exept.de>
parents: 2747
diff changeset
  3713
    warnPlausibilityChecks := WarnPlausibilityChecks.
3220
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  3714
    warnAssignmentToBlockArgument := WarnAssignmentToBlockArgument.
1fcc025fc0dd class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3219
diff changeset
  3715
    warnAssignmentToMethodArgument := WarnAssignmentToMethodArgument.
3396
c84c3d5a9e50 stc path determination
Claus Gittinger <cg@exept.de>
parents: 3391
diff changeset
  3716
    warnAssignmentToPoolVariable := WarnAssignmentToPoolVariable.
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3717
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3718
    allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3719
    allowDollarInIdentifier := AllowDollarInIdentifier.
4041
5fdfb29a67e2 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4039
diff changeset
  3720
    allowParagraphInIdentifier := AllowParagraphInIdentifier.
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3721
    allowOldStyleAssignment := AllowOldStyleAssignment.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3722
    allowSqueakExtensions := AllowSqueakExtensions.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3723
    allowDolphinExtensions := AllowDolphinExtensions.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3724
    allowLiteralNameSpaceSymbols := AllowLiteralNameSpaceSymbols.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3725
    allowExtendedBinarySelectors := AllowExtendedBinarySelectors.
2306
9fc61be5ae18 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2219
diff changeset
  3726
    allowCaretAsBinop := AllowCaretAsBinop.
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3727
    allowFunctionCallSyntaxForBlockEvaluation := AllowFunctionCallSyntaxForBlockEvaluation.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3728
    allowLocalVariableDeclarationWithInitializerExpression := AllowLocalVariableDeclarationWithInitializerExpression.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3729
    allowDomainVariables := AllowDomainVariables.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3730
    allowArrayIndexSyntaxExtension := AllowArrayIndexSyntaxExtension.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3731
    allowReservedWordsAsSelectors := AllowReservedWordsAsSelectors.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3732
    allowVariableReferences := AllowVariableReferences.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3733
    allowLazyValueExtension := AllowLazyValueExtension.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3734
    allowFixedPointLiterals := AllowFixedPointLiterals.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3735
    allowExtendedSTXSyntax := AllowExtendedSTXSyntax.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3736
    allowQualifiedNames := AllowQualifiedNames.
1655
e38e77f7d6d0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1652
diff changeset
  3737
    allowVisualAgeESSymbolLiterals := AllowVisualAgeESSymbolLiterals.
1668
e3793a8fd815 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1665
diff changeset
  3738
    allowExtensionsToPrivateClasses := AllowExtensionsToPrivateClasses.
1689
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3739
    allowVisualAgePrimitives := AllowVisualAgePrimitives.
bb1dea093526 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1682
diff changeset
  3740
    allowSqueakPrimitives := AllowSqueakPrimitives.
1700
77551e0e8290 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1689
diff changeset
  3741
    allowSTVPrimitives := AllowSTVPrimitives.
1702
e69b1ee7a17a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1701
diff changeset
  3742
    allowSTVExtensions := AllowSTVExtensions.
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  3743
    allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier.
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  3744
    allowGreekCharactersInIdentifier := AllowGreekCharactersInIdentifier.
1706
685cea395a8c more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1704
diff changeset
  3745
    allowHashAsBinarySelector := AllowHashAsBinarySelector.
1708
eb71a302895e more support for filein of ST/V code
Claus Gittinger <cg@exept.de>
parents: 1706
diff changeset
  3746
    allowSTXEOLComments := AllowSTXEOLComments.
2984
113ae0f09efa class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 2965
diff changeset
  3747
    allowSTXDelimiterComments := AllowSTXDelimiterComments.
3947
ba8f13700225 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 3946
diff changeset
  3748
    allowSTXExtendedArrayLiterals := AllowSTXExtendedArrayLiterals.
1773
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3749
    allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations.
1947
a5429732842a warn/allow stc-uncompilable code.
Claus Gittinger <cg@exept.de>
parents: 1940
diff changeset
  3750
    allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems.
1950
acec00884e5a empty statements
Claus Gittinger <cg@exept.de>
parents: 1947
diff changeset
  3751
    allowEmptyStatements := AllowEmptyStatements.
2179
5ccb29e1233a allowPeriodInSymbol - to read old st80/squeak code
Claus Gittinger <cg@exept.de>
parents: 2145
diff changeset
  3752
    allowPeriodInSymbol := AllowPeriodInSymbol.
4301
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3753
    allowPeriodAsNameSpaceSeparator := AllowPeriodAsNameSpaceSeparator.
8f50482edeb1 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4279
diff changeset
  3754
    
2311
bb9ec555aa76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2310
diff changeset
  3755
    "/ these are only supported in the new compiler
4478
ce41aebbe8e2 #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 4476
diff changeset
  3756
    allowCIntegers := AllowCIntegers.
4333
06e11aae91bd #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 4302
diff changeset
  3757
    allowCStrings := AllowCStrings.
4412
94a5baff5885 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4406
diff changeset
  3758
    allowEStrings := AllowEStrings.
4430
25c8c1a7a28b #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4428
diff changeset
  3759
    allowRStrings := AllowRStrings.
2307
5284fcab4bb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
  3760
    allowUnicodeStrings := AllowUnicodeStrings.
2310
a508ea813668 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2308
diff changeset
  3761
    allowUnicodeCharacters := AllowUnicodeCharacters.
2311
bb9ec555aa76 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2310
diff changeset
  3762
    allowCharacterEscapes := AllowCharacterEscapes.
2313
dbf3d342794a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2312
diff changeset
  3763
    allowStringEscapes := AllowStringEscapes.
2685
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  3764
    allowAssignmentToBlockArgument := AllowAssignmentToBlockArgument.
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  3765
    allowAssignmentToMethodArgument := AllowAssignmentToMethodArgument.
abdbb04054c9 class definition
Claus Gittinger <cg@exept.de>
parents: 2666
diff changeset
  3766
    allowAssignmentToPoolVariable := AllowAssignmentToPoolVariable.
4085
37418a44b701 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4051
diff changeset
  3767
    allowSignedByteArrayElements := AllowSignedByteArrayElements.
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3768
    allowSymbolsStartingWithDigit := AllowSymbolsStartingWithDigit.
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  3769
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  3770
    allowJavaScriptConst := AllowJavaScriptConst.              
4149
acf5605cc099 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4089
diff changeset
  3771
    
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3772
    arraysAreImmutable := ArraysAreImmutable ? true.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3773
    stringsAreImmutable := StringsAreImmutable ? true.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3774
    implicitSelfSends := ImplicitSelfSends ? false.
2929
155a5d81e9e1 changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 2927
diff changeset
  3775
    lineNumberInfo := LineNumberInfo ? false.
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3776
1658
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3777
    stcKeepCIntermediate := STCKeepCIntermediate.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3778
    stcKeepOIntermediate := STCKeepOIntermediate.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3779
    stcKeepSTIntermediate := STCKeepSTIntermediate.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3780
    stcModulePath := STCModulePath.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3781
    stcCompilation := STCCompilation.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3782
    stcCompilationIncludes := STCCompilationIncludes.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3783
    stcCompilationDefines := STCCompilationDefines.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3784
    stcCompilationOptions := STCCompilationOptions.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3785
    stcPath := STCPath.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3786
    ccCompilationOptions := CCCompilationOptions.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3787
    ccPath := CCPath.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3788
    linkArgs := LinkArgs.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3789
    linkCommand := LinkCommand.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3790
    libPath := LibPath.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3791
    searchedLibraries := SearchedLibraries.
244fc639dba3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1655
diff changeset
  3792
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3793
    "
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3794
     ParserFlags initialize.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3795
     self new inspect.
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3796
    "
1773
4790e621ee51 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1754
diff changeset
  3797
4185
e178b64ce95d #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4179
diff changeset
  3798
    "Modified: / 08-08-2017 / 23:50:01 / cg"
4436
2183c928b524 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 4430
diff changeset
  3799
    "Modified: / 08-06-2019 / 14:53:04 / Claus Gittinger"
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3800
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3801
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3802
!ParserFlags class methodsFor:'documentation'!
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3803
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3804
version
3653
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
  3805
    ^ '$Header$'
2218
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  3806
!
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  3807
51ac45ab36a2 changed: #allowExtendedBinarySelectors
Claus Gittinger <cg@exept.de>
parents: 2179
diff changeset
  3808
version_CVS
3653
08ddf71e42b2 class: ParserFlags
Claus Gittinger <cg@exept.de>
parents: 3576
diff changeset
  3809
    ^ '$Header$'
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3810
! !
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3811
3009
4dea425c9718 flag settings for 64bit mingw
Claus Gittinger <cg@exept.de>
parents: 2984
diff changeset
  3812
1634
c0e48dbac035 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  3813
ParserFlags initialize!