squeak_petitparser.st
changeset 0 739fe9b7253e
child 2 acb3822c73db
equal deleted inserted replaced
-1:000000000000 0:739fe9b7253e
       
     1 "{ Package: 'squeak:petitparser' }"
       
     2 
       
     3 LibraryDefinition subclass:#squeak_petitparser
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'* Projects & Packages *'
       
     8 !
       
     9 
       
    10 
       
    11 !squeak_petitparser class methodsFor:'accessing'!
       
    12 
       
    13 monticelloPackageName
       
    14     "hook for packages which have been loaded from monticello"
       
    15 
       
    16     ^ 'PetitParser'
       
    17 
       
    18     "Created: / 17-12-2010 / 19:44:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    19 ! !
       
    20 
       
    21 !squeak_petitparser class methodsFor:'description'!
       
    22 
       
    23 excludedFromPreRequisites
       
    24     "list all packages which should be ignored in the automatic
       
    25      preRequisites scan. See #preRequisites for more."
       
    26 
       
    27     ^ #(
       
    28     )
       
    29 !
       
    30 
       
    31 preRequisites
       
    32     "list all required packages.
       
    33      This list can be maintained manually or (better) generated and
       
    34      updated by scanning the superclass hierarchies and looking for
       
    35      global variable accesses. (the browser has a menu function for that)
       
    36      Howevery, often too much is found, and you may want to explicitely
       
    37      exclude individual packages in the #excludedFromPrerequisites method."
       
    38 
       
    39     ^ #(
       
    40         #'stx:goodies/sunit'    "TestCase - superclass of PPTokenTest "
       
    41         #'stx:libbasic'    "Object - superclass of PPFailure "
       
    42         #'stx:libbasic2'    "Text"
       
    43     )
       
    44 ! !
       
    45 
       
    46 !squeak_petitparser class methodsFor:'description - actions'!
       
    47 
       
    48 postLoadAction
       
    49 
       
    50     self classes do: [:cls|cls isLoaded ifFalse:[cls autoload]]
       
    51 
       
    52     "Created: / 17-12-2010 / 19:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    53 ! !
       
    54 
       
    55 !squeak_petitparser class methodsFor:'description - contents'!
       
    56 
       
    57 classNamesAndAttributes
       
    58     "lists the classes which are to be included in the project.
       
    59      Each entry in the list may be: a single class-name (symbol),
       
    60      or an array-literal consisting of class name and attributes.
       
    61      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
       
    62 
       
    63     ^ #(
       
    64         "<className> or (<className> attributes...) in load order"
       
    65         (PPAbstractParseTest autoload)
       
    66         PPCharSetPredicate
       
    67         PPFailure
       
    68         PPMemento
       
    69         PPParser
       
    70         (PPParserResource autoload)
       
    71         PPStream
       
    72         PPToken
       
    73         #'squeak_petitparser'
       
    74         (PPComposedTest autoload)
       
    75         (PPCompositeParserTest autoload)
       
    76         PPDelegateParser
       
    77         PPEpsilonParser
       
    78         (PPExtensionTest autoload)
       
    79         PPFailingParser
       
    80         PPListParser
       
    81         PPLiteralParser
       
    82         (PPMappingTest autoload)
       
    83         (PPObjectTest autoload)
       
    84         (PPParserTest autoload)
       
    85         PPPluggableParser
       
    86         PPPredicateParser
       
    87         (PPPredicateTest autoload)
       
    88         (PPScriptingTest autoload)
       
    89         (PPTokenTest autoload)
       
    90         PPUnresolvedParser
       
    91         PPActionParser
       
    92         PPAndParser
       
    93         (PPArithmeticParserTest autoload)
       
    94         PPChoiceParser
       
    95         PPCompositeParser
       
    96         PPEndOfInputParser
       
    97         PPExpressionParser
       
    98         PPFlattenParser
       
    99         (PPLambdaParserTest autoload)
       
   100         PPLiteralObjectParser
       
   101         PPLiteralSequenceParser
       
   102         PPMemoizedParser
       
   103         PPNotParser
       
   104         PPOptionalParser
       
   105         PPPredicateObjectParser
       
   106         PPPredicateSequenceParser
       
   107         PPRepeatingParser
       
   108         PPSequenceParser
       
   109         PPTrimmingParser
       
   110         PPArithmeticParser
       
   111         (PPExpressionParserTest autoload)
       
   112         PPLambdaParser
       
   113         PPTokenParser
       
   114         PPWrappingParser
       
   115     )
       
   116 !
       
   117 
       
   118 extensionMethodNames
       
   119     "lists the extension methods which are to be included in the project.
       
   120      Entries are 2-element array literals, consisting of class-name and selector."
       
   121 
       
   122     ^ #(
       
   123         Block asParser
       
   124         BlockContext asParser
       
   125         Character #'-'
       
   126         Character asParser
       
   127         Character ppMinus:
       
   128         Object asParser
       
   129         Object isPetitFailure
       
   130         Object isPetitParser
       
   131         PositionableStream asPetitStream
       
   132         SequenceableCollection asParser
       
   133         SequenceableCollection asPetitStream
       
   134         Set asParser
       
   135         Stream asPetitStream
       
   136         String asParser
       
   137         Symbol asParser
       
   138         Symbol value:
       
   139         Text asPetitStream
       
   140         UndefinedObject asParser
       
   141     )
       
   142 ! !
       
   143 
       
   144 !squeak_petitparser class methodsFor:'description - project information'!
       
   145 
       
   146 applicationIconFileName
       
   147     "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
       
   148 
       
   149     ^ nil
       
   150     "/ ^ self applicationName
       
   151 !
       
   152 
       
   153 companyName
       
   154     "Return a companyname which will appear in <lib>.rc"
       
   155 
       
   156     ^ 'Lukas Renggli & SWING Research Group'
       
   157 
       
   158     "Modified: / 17-12-2010 / 19:43:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   159 !
       
   160 
       
   161 description
       
   162     "Return a description string which will appear in vc.def / bc.def"
       
   163 
       
   164     ^ 'Scanner-less parser & parser combinator library'
       
   165 
       
   166     "Modified: / 17-12-2010 / 19:43:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   167 !
       
   168 
       
   169 legalCopyright
       
   170     "Return a copyright string which will appear in <lib>.rc"
       
   171 
       
   172     ^ '(C) Lukas Renggli'
       
   173 
       
   174     "Modified: / 17-12-2010 / 19:43:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   175 !
       
   176 
       
   177 productName
       
   178     "Return a product name which will appear in <lib>.rc"
       
   179 
       
   180     ^ 'Petit Parser'
       
   181 
       
   182     "Modified: / 17-12-2010 / 19:43:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   183 ! !
       
   184 
       
   185 !squeak_petitparser class methodsFor:'description - svn'!
       
   186 
       
   187 svnRevisionNr
       
   188     "Return a SVN revision number of myself.
       
   189      This number is updated after a commit"
       
   190 
       
   191     ^ "$SVN-Revision:"'5M'"$"
       
   192 ! !
       
   193 
       
   194 !squeak_petitparser class methodsFor:'documentation'!
       
   195 
       
   196 version_SVN
       
   197     ^ '$Id: squeak_petitparser.st,v 1.1 2011-08-18 18:56:17 cg Exp $'
       
   198 ! !