ParserFlags.st
changeset 2984 113ae0f09efa
parent 2965 6326f72dad12
child 3009 4dea425c9718
equal deleted inserted replaced
2983:3d721bb07c48 2984:113ae0f09efa
    49 		linkArgs linkSharedArgs linkCommand libPath searchedLibraries
    49 		linkArgs linkSharedArgs linkCommand libPath searchedLibraries
    50 		warnAboutPeriodInSymbol allowPeriodInSymbol allowCaretAsBinop
    50 		warnAboutPeriodInSymbol allowPeriodInSymbol allowCaretAsBinop
    51 		allowUnicodeStrings allowUnicodeCharacters allowCharacterEscapes
    51 		allowUnicodeStrings allowUnicodeCharacters allowCharacterEscapes
    52 		allowStringEscapes allowAssignmentToBlockArgument
    52 		allowStringEscapes allowAssignmentToBlockArgument
    53 		allowAssignmentToMethodArgument allowAssignmentToPoolVariable
    53 		allowAssignmentToMethodArgument allowAssignmentToPoolVariable
    54 		lineNumberInfo'
    54 		lineNumberInfo allowSTXDelimiterComments'
    55 	classVariableNames:'WarnST80Directives WarnUnusedVars WarnUndeclared
    55 	classVariableNames:'WarnST80Directives WarnUnusedVars WarnUndeclared
    56 		WarnAboutWrongVariableNames WarnAboutBadComments
    56 		WarnAboutWrongVariableNames WarnAboutBadComments
    57 		WarnAboutVariableNameConventions WarnSTXSpecials
    57 		WarnAboutVariableNameConventions WarnSTXSpecials
    58 		WarnOldStyleAssignment WarnUnderscoreInIdentifier
    58 		WarnOldStyleAssignment WarnUnderscoreInIdentifier
    59 		WarnCommonMistakes WarnPossibleIncompatibilities
    59 		WarnCommonMistakes WarnPossibleIncompatibilities
    88 		AllowUnicodeStrings AllowUnicodeCharacters AllowCharacterEscapes
    88 		AllowUnicodeStrings AllowUnicodeCharacters AllowCharacterEscapes
    89 		AllowStringEscapes AllowAssignmentToBlockArgument
    89 		AllowStringEscapes AllowAssignmentToBlockArgument
    90 		AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable
    90 		AllowAssignmentToMethodArgument AllowAssignmentToPoolVariable
    91 		LineNumberInfo LibDirectory VCTop SDKTop BCCTop ForcedCompiler
    91 		LineNumberInfo LibDirectory VCTop SDKTop BCCTop ForcedCompiler
    92 		DefineForBorlandC DefineForVisualC DefineForMSVER DefineForMSC
    92 		DefineForBorlandC DefineForVisualC DefineForMSVER DefineForMSC
    93 		DefineForGNUC PerMethodFlags'
    93 		DefineForGNUC PerMethodFlags AllowSTXDelimiterComments'
    94 	poolDictionaries:''
    94 	poolDictionaries:''
    95 	category:'System-Compiler'
    95 	category:'System-Compiler'
    96 !
    96 !
    97 
    97 
    98 !ParserFlags class methodsFor:'documentation'!
    98 !ParserFlags class methodsFor:'documentation'!
   930 
   930 
   931     AllowSTVPrimitives := aBoolean
   931     AllowSTVPrimitives := aBoolean
   932 
   932 
   933     "
   933     "
   934      ParserFlags allowSTVPrimitives:true
   934      ParserFlags allowSTVPrimitives:true
       
   935     "
       
   936 !
       
   937 
       
   938 allowSTXDelimiterComments
       
   939     ^ AllowSTXDelimiterComments
       
   940 !
       
   941 
       
   942 allowSTXDelimiterComments:aBoolean
       
   943     AllowSTXDelimiterComments := aBoolean.
       
   944 
       
   945     "
       
   946      self allowSTXDelimiterComments:true
       
   947      self allowSTXDelimiterComments:false
   935     "
   948     "
   936 !
   949 !
   937 
   950 
   938 allowSTXEOLComments
   951 allowSTXEOLComments
   939     ^ AllowSTXEOLComments
   952     ^ AllowSTXEOLComments
  1444     AllowSTVPrimitives := false.                "/ number-sign syntax
  1457     AllowSTVPrimitives := false.                "/ number-sign syntax
  1445     AllowSTVExtensions := false.
  1458     AllowSTVExtensions := false.
  1446     AllowNationalCharactersInIdentifier := false.
  1459     AllowNationalCharactersInIdentifier := false.
  1447     AllowHashAsBinarySelector := true.
  1460     AllowHashAsBinarySelector := true.
  1448     AllowSTXEOLComments := true.
  1461     AllowSTXEOLComments := true.
       
  1462     AllowSTXDelimiterComments := false.         "/ until stc and RBScanner support it also
  1449     AllowVisualWorksMethodAnnotations := false.
  1463     AllowVisualWorksMethodAnnotations := false.
  1450     AllowPossibleSTCCompilationProblems := true.
  1464     AllowPossibleSTCCompilationProblems := true.
  1451     AllowEmptyStatements := false.
  1465     AllowEmptyStatements := false.
  1452     AllowPeriodInSymbol := false.
  1466     AllowPeriodInSymbol := false.
  1453     "/ these are only used by the new compiler
  1467     "/ these are only used by the new compiler
  2013     "return true, if support for ST/V primitives is enabled."
  2027     "return true, if support for ST/V primitives is enabled."
  2014 
  2028 
  2015     ^ allowSTVPrimitives
  2029     ^ allowSTVPrimitives
  2016 !
  2030 !
  2017 
  2031 
       
  2032 allowSTXDelimiterComments
       
  2033     ^ allowSTXDelimiterComments
       
  2034 !
       
  2035 
       
  2036 allowSTXDelimiterComments:aBoolean
       
  2037     allowSTXDelimiterComments := aBoolean.
       
  2038 
       
  2039     "
       
  2040      ParserFlags allowSTXDelimiterComments:false
       
  2041      ParserFlags allowSTXDelimiterComments:true
       
  2042     "
       
  2043 !
       
  2044 
  2018 allowSTXEOLComments
  2045 allowSTXEOLComments
  2019     ^ allowSTXEOLComments
  2046     ^ allowSTXEOLComments
  2020 !
  2047 !
  2021 
  2048 
  2022 allowSTXEOLComments:aBoolean
  2049 allowSTXEOLComments:aBoolean
  2432     allowSTVPrimitives := AllowSTVPrimitives.
  2459     allowSTVPrimitives := AllowSTVPrimitives.
  2433     allowSTVExtensions := AllowSTVExtensions.
  2460     allowSTVExtensions := AllowSTVExtensions.
  2434     allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier.
  2461     allowNationalCharactersInIdentifier := AllowNationalCharactersInIdentifier.
  2435     allowHashAsBinarySelector := AllowHashAsBinarySelector.
  2462     allowHashAsBinarySelector := AllowHashAsBinarySelector.
  2436     allowSTXEOLComments := AllowSTXEOLComments.
  2463     allowSTXEOLComments := AllowSTXEOLComments.
       
  2464     allowSTXDelimiterComments := AllowSTXDelimiterComments.
  2437     allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations.
  2465     allowVisualWorksMethodAnnotations := AllowVisualWorksMethodAnnotations.
  2438     allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems.
  2466     allowPossibleSTCCompilationProblems := AllowPossibleSTCCompilationProblems.
  2439     allowEmptyStatements := AllowEmptyStatements.
  2467     allowEmptyStatements := AllowEmptyStatements.
  2440     allowPeriodInSymbol := AllowPeriodInSymbol.
  2468     allowPeriodInSymbol := AllowPeriodInSymbol.
  2441     "/ these are only supported in the new compiler
  2469     "/ these are only supported in the new compiler
  2477 ! !
  2505 ! !
  2478 
  2506 
  2479 !ParserFlags class methodsFor:'documentation'!
  2507 !ParserFlags class methodsFor:'documentation'!
  2480 
  2508 
  2481 version
  2509 version
  2482     ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.96 2012-10-31 16:33:14 cg Exp $'
  2510     ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.97 2012-11-13 13:03:33 cg Exp $'
  2483 !
  2511 !
  2484 
  2512 
  2485 version_CVS
  2513 version_CVS
  2486     ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.96 2012-10-31 16:33:14 cg Exp $'
  2514     ^ '$Header: /cvs/stx/stx/libcomp/ParserFlags.st,v 1.97 2012-11-13 13:03:33 cg Exp $'
  2487 ! !
  2515 ! !
  2488 
  2516 
  2489 ParserFlags initialize!
  2517 ParserFlags initialize!