Fix in codegen for inlined sequence nodes.
For inlined sequence nodes, generate nested ifs rather than sequential code which
does not work when inlined. The reason is that #codeReturn: in inline generates
instvar assignment, not method return, so in sequential code the next child of a sequence
will be probed even if previous failed. If that happends, the whole sequence fail and therefore
we must generate nested ifs to correctly handle this w.r.t. inlining.
"{ Package: 'stx:goodies/petitparser' }"
PPParser subclass:#PPDelegateParser
instanceVariableNames:'parser'
classVariableNames:''
poolDictionaries:''
category:'PetitParser-Parsers'
!
!PPDelegateParser class methodsFor:'instance creation'!
on: aParser
^ self new setParser: aParser
! !
!PPDelegateParser methodsFor:'accessing'!
children
^ Array with: parser
! !
!PPDelegateParser methodsFor:'initialization'!
setParser: aParser
parser := aParser
! !
!PPDelegateParser methodsFor:'parsing'!
parseOn: aPPContext
^ parser parseOn: aPPContext
! !
!PPDelegateParser class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $'
!
version_CVS
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $'
!
version_SVN
^ '$Id: PPDelegateParser.st,v 1.4 2014-03-04 14:32:24 cg Exp $'
! !