--- a/ParserFlags.st Fri Nov 18 21:21:39 2016 +0000
+++ b/ParserFlags.st Mon Nov 28 17:14:44 2016 +0000
@@ -20,9 +20,9 @@
warnUnderscoreInIdentifier warnOldStyleAssignment
warnCommonMistakes warnSTXNameSpaceUse
warnPossibleIncompatibilities warnDollarInIdentifier
- warnHiddenVariables warnAboutVariableNameConventions
- warnAboutWrongVariableNames warnAboutBadComments
- warnInconsistentReturnValues
+ warnParagraphInIdentifier warnHiddenVariables
+ warnAboutVariableNameConventions warnAboutWrongVariableNames
+ warnAboutBadComments warnInconsistentReturnValues
warnAboutNonLowercaseLocalVariableNames
warnAboutPossibleSTCCompilationProblems
warnAboutReferenceToPrivateClass warnAboutShortLocalVariableNames
@@ -30,9 +30,10 @@
warnAboutUnknownCharacterEscapesInJavaScriptStringConstant
warnPlausibilityChecks allowLiteralNameSpaceSymbols
allowUnderscoreInIdentifier allowDollarInIdentifier
- allowOldStyleAssignment allowSqueakExtensions
- allowDolphinExtensions allowExtendedBinarySelectors
- allowQualifiedNames allowFunctionCallSyntaxForBlockEvaluation
+ allowParagraphInIdentifier allowOldStyleAssignment
+ allowSqueakExtensions allowDolphinExtensions
+ allowExtendedBinarySelectors allowQualifiedNames
+ allowFunctionCallSyntaxForBlockEvaluation
allowLocalVariableDeclarationWithInitializerExpression
allowDomainVariables allowArrayIndexSyntaxExtension
allowReservedWordsAsSelectors allowVariableReferences
@@ -56,48 +57,50 @@
lineNumberInfo allowSTXDelimiterComments
allowSTXExtendedArrayLiterals warnAssignmentToBlockArgument
warnAssignmentToMethodArgument warnAssignmentToPoolVariable'
- classVariableNames:'WarnST80Directives WarnUnusedVars WarnUndeclared
- WarnAboutWrongVariableNames WarnAboutBadComments
- WarnAboutVariableNameConventions WarnSTXSpecials
- WarnOldStyleAssignment WarnUnderscoreInIdentifier
- WarnCommonMistakes WarnPossibleIncompatibilities
- WarnDollarInIdentifier WarnHiddenVariables
- WarnAboutNonLowercaseLocalVariableNames
- WarnInconsistentReturnValues Warnings
- WarnAboutPossibleSTCCompilationProblems
- WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames
- WarnAboutPossiblyUnimplementedSelectors WarnAboutPeriodInSymbol
- WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant
- WarnPlausibilityChecks AllowUnderscoreInIdentifier
- AllowFunctionCallSyntaxForBlockEvaluation AllowLazyValueExtension
- AllowVariableReferences AllowReservedWordsAsSelectors
- AllowLocalVariableDeclarationWithInitializerExpression
- AllowArrayIndexSyntaxExtension AllowDomainVariables
- AllowDollarInIdentifier AllowSqueakExtensions AllowQualifiedNames
- AllowDolphinExtensions AllowOldStyleAssignment
+ classVariableNames:'AllowArrayIndexSyntaxExtension AllowAssignmentToBlockArgument
+ AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable
+ AllowCaretAsBinop AllowCharacterEscapes AllowDollarInIdentifier
+ AllowDolphinExtensions AllowDomainVariables AllowEmptyStatements
AllowExtendedBinarySelectors AllowExtendedSTXSyntax
- AllowFixedPointLiterals AllowLiteralNameSpaceSymbols
- AllowVisualAgeESSymbolLiterals AllowExtensionsToPrivateClasses
- AllowSqueakPrimitives AllowVisualAgePrimitives AllowSTVPrimitives
- AllowSTVExtensions AllowNationalCharactersInIdentifier
- AllowHashAsBinarySelector AllowSTXEOLComments
- AllowPossibleSTCCompilationProblems AllowEmptyStatements
- AllowVisualWorksMethodAnnotations ArraysAreImmutable
- AllowPeriodInSymbol StringsAreImmutable ImplicitSelfSends
- STCModulePath STCKeepCIntermediate STCKeepOIntermediate
- STCKeepSTIntermediate STCCompilation STCCompilationIncludes
- STCCompilationDefines STCCompilationOptions STCPath
- CCCompilationOptions CCPath LinkArgs LinkSharedArgs LinkCommand
- LibPath SearchedLibraries MakeCommand AllowCaretAsBinop
- AllowUnicodeStrings AllowUnicodeCharacters AllowCharacterEscapes
- AllowStringEscapes AllowAssignmentToBlockArgument
- AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable
- LineNumberInfo LibDirectory VCTop SDKTop BCCTop MingwTop
- ForcedCompiler DefineForBorlandC DefineForVisualC DefineForMSC
- DefineForGNUC PerMethodFlags AllowSTXDelimiterComments
- AllowSTXExtendedArrayLiterals DefineForMINGW32 DefineForMINGW64
- DefineForMINGW DefineForCLANG WarnAssignmentToBlockArgument
- WarnAssignmentToPoolVariable WarnAssignmentToMethodArgument'
+ AllowExtensionsToPrivateClasses AllowFixedPointLiterals
+ AllowFunctionCallSyntaxForBlockEvaluation
+ AllowHashAsBinarySelector AllowLazyValueExtension
+ AllowLiteralNameSpaceSymbols
+ AllowLocalVariableDeclarationWithInitializerExpression
+ AllowNationalCharactersInIdentifier AllowOldStyleAssignment
+ AllowParagraphInIdentifier AllowPeriodInSymbol
+ AllowPossibleSTCCompilationProblems AllowQualifiedNames
+ AllowReservedWordsAsSelectors AllowSTVExtensions
+ AllowSTVPrimitives AllowSTXDelimiterComments AllowSTXEOLComments
+ AllowSTXExtendedArrayLiterals AllowSqueakExtensions
+ AllowSqueakPrimitives AllowStringEscapes
+ AllowUnderscoreInIdentifier AllowUnicodeCharacters
+ AllowUnicodeStrings AllowVariableReferences
+ AllowVisualAgeESSymbolLiterals AllowVisualAgePrimitives
+ AllowVisualWorksMethodAnnotations ArraysAreImmutable BCCTop
+ CCCompilationOptions CCPath DefineForBorlandC DefineForCLANG
+ DefineForGNUC DefineForMINGW DefineForMINGW32 DefineForMINGW64
+ DefineForMSC DefineForVisualC ForcedCompiler ImplicitSelfSends
+ LibDirectory LibPath LineNumberInfo LinkArgs LinkCommand
+ LinkSharedArgs MakeCommand MingwTop PerMethodFlags SDKTop
+ STCCompilation STCCompilationDefines STCCompilationIncludes
+ STCCompilationOptions STCKeepCIntermediate STCKeepOIntermediate
+ STCKeepSTIntermediate STCModulePath STCPath SearchedLibraries
+ StringsAreImmutable VCTop WarnAboutBadComments
+ WarnAboutNonLowercaseLocalVariableNames WarnAboutPeriodInSymbol
+ WarnAboutPossibleSTCCompilationProblems
+ WarnAboutPossiblyUnimplementedSelectors
+ WarnAboutReferenceToPrivateClass WarnAboutShortLocalVariableNames
+ WarnAboutUnknownCharacterEscapesInJavaScriptStringConstant
+ WarnAboutVariableNameConventions WarnAboutWrongVariableNames
+ WarnAssignmentToBlockArgument WarnAssignmentToMethodArgument
+ WarnAssignmentToPoolVariable WarnCommonMistakes
+ WarnDollarInIdentifier WarnHiddenVariables
+ WarnInconsistentReturnValues WarnOldStyleAssignment
+ WarnParagraphInIdentifier WarnPlausibilityChecks
+ WarnPossibleIncompatibilities WarnST80Directives WarnSTXSpecials
+ WarnUndeclared WarnUnderscoreInIdentifier WarnUnusedVars Warnings
+ AutoDefineVariables'
poolDictionaries:''
category:'System-Compiler'
!
@@ -714,12 +717,13 @@
allowDollarInIdentifier
"return true, if $-characters are allowed in identifiers.
- Notice, that dollars are NEVER allowed as the first character in an identifier."
+ Notice, that dollars are NEVER allowed as the first character in an identifier
+ (because they are interpreted as character-constant then)."
^ AllowDollarInIdentifier
- "Created: 7.9.1997 / 01:32:18 / cg"
- "Modified: 7.9.1997 / 01:39:44 / cg"
+ "Created: / 07-09-1997 / 01:32:18 / cg"
+ "Modified (comment): / 16-11-2016 / 22:25:59 / cg"
!
allowDollarInIdentifier:aBoolean
@@ -727,16 +731,17 @@
Notice, that dollars are NEVER allowed as the first character in an identifier.
If turned off (the default), dollars are not allowed in identifiers,
but instead are scanned as character-constant prefix.
- If turned on, dollars are in identifiers are allowed, while extra
+ If turned on, dollars in identifiers are allowed, while extra
dollars are still scanned as constant character prefix.
If you have to fileIn old VW-Vsn2.x classes, turn this off
before filing them in; i.e.:
- Compiler allowDollarInIdentifiers:false"
+ Compiler allowDollarInIdentifiers:false
+ "
AllowDollarInIdentifier := aBoolean.
- "Created: 7.9.1997 / 01:34:49 / cg"
- "Modified: 7.9.1997 / 01:39:30 / cg"
+ "Created: / 07-09-1997 / 01:34:49 / cg"
+ "Modified (comment): / 16-11-2016 / 22:26:38 / cg"
!
allowDolphinExtensions
@@ -908,6 +913,22 @@
AllowOldStyleAssignment := aBoolean
!
+allowParagraphInIdentifier
+ "return true, if -characters are allowed in identifiers (treated as letter)"
+
+ ^ AllowParagraphInIdentifier
+
+ "Created: / 16-11-2016 / 22:24:32 / cg"
+!
+
+allowParagraphInIdentifier:aBoolean
+ "this allows turning on/off -characters in identifiers."
+
+ AllowParagraphInIdentifier := aBoolean.
+
+ "Created: / 16-11-2016 / 22:28:49 / cg"
+!
+
allowPeriodInSymbol
"return true, if periods are allowed in a symbol literal #foo.bar.
Needed to parse some old ST80/Squeak code"
@@ -1372,18 +1393,19 @@
warnDollarInIdentifier:aBoolean
"this allows turning on/off warnings about $-characters in identifiers.
You may find those warnings useful, to make certain that your code
- is portable to other smalltalk versions, which do not allow this
+ is portable to other Smalltalk versions, which do not allow this
(i.e. VW releases 2.x and maybe others).
Notice, that dollars are NEVER allowed as the first character in an identifier.
If you get bored by those warnings, turn them off by adding
a line as:
- ParserFlags warnDollarInIdentifier:false
+ ParserFlags warnDollarInIdentifier:false
in your 'private.rc' file"
WarnDollarInIdentifier := aBoolean
"Created: / 07-09-1997 / 01:37:42 / cg"
"Modified: / 05-09-2006 / 11:46:23 / cg"
+ "Modified (comment): / 16-11-2016 / 22:31:06 / cg"
!
warnHiddenVariables
@@ -1430,6 +1452,24 @@
"Modified: / 05-09-2006 / 11:46:17 / cg"
!
+warnParagraphInIdentifier
+ "return true, if -characters in identifiers are to be warned about"
+
+ ^ Warnings and:[WarnParagraphInIdentifier]
+
+ "Created: / 16-11-2016 / 22:30:01 / cg"
+!
+
+warnParagraphInIdentifier:aBoolean
+ "this allows turning on/off warnings about -characters in identifiers.
+ You may find those warnings useful, to make certain that your code
+ is portable to other Smalltalk versions, which do not allow this"
+
+ WarnParagraphInIdentifier := aBoolean
+
+ "Created: / 16-11-2016 / 22:30:45 / cg"
+!
+
warnPlausibilityChecks
"controls generation of warning messages about plausibility checks (possible precedence, etc.)"
@@ -1558,6 +1598,7 @@
WarnAboutBadComments := true.
WarnUnderscoreInIdentifier := false.
WarnDollarInIdentifier := true.
+ WarnParagraphInIdentifier := true.
WarnOldStyleAssignment := true.
WarnCommonMistakes := true.
WarnPossibleIncompatibilities := false.
@@ -1577,6 +1618,7 @@
AllowReservedWordsAsSelectors := false.
AllowUnderscoreInIdentifier := true.
+ AllowParagraphInIdentifier := false.
AllowDollarInIdentifier := false. "/ st80-vms dollars in identifiers
AllowOldStyleAssignment := true. "/ st80 underscore as assignment
AllowDolphinExtensions := false. "/ dolphin computed literal
@@ -1624,7 +1666,7 @@
"/ ArraysAreImmutable := true. "/ do not care for ST-80 compatibility
"/ StringsAreImmutable := true. "/ do not care for ST-80 compatibility
ImplicitSelfSends := false.
-
+
STCKeepCIntermediate := false.
STCKeepOIntermediate := false.
STCKeepSTIntermediate := false.
@@ -1676,7 +1718,7 @@
"
"Modified: / 09-08-2006 / 18:47:18 / fm"
- "Modified: / 31-01-2012 / 12:06:32 / cg"
+ "Modified: / 16-11-2016 / 22:32:03 / cg"
"Modified: / 06-01-2016 / 22:25:30 / jv"
!
@@ -1853,6 +1895,12 @@
ccCompilationOptions
^ ccCompilationOptions ? ''
+
+ "
+ self ccCompilationOptions
+ "
+
+ "Modified (comment): / 17-11-2016 / 15:40:29 / cg"
!
ccCompilationOptions:something
@@ -1861,6 +1909,12 @@
ccPath
^ ccPath
+
+ "
+ self ccPath
+ "
+
+ "Modified (comment): / 17-11-2016 / 15:40:40 / cg"
!
ccPath:something
@@ -1877,6 +1931,12 @@
libPath
^ libPath
+
+ "
+ self libPath
+ "
+
+ "Modified (comment): / 17-11-2016 / 15:40:52 / cg"
!
libPath:aString
@@ -1885,6 +1945,12 @@
linkArgs
^ linkArgs
+
+ "
+ self linkArgs
+ "
+
+ "Modified (comment): / 17-11-2016 / 15:41:03 / cg"
!
linkArgs:aString
@@ -1893,6 +1959,12 @@
linkCommand
^ linkCommand
+
+ "
+ self linkCommand
+ "
+
+ "Modified (comment): / 17-11-2016 / 15:41:16 / cg"
!
linkCommand:aString
@@ -1933,6 +2005,12 @@
stcCompilationIncludes
^ stcCompilationIncludes
+
+ "
+ self stcCompilationIncludes
+ "
+
+ "Modified (comment): / 17-11-2016 / 15:41:43 / cg"
!
stcCompilationIncludes:something
@@ -2169,6 +2247,18 @@
allowOldStyleAssignment := aBoolean
!
+allowParagraphInIdentifier
+ ^ allowParagraphInIdentifier
+
+ "Created: / 16-11-2016 / 22:29:06 / cg"
+!
+
+allowParagraphInIdentifier:aBoolean
+ allowParagraphInIdentifier := aBoolean.
+
+ "Created: / 16-11-2016 / 22:29:14 / cg"
+!
+
allowPeriodInSymbol
^ allowPeriodInSymbol
!
@@ -2534,6 +2624,18 @@
warnOldStyleAssignment := aBoolean.
!
+warnParagraphInIdentifier
+ ^ warnParagraphInIdentifier
+
+ "Created: / 16-11-2016 / 22:29:33 / cg"
+!
+
+warnParagraphInIdentifier:aBoolean
+ warnParagraphInIdentifier := aBoolean.
+
+ "Created: / 16-11-2016 / 22:29:45 / cg"
+!
+
warnPlausibilityChecks
"controls generation of warning messages about plausibility checks (possible precedence, etc.)"
@@ -2649,6 +2751,7 @@
warnSTXHereExtensionUsed := WarnSTXSpecials.
warnUnderscoreInIdentifier := WarnUnderscoreInIdentifier.
warnDollarInIdentifier := WarnDollarInIdentifier.
+ warnParagraphInIdentifier := WarnParagraphInIdentifier.
warnOldStyleAssignment := WarnOldStyleAssignment.
warnCommonMistakes := WarnCommonMistakes.
warnPossibleIncompatibilities := WarnPossibleIncompatibilities.
@@ -2671,6 +2774,7 @@
allowUnderscoreInIdentifier := AllowUnderscoreInIdentifier.
allowDollarInIdentifier := AllowDollarInIdentifier.
+ allowParagraphInIdentifier := AllowParagraphInIdentifier.
allowOldStyleAssignment := AllowOldStyleAssignment.
allowSqueakExtensions := AllowSqueakExtensions.
allowDolphinExtensions := AllowDolphinExtensions.
@@ -2737,7 +2841,7 @@
self new inspect.
"
- "Modified: / 26-09-2012 / 14:22:38 / cg"
+ "Modified: / 16-11-2016 / 22:32:37 / cg"
! !
!ParserFlags class methodsFor:'documentation'!