PPParserResource.st
author Claus Gittinger <cg@exept.de>
Fri, 16 Mar 2012 10:02:16 +0100
changeset 7 019b26bd21a8
parent 4 90de244a7fa2
child 51 8c02dc8bbf08
permissions -rw-r--r--
*** empty log message ***

"{ 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_SVN
    ^ '$Id: PPParserResource.st,v 1.2 2012-01-13 11:22:50 cg Exp $'
! !