author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 08 Oct 2015 09:41:03 +0100 | |
changeset 548 | 5536a6da50e4 |
parent 454 | a9cd5ea7cc36 |
child 642 | 77d5fddb6462 |
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 |
|
454
a9cd5ea7cc36
Portability: fixes for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
386
diff
changeset
|
3 |
"{ NameSpace: Smalltalk }" |
a9cd5ea7cc36
Portability: fixes for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
386
diff
changeset
|
4 |
|
0 | 5 |
TestResource subclass:#PPParserResource |
6 |
instanceVariableNames:'parsers' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'PetitTests-Core' |
|
10 |
! |
|
11 |
||
12 |
||
13 |
!PPParserResource methodsFor:'accessing'! |
|
14 |
||
15 |
parserAt: aParserClass |
|
16 |
"Answer a cached instance of aParserClass." |
|
51 | 17 |
|
0 | 18 |
^ parsers at: aParserClass name ifAbsentPut: [ aParserClass new ] |
19 |
! ! |
|
20 |
||
21 |
!PPParserResource methodsFor:'running'! |
|
22 |
||
23 |
setUp |
|
24 |
super setUp. |
|
25 |
parsers := Dictionary new |
|
26 |
! ! |
|
27 |
||
28 |
!PPParserResource class methodsFor:'documentation'! |
|
29 |
||
51 | 30 |
version |
31 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' |
|
32 |
! |
|
33 |
||
34 |
version_CVS |
|
35 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' |
|
36 |
! |
|
37 |
||
386
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
38 |
version_HG |
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
39 |
|
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
40 |
^ '$Changeset: <not expanded> $' |
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
41 |
! |
a409905f7f2d
Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
376
diff
changeset
|
42 |
|
0 | 43 |
version_SVN |
51 | 44 |
^ '§Id: PPParserResource.st 4 2010-12-18 17:02:23Z kursjan §' |
0 | 45 |
! ! |
376
a2656b27cace
Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
375
diff
changeset
|
46 |