author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 03 Oct 2014 02:33:08 +0100 | |
changeset 377 | 6112a403a52d |
parent 376 | a2656b27cace |
child 379 | 451b5ae38b72 |
permissions | -rw-r--r-- |
5 | 1 |
"{ Package: 'stx:goodies/petitparser' }" |
2 |
||
3 |
LibraryDefinition subclass:#stx_goodies_petitparser |
|
4 |
instanceVariableNames:'' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'* Projects & Packages *' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!stx_goodies_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 |
||
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
21 |
!stx_goodies_petitparser class methodsFor:'accessing - monticello'! |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
22 |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
23 |
monticelloLastMergedVersionInfo |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
24 |
"The last merged version is: " |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
25 |
|
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
26 |
^ ' |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
27 |
Name: PetitParser-JanKurs.250 |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
28 |
Author: JanKurs |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
29 |
Time: 01-10-2014, 04:44:04 AM |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
30 |
UUID: c46eea20-51a0-4deb-8fd5-8cb99810a8b4 |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
31 |
Repository: http://smalltalkhub.com/mc/Moose/PetitParser/main |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
32 |
' |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
33 |
|
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
34 |
"Created: / 03-10-2014 / 02:27:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
35 |
! |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
36 |
|
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
37 |
monticelloName |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
38 |
"Return name of the package for Monticello. This is used when package is exported" |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
39 |
|
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
40 |
^ 'PetitParser' |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
41 |
|
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
42 |
"Created: / 03-10-2014 / 01:47:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
43 |
! ! |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
44 |
|
375
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
45 |
!stx_goodies_petitparser class methodsFor:'accessing - tests'! |
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
46 |
|
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
47 |
testSuite |
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
48 |
"generate and return a testSuite containing all of my test-classes" |
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
49 |
|
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
50 |
Smalltalk loadPackage: 'stx:goodies/petitparser/tests'. |
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
51 |
^ 'stx:goodies/petitparser/tests' asPackageId projectDefinitionClass testSuite |
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
52 |
|
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
53 |
! ! |
e2b2f08d054e
All tests moved from stx:goodies/petitparser to stx:goodies/petitparser/tests
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
315
diff
changeset
|
54 |
|
5 | 55 |
!stx_goodies_petitparser class methodsFor:'description'! |
56 |
||
57 |
excludedFromPreRequisites |
|
58 |
"list all packages which should be ignored in the automatic |
|
59 |
preRequisites scan. See #preRequisites for more." |
|
60 |
||
61 |
^ #( |
|
62 |
) |
|
63 |
! |
|
64 |
||
134
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
65 |
mandatoryPreRequisites |
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
66 |
"list packages which are mandatory as a prerequisite. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
67 |
This are packages containing superclasses of my classes and classes which |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
68 |
are extended by myself. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
69 |
They are mandatory, because we need these packages as a prerequisite for loading and compiling. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
70 |
This method is generated automatically, |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
71 |
by searching along the inheritance chain of all of my classes." |
5 | 72 |
|
73 |
^ #( |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
74 |
#'stx:libbasic' "ArrayedCollection - extended" |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
75 |
#'stx:libbasic2' "Text - extended" |
134
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
76 |
) |
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
77 |
! |
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
78 |
|
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
79 |
referencedPreRequisites |
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
80 |
"list packages which are a prerequisite, because they contain |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
81 |
classes which are referenced by my classes. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
82 |
We do not need these packages as a prerequisite for loading or compiling. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
83 |
This method is generated automatically, |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
84 |
by searching all classes (and their packages) which are referenced by my classes." |
134
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
85 |
|
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
86 |
^ #( |
5 | 87 |
) |
90 | 88 |
! |
89 |
||
90 |
stcOptimizationOptions |
|
91 |
"do not inline the not operation here - it is overwritten" |
|
92 |
||
93 |
^ '+optspace3 -inlinenot' |
|
94 |
||
95 |
"Created: / 23-08-2006 / 01:27:22 / cg" |
|
244 | 96 |
! |
97 |
||
98 |
subProjects |
|
99 |
"list packages which are known as subprojects. |
|
100 |
The generated makefile will enter those and make there as well. |
|
101 |
However: they are not forced to be loaded when a package is loaded; |
|
102 |
for those, redefine requiredPrerequisites" |
|
103 |
||
104 |
^ #( |
|
105 |
#'stx:goodies/petitparser/analyzer' |
|
106 |
#'stx:goodies/petitparser/tests' |
|
107 |
) |
|
5 | 108 |
! ! |
109 |
||
110 |
!stx_goodies_petitparser class methodsFor:'description - actions'! |
|
111 |
||
112 |
postLoadAction |
|
113 |
||
147
87d7095d0ece
Do not autoload tests in postLoadAction
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
134
diff
changeset
|
114 |
"/self classes do: [:cls|cls isLoaded ifFalse:[cls autoload]] |
5 | 115 |
|
116 |
"Created: / 17-12-2010 / 19:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
117 |
! ! |
|
118 |
||
119 |
!stx_goodies_petitparser class methodsFor:'description - contents'! |
|
120 |
||
121 |
classNamesAndAttributes |
|
122 |
"lists the classes which are to be included in the project. |
|
123 |
Each entry in the list may be: a single class-name (symbol), |
|
124 |
or an array-literal consisting of class name and attributes. |
|
125 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..." |
|
126 |
||
127 |
^ #( |
|
244 | 128 |
"<className> or (<className> attributes...) in load order" |
129 |
PPCharSetPredicate |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
130 |
PPContext |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
131 |
PPContextMemento |
244 | 132 |
PPFailure |
133 |
PPMemento |
|
134 |
PPParser |
|
135 |
PPStream |
|
136 |
PPToken |
|
137 |
#'stx_goodies_petitparser' |
|
138 |
PPDelegateParser |
|
139 |
PPEpsilonParser |
|
140 |
PPFailingParser |
|
141 |
PPListParser |
|
142 |
PPLiteralParser |
|
143 |
PPPluggableParser |
|
144 |
PPPredicateParser |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
145 |
PPStartOfLine |
244 | 146 |
PPUnresolvedParser |
147 |
PPActionParser |
|
148 |
PPAndParser |
|
149 |
PPChoiceParser |
|
150 |
PPCompositeParser |
|
151 |
PPEndOfInputParser |
|
152 |
PPExpressionParser |
|
153 |
PPFlattenParser |
|
154 |
PPLiteralObjectParser |
|
155 |
PPLiteralSequenceParser |
|
156 |
PPMemoizedParser |
|
157 |
PPNotParser |
|
158 |
PPOptionalParser |
|
159 |
PPPredicateObjectParser |
|
160 |
PPPredicateSequenceParser |
|
161 |
PPRepeatingParser |
|
162 |
PPSequenceParser |
|
163 |
PPTrimmingParser |
|
164 |
PPLimitedRepeatingParser |
|
165 |
PPPossessiveRepeatingParser |
|
166 |
PPTokenParser |
|
167 |
PPWrappingParser |
|
168 |
PPGreedyRepeatingParser |
|
169 |
PPLazyRepeatingParser |
|
5 | 170 |
) |
171 |
! |
|
172 |
||
173 |
extensionMethodNames |
|
377
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
174 |
"list class/selector pairs of extensions. |
6112a403a52d
Updated to latest version from Moose repository.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
175 |
A correponding method with real names must be present in my concrete subclasses" |
5 | 176 |
|
177 |
^ #( |
|
233 | 178 |
Block asParser |
179 |
BlockContext asParser |
|
180 |
Character asParser |
|
181 |
Character ppMinus: |
|
315 | 182 |
Collection asChoiceParser |
183 |
Collection asSequenceParser |
|
184 |
Interval asParser |
|
233 | 185 |
Object asParser |
186 |
Object isPetitFailure |
|
187 |
Object isPetitParser |
|
188 |
PositionableStream asPetitStream |
|
189 |
SequenceableCollection asParser |
|
190 |
SequenceableCollection asPetitStream |
|
191 |
Set asParser |
|
192 |
Stream asPetitStream |
|
193 |
String asParser |
|
194 |
Symbol asParser |
|
195 |
Symbol value: |
|
196 |
Text asPetitStream |
|
197 |
UndefinedObject asParser |
|
5 | 198 |
) |
199 |
! ! |
|
200 |
||
244 | 201 |
!stx_goodies_petitparser class methodsFor:'description - monticello'! |
202 |
||
203 |
monticelloTimestamps |
|
204 |
||
205 |
^#( |
|
206 |
) |
|
207 |
! ! |
|
208 |
||
5 | 209 |
!stx_goodies_petitparser class methodsFor:'description - project information'! |
210 |
||
211 |
applicationIconFileName |
|
212 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file" |
|
213 |
||
214 |
^ nil |
|
215 |
"/ ^ self applicationName |
|
216 |
! |
|
217 |
||
218 |
companyName |
|
219 |
"Return a companyname which will appear in <lib>.rc" |
|
220 |
||
221 |
^ 'Lukas Renggli & SWING Research Group' |
|
222 |
||
223 |
"Modified: / 17-12-2010 / 19:43:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
224 |
! |
|
225 |
||
226 |
description |
|
227 |
"Return a description string which will appear in vc.def / bc.def" |
|
228 |
||
148
b44426fa6b0f
class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents:
147
diff
changeset
|
229 |
^ 'Smalltalk/X Scannerless Parser & Parser Combinator Library' |
5 | 230 |
|
231 |
"Modified: / 17-12-2010 / 19:43:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
232 |
! |
|
233 |
||
234 |
legalCopyright |
|
235 |
"Return a copyright string which will appear in <lib>.rc" |
|
236 |
||
237 |
^ '(C) Lukas Renggli' |
|
238 |
||
239 |
"Modified: / 17-12-2010 / 19:43:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
240 |
! |
|
241 |
||
8 | 242 |
productInstallDirBaseName |
243 |
"Returns a default installDir which will appear in <app>.nsi. |
|
244 |
This is usually not the one you want to keep" |
|
245 |
||
246 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last |
|
247 |
! |
|
248 |
||
5 | 249 |
productName |
250 |
"Return a product name which will appear in <lib>.rc" |
|
251 |
||
252 |
^ 'Petit Parser' |
|
253 |
||
254 |
"Modified: / 17-12-2010 / 19:43:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
255 |
! ! |
|
256 |
||
257 |
!stx_goodies_petitparser class methodsFor:'description - svn'! |
|
258 |
||
8 | 259 |
svnRepositoryUrlString |
260 |
"Return a SVN repository URL of myself. |
|
261 |
(Generated since 2011-04-08) |
|
90 | 262 |
" |
8 | 263 |
|
264 |
^ '$URL: https://vranyj1@swing.fit.cvut.cz/svn/squeak/petitparser/trunk/squeak_petitparser.st $' |
|
265 |
! |
|
266 |
||
5 | 267 |
svnRevisionNr |
268 |
"Return a SVN revision number of myself. |
|
269 |
This number is updated after a commit" |
|
270 |
||
8 | 271 |
^ "$SVN-Revision:"'11 '"$" |
5 | 272 |
! ! |
273 |
||
274 |
!stx_goodies_petitparser class methodsFor:'documentation'! |
|
275 |
||
276 |
version |
|
315 | 277 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/stx_goodies_petitparser.st,v 1.15 2014-03-04 20:30:48 cg Exp $' |
5 | 278 |
! |
279 |
||
280 |
version_CVS |
|
315 | 281 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/stx_goodies_petitparser.st,v 1.15 2014-03-04 20:30:48 cg Exp $' |
211
c156f64d8eb9
class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents:
151
diff
changeset
|
282 |
! |
c156f64d8eb9
class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents:
151
diff
changeset
|
283 |
|
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
284 |
version_HG |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
285 |
^ '$Changeset: <not expanded> $' |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
286 |
! |
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
287 |
|
211
c156f64d8eb9
class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents:
151
diff
changeset
|
288 |
version_MC |
212
4717e419eabc
class: stx_goodies_petitparser
Claus Gittinger <cg@exept.de>
parents:
211
diff
changeset
|
289 |
^ '$PetitParser-lr.231 a18ceb3c-e6d2-4b74-91c9-33f05d2e0514 2013-03-16T21:51:30 lr$' |
5 | 290 |
! |
291 |
||
292 |
version_SVN |
|
315 | 293 |
^ '$Id: stx_goodies_petitparser.st,v 1.15 2014-03-04 20:30:48 cg Exp $' |
5 | 294 |
! ! |
134
03907685ddff
Now preRequiites are separated in mandatoryPreRequisites and referencedPreRequisites
Stefan Vogel <sv@exept.de>
parents:
90
diff
changeset
|
295 |