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