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