CI: Use VM provided by Pharo team on both Linux and Windows.
Hand-crafter Pharo VM is no longer needed as the Linux slave in
SWING build farm has been upgraded so it has compatible GLIBC.
This makes CI scripts simpler and more usable for other people.
"{ Package: 'stx:goodies/petitparser' }"
"{ NameSpace: Smalltalk }"
PPDelegateParser subclass:#PPConditionalParser
instanceVariableNames:'block'
classVariableNames:''
poolDictionaries:''
category:'PetitParser-Parsers'
!
!PPConditionalParser class methodsFor:'as yet unclassified'!
on: aPPParser block: block
^ (PPConditionalParser on: aPPParser)
block: block;
yourself
! !
!PPConditionalParser methodsFor:'accessing'!
block: aBlock
block := aBlock
! !
!PPConditionalParser methodsFor:'parsing'!
parseOn: aPPContext
^ (block value: aPPContext)
ifTrue: [ parser parseOn: aPPContext ]
ifFalse: [ PPFailure message: block asString, ' was not evaluated to true.' context: aPPContext ]
! !