PPParserResource.st
changeset 4 90de244a7fa2
parent 0 739fe9b7253e
child 51 8c02dc8bbf08
equal deleted inserted replaced
3:e1b11f74e142 4:90de244a7fa2
     1 "{ Package: 'squeak:petitparser' }"
     1 "{ Package: 'stx:goodies/petitparser' }"
     2 
     2 
     3 TestResource subclass:#PPParserResource
     3 TestResource subclass:#PPParserResource
     4 	instanceVariableNames:'parsers'
     4 	instanceVariableNames:'parsers'
     5 	classVariableNames:''
     5 	classVariableNames:''
     6 	poolDictionaries:''
     6 	poolDictionaries:''
    10 
    10 
    11 !PPParserResource methodsFor:'accessing'!
    11 !PPParserResource methodsFor:'accessing'!
    12 
    12 
    13 parserAt: aParserClass
    13 parserAt: aParserClass
    14 	"Answer a cached instance of aParserClass."
    14 	"Answer a cached instance of aParserClass."
    15 	
    15 
    16 	^ parsers at: aParserClass name ifAbsentPut: [ aParserClass new ]
    16 	^ parsers at: aParserClass name ifAbsentPut: [ aParserClass new ]
    17 ! !
    17 ! !
    18 
    18 
    19 !PPParserResource methodsFor:'running'!
    19 !PPParserResource methodsFor:'running'!
    20 
    20 
    24 ! !
    24 ! !
    25 
    25 
    26 !PPParserResource class methodsFor:'documentation'!
    26 !PPParserResource class methodsFor:'documentation'!
    27 
    27 
    28 version_SVN
    28 version_SVN
    29     ^ '$Id: PPParserResource.st,v 1.1 2011-08-18 18:56:17 cg Exp $'
    29     ^ '$Id: PPParserResource.st,v 1.2 2012-01-13 11:22:50 cg Exp $'
    30 ! !
    30 ! !