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