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