stx_goodies_petitparser.st
author Stefan Vogel <sv@exept.de>
Thu, 07 Mar 2019 17:13:54 +0100
changeset 635 cc19416f97b1
parent 632 9b86bc3001da
permissions -rw-r--r--
#BUGFIX by stefan class: stx_goodies_petitparser class changed: #extensionMethodNames #value: moved to libbasic
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
622
e2a05b463760 #OTHER by sr
sr
parents: 608
diff changeset
     1
"{ Encoding: utf8 }"
e2a05b463760 #OTHER by sr
sr
parents: 608
diff changeset
     2
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
"{ Package: 'stx:goodies/petitparser' }"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
371
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
     5
"{ NameSpace: Smalltalk }"
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
     6
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
LibraryDefinition subclass:#stx_goodies_petitparser
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	instanceVariableNames:''
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	classVariableNames:''
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
	poolDictionaries:''
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
	category:'* Projects & Packages *'
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
371
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    14
!stx_goodies_petitparser class methodsFor:'documentation'!
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    15
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    16
documentation
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    17
"
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    18
    Package documentation:
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    19
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    20
    A framework for PEG based parsers.
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    21
    Allows for very easy definition and use of parsers for any kind of documents,
373
111945b70208 class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 371
diff changeset
    22
    but of course also to create parsers for programming language source code.
371
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    23
"
c703af84113c class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 315
diff changeset
    24
! !
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
!stx_goodies_petitparser class methodsFor:'accessing'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
monticelloPackageName
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
    "hook for packages which have been loaded from monticello"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
    ^ 'PetitParser'
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
    "Created: / 17-12-2010 / 19:44:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
! !
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!stx_goodies_petitparser class methodsFor:'description'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
excludedFromPreRequisites
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    "list all packages which should be ignored in the automatic
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
     preRequisites scan. See #preRequisites for more."
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    ^ #(
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    )
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
134
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    46
mandatoryPreRequisites
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    47
    "list all required mandatory packages.
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    48
     Packages are mandatory, if they contain superclasses of the package's classes
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    49
     or classes which are extended by this package.
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
     This list can be maintained manually or (better) generated and
134
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    51
     updated by scanning the superclass hierarchies
244
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    52
     (the browser has a menu function for that)"
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    ^ #(
244
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    55
        #'stx:libbasic'    "ArrayedCollection - extended "
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    56
        #'stx:libbasic2'    "Text - extended "
134
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    57
    )
622
e2a05b463760 #OTHER by sr
sr
parents: 608
diff changeset
    58
e2a05b463760 #OTHER by sr
sr
parents: 608
diff changeset
    59
    "Modified: / 04-07-2018 / 15:38:25 / sr"
134
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    60
!
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    61
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    62
referencedPreRequisites
608
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    63
    "list packages which are a prerequisite, because they contain
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    64
     classes which are referenced by my classes.
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    65
     These packages are NOT needed as a prerequisite for compiling or loading,
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    66
     however, a class from it may be referenced during execution and having it
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    67
     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    68
     includes explicit checks for the package being present.
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    69
     This method is generated automatically,
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    70
     by searching all classes (and their packages) which are referenced by my classes.
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
    71
     Please also take a look at the #mandatoryPreRequisites method"
134
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    72
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
    73
    ^ #(
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
    )
90
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    75
!
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    76
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    77
stcOptimizationOptions
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    78
    "do not inline the not operation here - it is overwritten"
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    79
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    80
    ^ '+optspace3 -inlinenot'
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    81
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
    82
    "Created: / 23-08-2006 / 01:27:22 / cg"
244
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    83
!
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    84
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    85
subProjects
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    86
    "list packages which are known as subprojects.
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    87
     The generated makefile will enter those and make there as well.
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    88
     However: they are not forced to be loaded when a package is loaded;
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    89
     for those, redefine requiredPrerequisites"
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    90
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    91
    ^ #(
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    92
        #'stx:goodies/petitparser/analyzer'
632
9b86bc3001da #OTHER by sr
sr
parents: 622
diff changeset
    93
        #'stx:goodies/petitparser/tests'
244
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
    94
    )
622
e2a05b463760 #OTHER by sr
sr
parents: 608
diff changeset
    95
632
9b86bc3001da #OTHER by sr
sr
parents: 622
diff changeset
    96
    "Modified: / 05-07-2018 / 09:21:48 / sr"
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
! !
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
!stx_goodies_petitparser class methodsFor:'description - actions'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
postLoadAction
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
147
87d7095d0ece Do not autoload tests in postLoadAction
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 134
diff changeset
   103
    "/self classes do: [:cls|cls isLoaded ifFalse:[cls autoload]]
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "Created: / 17-12-2010 / 19:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
! !
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
!stx_goodies_petitparser class methodsFor:'description - contents'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
classNamesAndAttributes
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    "lists the classes which are to be included in the project.
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
     Each entry in the list may be: a single class-name (symbol),
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
     or an array-literal consisting of class name and attributes.
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    ^ #(
244
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   117
        "<className> or (<className> attributes...) in load order"
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   118
        PPCharSetPredicate
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   119
        PPFailure
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   120
        PPMemento
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   121
        PPParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   122
        PPStream
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   123
        PPToken
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   124
        #'stx_goodies_petitparser'
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   125
        PPDelegateParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   126
        PPEpsilonParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   127
        PPFailingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   128
        PPListParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   129
        PPLiteralParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   130
        PPPluggableParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   131
        PPPredicateParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   132
        PPUnresolvedParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   133
        PPActionParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   134
        PPAndParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   135
        PPChoiceParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   136
        PPCompositeParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   137
        PPEndOfInputParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   138
        PPExpressionParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   139
        PPFlattenParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   140
        PPLiteralObjectParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   141
        PPLiteralSequenceParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   142
        PPMemoizedParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   143
        PPNotParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   144
        PPOptionalParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   145
        PPPredicateObjectParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   146
        PPPredicateSequenceParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   147
        PPRepeatingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   148
        PPSequenceParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   149
        PPTrimmingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   150
        PPArithmeticParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   151
        PPLambdaParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   152
        PPLimitedRepeatingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   153
        PPPossessiveRepeatingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   154
        PPTokenParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   155
        PPWrappingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   156
        PPGreedyRepeatingParser
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   157
        PPLazyRepeatingParser
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
    )
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
extensionMethodNames
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
    "lists the extension methods which are to be included in the project.
608
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
   163
     Entries are 2-element array literals, consisting of class-name and selector.
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
   164
     A correponding method with real names must be present in my concrete subclasses
964384fe2ca5 #OTHER by sr
sr
parents: 591
diff changeset
   165
     if it has extensions."
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
    ^ #(
233
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   168
        Block asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   169
        BlockContext asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   170
        Character asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   171
        Character ppMinus:
315
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   172
        Collection asChoiceParser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   173
        Collection asSequenceParser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   174
        Interval asParser
233
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   175
        Object asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   176
        Object isPetitFailure
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   177
        Object isPetitParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   178
        PositionableStream asPetitStream
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   179
        SequenceableCollection asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   180
        SequenceableCollection asPetitStream
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   181
        Set asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   182
        Stream asPetitStream
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   183
        String asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   184
        Symbol asParser
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   185
        Text asPetitStream
896c872b5da9 initial
Claus Gittinger <cg@exept.de>
parents: 212
diff changeset
   186
        UndefinedObject asParser
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
    )
635
cc19416f97b1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 632
diff changeset
   188
cc19416f97b1 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 632
diff changeset
   189
    "Modified: / 07-03-2019 / 17:12:29 / Stefan Vogel"
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
! !
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
244
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   192
!stx_goodies_petitparser class methodsFor:'description - monticello'!
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   193
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   194
monticelloTimestamps
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   195
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   196
    ^#(
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   197
    )
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   198
! !
c9c5df552e30 initial
Claus Gittinger <cg@exept.de>
parents: 233
diff changeset
   199
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
!stx_goodies_petitparser class methodsFor:'description - project information'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
applicationIconFileName
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
    "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    ^ nil
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    "/ ^ self applicationName
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
companyName
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
    "Return a companyname which will appear in <lib>.rc"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
    ^ 'Lukas Renggli & SWING Research Group'
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
    "Modified: / 17-12-2010 / 19:43:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
description
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
    "Return a description string which will appear in vc.def / bc.def"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
148
b44426fa6b0f class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 147
diff changeset
   220
    ^ 'Smalltalk/X Scannerless Parser & Parser Combinator Library'
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
    "Modified: / 17-12-2010 / 19:43:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
legalCopyright
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
    "Return a copyright string which will appear in <lib>.rc"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
    ^ '(C) Lukas Renggli'
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
    "Modified: / 17-12-2010 / 19:43:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
8
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   233
productInstallDirBaseName
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   234
    "Returns a default installDir which will appear in <app>.nsi.
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   235
     This is usually not the one you want to keep"
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   236
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   237
    ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   238
!
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   239
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
productName
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
    "Return a product name which will appear in <lib>.rc"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
    ^ 'Petit Parser'
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   245
    "Modified: / 17-12-2010 / 19:43:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
! !
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
!stx_goodies_petitparser class methodsFor:'description - svn'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
8
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   250
svnRepositoryUrlString
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   251
    "Return a SVN repository URL of myself.
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   252
     (Generated since 2011-04-08)
90
ac3a0d07b1e4 -inlinenot
Claus Gittinger <cg@exept.de>
parents: 67
diff changeset
   253
    "
8
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   254
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   255
    ^ '$URL: https://vranyj1@swing.fit.cvut.cz/svn/squeak/petitparser/trunk/squeak_petitparser.st $'
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   256
!
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   257
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
svnRevisionNr
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
    "Return a SVN revision number of myself.
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
     This number is updated after a commit"
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
8
9bb6c46efe0f Checkin from browser
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 5
diff changeset
   262
    ^ "$SVN-Revision:"'11              '"$"
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
! !
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
!stx_goodies_petitparser class methodsFor:'documentation'!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   266
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
version
591
a3c2fee0f2c3 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 373
diff changeset
   268
    ^ '$Header$'
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
version_CVS
591
a3c2fee0f2c3 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 373
diff changeset
   272
    ^ '$Header$'
211
c156f64d8eb9 class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 151
diff changeset
   273
!
c156f64d8eb9 class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 151
diff changeset
   274
c156f64d8eb9 class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 151
diff changeset
   275
version_MC
212
4717e419eabc class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents: 211
diff changeset
   276
    ^ '$PetitParser-lr.231 a18ceb3c-e6d2-4b74-91c9-33f05d2e0514 2013-03-16T21:51:30 lr$'
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
!
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
version_SVN
591
a3c2fee0f2c3 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 373
diff changeset
   280
    ^ '$Id$'
5
804a351a9415 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
! !
134
03907685ddff Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents: 90
diff changeset
   282