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