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 |
|
8
|
10 |
!stx_goodies_petitparser class methodsFor:'documentation'!
|
|
11 |
|
|
12 |
extensionsVersion_SVN
|
90
|
13 |
^ '$Id: stx_goodies_petitparser.st,v 1.5 2012-12-01 12:49:51 cg Exp $'
|
8
|
14 |
! !
|
5
|
15 |
|
|
16 |
!stx_goodies_petitparser class methodsFor:'accessing'!
|
|
17 |
|
|
18 |
monticelloPackageName
|
|
19 |
"hook for packages which have been loaded from monticello"
|
|
20 |
|
|
21 |
^ 'PetitParser'
|
|
22 |
|
|
23 |
"Created: / 17-12-2010 / 19:44:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
24 |
! !
|
|
25 |
|
|
26 |
!stx_goodies_petitparser class methodsFor:'description'!
|
|
27 |
|
|
28 |
excludedFromPreRequisites
|
|
29 |
"list all packages which should be ignored in the automatic
|
|
30 |
preRequisites scan. See #preRequisites for more."
|
|
31 |
|
|
32 |
^ #(
|
|
33 |
)
|
|
34 |
!
|
|
35 |
|
|
36 |
preRequisites
|
|
37 |
"list all required packages.
|
|
38 |
This list can be maintained manually or (better) generated and
|
|
39 |
updated by scanning the superclass hierarchies and looking for
|
|
40 |
global variable accesses. (the browser has a menu function for that)
|
|
41 |
Howevery, often too much is found, and you may want to explicitely
|
|
42 |
exclude individual packages in the #excludedFromPrerequisites method."
|
|
43 |
|
|
44 |
^ #(
|
90
|
45 |
#'stx:goodies/sunit' "TestCase - superclass of PPTokenTest "
|
|
46 |
#'stx:libbasic' "Object - superclass of PPFailure "
|
|
47 |
#'stx:libbasic2' "Text"
|
5
|
48 |
)
|
90
|
49 |
!
|
|
50 |
|
|
51 |
stcOptimizationOptions
|
|
52 |
"do not inline the not operation here - it is overwritten"
|
|
53 |
|
|
54 |
^ '+optspace3 -inlinenot'
|
|
55 |
|
|
56 |
"Created: / 23-08-2006 / 01:27:22 / cg"
|
5
|
57 |
! !
|
|
58 |
|
|
59 |
!stx_goodies_petitparser class methodsFor:'description - actions'!
|
|
60 |
|
|
61 |
postLoadAction
|
|
62 |
|
|
63 |
self classes do: [:cls|cls isLoaded ifFalse:[cls autoload]]
|
|
64 |
|
|
65 |
"Created: / 17-12-2010 / 19:55:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
66 |
! !
|
|
67 |
|
|
68 |
!stx_goodies_petitparser class methodsFor:'description - contents'!
|
|
69 |
|
|
70 |
classNamesAndAttributes
|
|
71 |
"lists the classes which are to be included in the project.
|
|
72 |
Each entry in the list may be: a single class-name (symbol),
|
|
73 |
or an array-literal consisting of class name and attributes.
|
|
74 |
Attributes are: #autoload or #<os> where os is one of win32, unix,..."
|
|
75 |
|
|
76 |
^ #(
|
90
|
77 |
"<className> or (<className> attributes...) in load order"
|
|
78 |
(PPAbstractParseTest autoload)
|
|
79 |
PPCharSetPredicate
|
|
80 |
PPFailure
|
|
81 |
PPMemento
|
|
82 |
PPParser
|
|
83 |
(PPParserResource autoload)
|
|
84 |
PPStream
|
|
85 |
PPToken
|
|
86 |
#'stx_goodies_petitparser'
|
|
87 |
(PPComposedTest autoload)
|
|
88 |
(PPCompositeParserTest autoload)
|
|
89 |
PPDelegateParser
|
|
90 |
PPEpsilonParser
|
|
91 |
(PPExtensionTest autoload)
|
|
92 |
PPFailingParser
|
|
93 |
PPListParser
|
|
94 |
PPLiteralParser
|
|
95 |
(PPMappingTest autoload)
|
|
96 |
(PPObjectTest autoload)
|
|
97 |
(PPParserTest autoload)
|
|
98 |
PPPluggableParser
|
|
99 |
PPPredicateParser
|
|
100 |
(PPPredicateTest autoload)
|
|
101 |
(PPScriptingTest autoload)
|
|
102 |
(PPTokenTest autoload)
|
|
103 |
PPUnresolvedParser
|
|
104 |
PPActionParser
|
|
105 |
PPAndParser
|
|
106 |
(PPArithmeticParserTest autoload)
|
|
107 |
PPChoiceParser
|
|
108 |
PPCompositeParser
|
|
109 |
PPEndOfInputParser
|
|
110 |
PPExpressionParser
|
|
111 |
PPFlattenParser
|
|
112 |
(PPLambdaParserTest autoload)
|
|
113 |
PPLiteralObjectParser
|
|
114 |
PPLiteralSequenceParser
|
|
115 |
PPMemoizedParser
|
|
116 |
PPNotParser
|
|
117 |
PPOptionalParser
|
|
118 |
PPPredicateObjectParser
|
|
119 |
PPPredicateSequenceParser
|
|
120 |
PPRepeatingParser
|
|
121 |
PPSequenceParser
|
|
122 |
PPTrimmingParser
|
|
123 |
PPArithmeticParser
|
|
124 |
(PPExpressionParserTest autoload)
|
|
125 |
PPLambdaParser
|
|
126 |
PPTokenParser
|
|
127 |
PPWrappingParser
|
5
|
128 |
)
|
67
|
129 |
|
|
130 |
"Modified: / 04-05-2012 / 23:17:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
5
|
131 |
!
|
|
132 |
|
|
133 |
extensionMethodNames
|
|
134 |
"lists the extension methods which are to be included in the project.
|
|
135 |
Entries are 2-element array literals, consisting of class-name and selector."
|
|
136 |
|
|
137 |
^ #(
|
90
|
138 |
Block asParser
|
|
139 |
BlockContext asParser
|
|
140 |
Character #'-'
|
|
141 |
Character asParser
|
|
142 |
Character ppMinus:
|
|
143 |
Object asParser
|
|
144 |
Object isPetitFailure
|
|
145 |
Object isPetitParser
|
|
146 |
PositionableStream asPetitStream
|
|
147 |
SequenceableCollection asParser
|
|
148 |
SequenceableCollection asPetitStream
|
|
149 |
Set asParser
|
|
150 |
Stream asPetitStream
|
|
151 |
String asParser
|
|
152 |
Symbol asParser
|
|
153 |
Symbol value:
|
|
154 |
Text asPetitStream
|
|
155 |
UndefinedObject asParser
|
5
|
156 |
)
|
|
157 |
! !
|
|
158 |
|
|
159 |
!stx_goodies_petitparser class methodsFor:'description - project information'!
|
|
160 |
|
|
161 |
applicationIconFileName
|
|
162 |
"Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
|
|
163 |
|
|
164 |
^ nil
|
|
165 |
"/ ^ self applicationName
|
|
166 |
!
|
|
167 |
|
|
168 |
companyName
|
|
169 |
"Return a companyname which will appear in <lib>.rc"
|
|
170 |
|
|
171 |
^ 'Lukas Renggli & SWING Research Group'
|
|
172 |
|
|
173 |
"Modified: / 17-12-2010 / 19:43:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
174 |
!
|
|
175 |
|
|
176 |
description
|
|
177 |
"Return a description string which will appear in vc.def / bc.def"
|
|
178 |
|
|
179 |
^ 'Scanner-less parser & parser combinator library'
|
|
180 |
|
|
181 |
"Modified: / 17-12-2010 / 19:43:00 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
182 |
!
|
|
183 |
|
|
184 |
legalCopyright
|
|
185 |
"Return a copyright string which will appear in <lib>.rc"
|
|
186 |
|
|
187 |
^ '(C) Lukas Renggli'
|
|
188 |
|
|
189 |
"Modified: / 17-12-2010 / 19:43:20 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
190 |
!
|
|
191 |
|
8
|
192 |
productInstallDirBaseName
|
|
193 |
"Returns a default installDir which will appear in <app>.nsi.
|
|
194 |
This is usually not the one you want to keep"
|
|
195 |
|
|
196 |
^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
|
|
197 |
!
|
|
198 |
|
5
|
199 |
productName
|
|
200 |
"Return a product name which will appear in <lib>.rc"
|
|
201 |
|
|
202 |
^ 'Petit Parser'
|
|
203 |
|
|
204 |
"Modified: / 17-12-2010 / 19:43:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
205 |
! !
|
|
206 |
|
|
207 |
!stx_goodies_petitparser class methodsFor:'description - svn'!
|
|
208 |
|
8
|
209 |
svnRepositoryUrlString
|
|
210 |
"Return a SVN repository URL of myself.
|
|
211 |
(Generated since 2011-04-08)
|
90
|
212 |
"
|
8
|
213 |
|
|
214 |
^ '$URL: https://vranyj1@swing.fit.cvut.cz/svn/squeak/petitparser/trunk/squeak_petitparser.st $'
|
|
215 |
!
|
|
216 |
|
5
|
217 |
svnRevisionNr
|
|
218 |
"Return a SVN revision number of myself.
|
|
219 |
This number is updated after a commit"
|
|
220 |
|
8
|
221 |
^ "$SVN-Revision:"'11 '"$"
|
5
|
222 |
! !
|
|
223 |
|
|
224 |
!stx_goodies_petitparser class methodsFor:'documentation'!
|
|
225 |
|
|
226 |
version
|
90
|
227 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/stx_goodies_petitparser.st,v 1.5 2012-12-01 12:49:51 cg Exp $'
|
5
|
228 |
!
|
|
229 |
|
|
230 |
version_CVS
|
90
|
231 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/stx_goodies_petitparser.st,v 1.5 2012-12-01 12:49:51 cg Exp $'
|
5
|
232 |
!
|
|
233 |
|
|
234 |
version_SVN
|
8
|
235 |
^ '§Id: squeak_petitparser.st 7 2012-03-12 19:06:12Z vranyj1 §'
|
5
|
236 |
! !
|