author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 03 Oct 2014 01:59:10 +0100 | |
changeset 376 | a2656b27cace |
parent 375 | e2b2f08d054e |
child 386 | a409905f7f2d |
permissions | -rw-r--r-- |
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
1 |
"{ Package: 'stx:goodies/petitparser/tests' }" |
0 | 2 |
|
3 |
TestResource subclass:#PPParserResource |
|
4 |
instanceVariableNames:'parsers' |
|
5 |
classVariableNames:'' |
|
6 |
poolDictionaries:'' |
|
7 |
category:'PetitTests-Core' |
|
8 |
! |
|
9 |
||
10 |
||
11 |
!PPParserResource methodsFor:'accessing'! |
|
12 |
||
13 |
parserAt: aParserClass |
|
14 |
"Answer a cached instance of aParserClass." |
|
51 | 15 |
|
0 | 16 |
^ parsers at: aParserClass name ifAbsentPut: [ aParserClass new ] |
17 |
! ! |
|
18 |
||
19 |
!PPParserResource methodsFor:'running'! |
|
20 |
||
21 |
setUp |
|
22 |
super setUp. |
|
23 |
parsers := Dictionary new |
|
24 |
! ! |
|
25 |
||
26 |
!PPParserResource class methodsFor:'documentation'! |
|
27 |
||
51 | 28 |
version |
29 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' |
|
30 |
! |
|
31 |
||
32 |
version_CVS |
|
33 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' |
|
34 |
! |
|
35 |
||
0 | 36 |
version_SVN |
51 | 37 |
^ '§Id: PPParserResource.st 4 2010-12-18 17:02:23Z kursjan §' |
0 | 38 |
! ! |
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
39 |