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