PPOptionalParser.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 May 2015 01:57:37 +0100
changeset 461 5986bf6d7d60
parent 377 6112a403a52d
permissions -rw-r--r--
Portability: fixes for Smalltalk/X * Do not use #crShow: - not present in Smalltalk/X * Do not use Array class>>with:withAll: * do not use detect:ifFound:ifAbsent:

"{ Package: 'stx:goodies/petitparser' }"

PPDelegateParser subclass:#PPOptionalParser
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitParser-Parsers'
!



!PPOptionalParser methodsFor:'parsing'!

parseOn: aPPContext
	| element |
	element := parser parseOn: aPPContext.
	^ element isPetitFailure ifFalse: [ element ]
! !

!PPOptionalParser class methodsFor:'documentation'!

version_SVN
    ^ '$Id: PPOptionalParser.st,v 1.4 2014-03-04 14:33:10 cg Exp $'
! !