Compilation fixed, removed obsolete methods
...to make it in sync with:
Name: PetitCompiler-JanKurs.71
Author: JanKurs
Time: 18-11-2014, 09:48:35.425 AM
UUID: 06352c33-3c76-4382-8536-0cc48e225117
"{ Package: 'stx:goodies/petitparser/compiler' }"
"{ NameSpace: Smalltalk }"
PPCNode subclass:#PPCDelegateNode
instanceVariableNames:'child'
classVariableNames:''
poolDictionaries:''
category:'PetitCompiler-Nodes'
!
!PPCDelegateNode methodsFor:'accessing'!
child
^ child
!
child: whatever
child := whatever
!
children
^ { child }
! !
!PPCDelegateNode methodsFor:'analysis'!
acceptsEpsilon
^ child acceptsEpsilonOpenSet: (IdentitySet with: self).
!
acceptsEpsilonOpenSet: set
(set includes: child) ifFalse: [
set add: child.
^ child acceptsEpsilonOpenSet: set
].
^ false
! !
!PPCDelegateNode methodsFor:'optimizing'!
inline: changeStatus
| inlinedNode |
inlinedNode := child asInlined.
(inlinedNode ~= child) ifTrue: [
changeStatus change.
self replace: child with: inlinedNode.
]
! !
!PPCDelegateNode methodsFor:'transformation'!
replace: node with: anotherNode
child == node ifTrue: [ child := anotherNode ]
! !
!PPCDelegateNode class methodsFor:'documentation'!
version_HG
^ '$Changeset: <not expanded> $'
! !