PPParserResource.st
author Claus Gittinger <cg@exept.de>
Fri, 24 Jan 2014 16:59:31 +0100
changeset 148 b44426fa6b0f
parent 51 8c02dc8bbf08
permissions -rw-r--r--
class: stx_goodies_petitparser changed: #description

"{ 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 §'
! !