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