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