diff -r 1ba87229ee7e -r e2b2f08d054e tests/PPParserResource.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/PPParserResource.st Fri Oct 03 01:36:33 2014 +0100 @@ -0,0 +1,38 @@ +"{ Package: 'stx:goodies/petitparser' }" + +TestResource subclass:#PPParserResource + instanceVariableNames:'parsers' + classVariableNames:'' + poolDictionaries:'' + category:'PetitTests-Core' +! + + +!PPParserResource methodsFor:'accessing'! + +parserAt: aParserClass + "Answer a cached instance of aParserClass." + + ^ parsers at: aParserClass name ifAbsentPut: [ aParserClass new ] +! ! + +!PPParserResource methodsFor:'running'! + +setUp + super setUp. + parsers := Dictionary new +! ! + +!PPParserResource class methodsFor:'documentation'! + +version + ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' +! + +version_CVS + ^ '$Header: /cvs/stx/stx/goodies/petitparser/PPParserResource.st,v 1.3 2012-05-04 22:09:18 vrany Exp $' +! + +version_SVN + ^ '§Id: PPParserResource.st 4 2010-12-18 17:02:23Z kursjan §' +! !