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