compiler/stx_goodies_petitparser_compiler.st
changeset 391 553a5456963b
child 392 9b297f0d949c
equal deleted inserted replaced
390:17ba167b8ee1 391:553a5456963b
       
     1 "{ Package: 'stx:goodies/petitparser/compiler' }"
       
     2 
       
     3 LibraryDefinition subclass:#stx_goodies_petitparser_compiler
       
     4 	instanceVariableNames:''
       
     5 	classVariableNames:''
       
     6 	poolDictionaries:''
       
     7 	category:'* Projects & Packages *'
       
     8 !
       
     9 
       
    10 
       
    11 !stx_goodies_petitparser_compiler class methodsFor:'accessing - monticello'!
       
    12 
       
    13 monticelloLastMergedVersionInfo
       
    14     "The last merged version is: "
       
    15 
       
    16     ^ '
       
    17     Name: PetitCompiler-JanKurs.41
       
    18     Author: JanKurs
       
    19     Time: 25-10-2014, 03:30:28 AM
       
    20     UUID: 105186d1-1187-4ca6-8d66-3d2d47def4d3             
       
    21     Repository: http://smalltalkhub.com/mc/JanKurs/PetitParser/main
       
    22 
       
    23     '
       
    24 
       
    25     "Created: / 03-10-2014 / 02:27:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    26     "Modified: / 26-10-2014 / 01:29:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    27 !
       
    28 
       
    29 monticelloName
       
    30     "Return name of the package for Monticello. This is used when package is exported"
       
    31 
       
    32     ^ 'PetitCompiler'
       
    33 
       
    34     "Created: / 03-10-2014 / 01:47:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    35     "Modified: / 26-10-2014 / 01:27:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    36 ! !
       
    37 
       
    38 !stx_goodies_petitparser_compiler class methodsFor:'description'!
       
    39 
       
    40 excludedFromPreRequisites
       
    41     "list packages which are to be explicitely excluded from the automatic constructed
       
    42      prerequisites list. If empty, everything that is found along the inheritance of any of
       
    43      my classes is considered to be a prerequisite package."
       
    44 
       
    45     ^ #(
       
    46     )
       
    47 !
       
    48 
       
    49 mandatoryPreRequisites
       
    50     "list packages which are mandatory as a prerequisite.
       
    51      This are packages containing superclasses of my classes and classes which
       
    52      are extended by myself.
       
    53      They are mandatory, because we need these packages as a prerequisite for loading and compiling.
       
    54      This method is generated automatically,
       
    55      by searching along the inheritance chain of all of my classes."
       
    56 
       
    57     ^ #(
       
    58         #'stx:goodies/petitparser'    "PPActionParser - extended"
       
    59         #'stx:goodies/petitparser/parsers/smalltalk'    "PPSmalltalkGrammar - extended"
       
    60         #'stx:libbasic'    "Character - extended"
       
    61     )
       
    62 !
       
    63 
       
    64 referencedPreRequisites
       
    65     "list packages which are a prerequisite, because they contain
       
    66      classes which are referenced by my classes.
       
    67      We do not need these packages as a prerequisite for loading or compiling.
       
    68      This method is generated automatically,
       
    69      by searching all classes (and their packages) which are referenced by my classes."
       
    70 
       
    71     ^ #(
       
    72         #'stx:libbasic2'    "Stack - referenced by PPCCompiler>>initialize"
       
    73     )
       
    74 !
       
    75 
       
    76 subProjects
       
    77     "list packages which are known as subprojects.
       
    78      The generated makefile will enter those and make there as well.
       
    79      However: they are not forced to be loaded when a package is loaded;
       
    80      for those, redefine requiredPrerequisites."
       
    81 
       
    82     ^ #(
       
    83     )
       
    84 ! !
       
    85 
       
    86 !stx_goodies_petitparser_compiler class methodsFor:'description - contents'!
       
    87 
       
    88 classNamesAndAttributes
       
    89     "lists the classes which are to be included in the project.
       
    90      Each entry in the list may be: a single class-name (symbol),
       
    91      or an array-literal consisting of class name and attributes.
       
    92      Attributes are: #autoload or #<os> where os is one of win32, unix,..."
       
    93 
       
    94     ^ #(
       
    95         "<className> or (<className> attributes...) in load order"
       
    96         PPCBridge
       
    97         PPCCompiledMethod
       
    98         PPCCompiler
       
    99         PPCContext
       
   100         PPCContextMemento
       
   101         PPCGuard
       
   102         PPCInlineStrategy
       
   103         PPCMethod
       
   104         PPCMethodStrategy
       
   105         PPCNode
       
   106         PPCOptimizationResult
       
   107         PPCompiledParser
       
   108         PetitBenchmark
       
   109         PetitBenchmarkSources
       
   110         #'stx_goodies_petitparser_compiler'
       
   111         PPCAbstractCharacterNode
       
   112         PPCAbstractLiteralNode
       
   113         PPCAbstractPredicateNode
       
   114         PPCAnyNode
       
   115         PPCDelegateNode
       
   116         PPCInlinedMethod
       
   117         PPCListNode
       
   118         PPCNilNode
       
   119         PPCPluggableNode
       
   120         PPCProfilingContext
       
   121         PPCStarAnyNode
       
   122         PPCStarCharSetPredicateNode
       
   123         PPCStarMessagePredicateNode
       
   124         PPCUnknownNode
       
   125         PPCAbstractActionNode
       
   126         PPCAndNode
       
   127         PPCCharSetPredicateNode
       
   128         PPCCharacterNode
       
   129         PPCChoiceNode
       
   130         PPCForwardNode
       
   131         PPCInlineAnyNode
       
   132         PPCInlineCharacterNode
       
   133         PPCInlineLiteralNode
       
   134         PPCInlineNilNode
       
   135         PPCInlineNotLiteralNode
       
   136         PPCInlinePluggableNode
       
   137         PPCLiteralNode
       
   138         PPCMessagePredicateNode
       
   139         PPCNegateNode
       
   140         PPCNotCharSetPredicateNode
       
   141         PPCNotLiteralNode
       
   142         PPCNotMessagePredicateNode
       
   143         PPCNotNode
       
   144         PPCOptionalNode
       
   145         PPCPlusNode
       
   146         PPCPredicateNode
       
   147         PPCSequenceNode
       
   148         PPCStarNode
       
   149         PPCTokenNode
       
   150         PPCTokenStarMessagePredicateNode
       
   151         PPCTrimNode
       
   152         PPCTrimmingTokenNode
       
   153         PPCActionNode
       
   154         PPCInlineCharSetPredicateNode
       
   155         PPCInlineMessagePredicateNode
       
   156         PPCInlineNotCharSetPredicateNode
       
   157         PPCInlineNotMessagePredicateNode
       
   158         PPCSymbolActionNode
       
   159         PPCTokenSequenceNode
       
   160     )
       
   161 !
       
   162 
       
   163 extensionMethodNames
       
   164     "list class/selector pairs of extensions.
       
   165      A correponding method with real names must be present in my concrete subclasses"
       
   166 
       
   167     ^ #(
       
   168         Character ppcPrintable
       
   169         Object isInlinedMethod
       
   170         PPActionParser asCompilerNode
       
   171         PPActionParser compileWith:
       
   172         PPAndParser asCompilerNode
       
   173         PPCharSetPredicate block
       
   174         PPCharSetPredicate classification
       
   175         PPCharSetPredicate equals:
       
   176         PPChoiceParser asCompilerNode
       
   177         PPChoiceParser compileWith:
       
   178         PPContext asCompiledParserContext
       
   179         PPContext comment
       
   180         PPContext comment:
       
   181         PPContext compiledParser
       
   182         PPContext compiledParser:
       
   183         PPContext lastTokenResult
       
   184         PPContext lwRemember
       
   185         PPContext lwRestore:
       
   186         PPContext matchToken:
       
   187         PPContext nextToken
       
   188         PPContext nextToken:
       
   189         PPContext peek:
       
   190         PPContext whitespace
       
   191         PPContext whitespace:
       
   192         PPDelegateParser asCompilerNode
       
   193         PPDelegateParser compileWith:
       
   194         PPEpsilonParser asCompilerNode
       
   195         PPEpsilonParser compileWith:
       
   196         PPFailure context:
       
   197         PPFailure message:
       
   198         PPFailure position:
       
   199         PPLiteralObjectParser asCompilerNode
       
   200         PPLiteralObjectParser compileWith:
       
   201         PPLiteralObjectParser firstCharParser
       
   202         PPLiteralParser id
       
   203         PPLiteralSequenceParser asCompilerNode
       
   204         PPLiteralSequenceParser compileWith:
       
   205         PPLiteralSequenceParser firstCharParser
       
   206         PPNotParser asCompilerNode
       
   207         PPNotParser compileWith:
       
   208         PPNotParser firstCharParser
       
   209         PPOptionalParser asCompilerNode
       
   210         PPOptionalParser compileWith:
       
   211         PPParser asCompilerNode
       
   212         PPParser asCompilerTree
       
   213         PPParser bridge
       
   214         PPParser cached
       
   215         PPParser compile
       
   216         PPParser compile:
       
   217         PPParser compile:andParse:
       
   218         PPParser compile:parameters:
       
   219         PPParser compileWith:
       
   220         PPParser compileWithParameters:
       
   221         PPParser first
       
   222         PPParser first:
       
   223         PPParser firstSetSuchThat:
       
   224         PPParser firstSetSuchThat:into:openSet:
       
   225         PPParser id
       
   226         PPParser isCompiled
       
   227         PPParser isContextFree
       
   228         PPParser isContextFreePrim
       
   229         PPParser isToken
       
   230         PPParser isTokenParser
       
   231         PPParser optimize
       
   232         PPParser optimized
       
   233         PPParser trimmingToken
       
   234         PPPluggableParser acceptsEpsilon
       
   235         PPPluggableParser asCompilerNode
       
   236         PPPossessiveRepeatingParser asCompilerNode
       
   237         PPPossessiveRepeatingParser compileWith:
       
   238         PPPossessiveRepeatingParser optimized
       
   239         PPPredicateObjectParser asCompilerNode
       
   240         PPPredicateObjectParser compileWith:
       
   241         PPPredicateObjectParser firstCharParser
       
   242         PPSequenceParser asCompilerNode
       
   243         PPSequenceParser checkFirst:
       
   244         PPSequenceParser compileWith:
       
   245         PPSequenceParser firstSetSuchThat:into:openSet:
       
   246         PPSequenceParser optimized
       
   247         PPSmalltalkGrammar comment
       
   248         PPSmalltalkGrammar updateContext:
       
   249         PPSmalltalkGrammar whitespace
       
   250         PPSmalltalkGrammar whitespaceOld
       
   251         PPSmalltalkGrammar whitespaceX
       
   252         PPSmalltalkTokenParser compileWith:
       
   253         PPSmalltalkTokenParser parseOnX:
       
   254         PPSmalltalkTokenParser updateContext:
       
   255         PPSmalltalkTokenParser whitespace
       
   256         PPSmalltalkWhitespaceParser acceptsEpsilon
       
   257         PPSmalltalkWhitespaceParser acceptsEpsilonOpenSet:
       
   258         PPSmalltalkWhitespaceParser firstCharParser
       
   259         PPStream peek:
       
   260         PPToken #'='
       
   261         PPToken hash
       
   262         PPToken isToken
       
   263         PPTokenParser asCompilerNode
       
   264         PPTokenParser displayName
       
   265         PPTokenParser firstSets:into:
       
   266         PPTokenParser id
       
   267         PPTokenParser isFirstSetTerminal
       
   268         PPTokenParser isTokenParser
       
   269         PPTokenParser isUnique
       
   270         PPTokenParser optimize
       
   271         PPTokenParser parseOnX:
       
   272         PPTokenParser parser
       
   273         PPTokenParser startsWith:
       
   274         PPTokenParser whitespace
       
   275         PPTrimmingParser asCompilerNode
       
   276         PPTrimmingParser compileWith:
       
   277         PPTrimmingParser firstSets:into:
       
   278         UndefinedObject asInteger
       
   279         UndefinedObject isAlphaNumeric
       
   280         UndefinedObject isDigit
       
   281         UndefinedObject isLetter
       
   282     )
       
   283 ! !
       
   284 
       
   285 !stx_goodies_petitparser_compiler class methodsFor:'description - project information'!
       
   286 
       
   287 companyName
       
   288     "Returns a company string which will appear in <lib>.rc.
       
   289      Under win32, this is placed into the dlls file-info"
       
   290 
       
   291     ^ 'eXept Software AG'
       
   292 !
       
   293 
       
   294 description
       
   295     "Returns a description string which will appear in nt.def / bc.def"
       
   296 
       
   297     ^ 'Smalltalk/X Class library'
       
   298 !
       
   299 
       
   300 legalCopyright
       
   301     "Returns a copyright string which will appear in <lib>.rc.
       
   302      Under win32, this is placed into the dlls file-info"
       
   303 
       
   304     ^ 'Copyright Claus Gittinger 1988-2014\nCopyright eXept Software AG 1998-2014'
       
   305 !
       
   306 
       
   307 productName
       
   308     "Returns a product name which will appear in <lib>.rc.
       
   309      Under win32, this is placed into the dlls file-info.
       
   310      This method is usually redefined in a concrete application definition"
       
   311 
       
   312     ^ 'Smalltalk/X'
       
   313 ! !
       
   314 
       
   315 !stx_goodies_petitparser_compiler class methodsFor:'documentation'!
       
   316 
       
   317 version_HG
       
   318     ^ '$Changeset: <not expanded> $'
       
   319 ! !
       
   320