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