--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/PPParserResource.st Mon Jul 02 07:43:28 2018 +0200
@@ -0,0 +1,37 @@
+"{ Package: 'stx:goodies/petitparser/tests' }"
+
+"{ NameSpace: Smalltalk }"
+
+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$'
+!
+
+version_CVS
+ ^ '$Header$'
+! !
+