Codegen refactoring [1/x]: Introduced a PPCCodeBlock
A PPCCodeBlock is an abstraction of a block of statements with temporaries. This will
allow for scoped temporary management in code generator - temporary variables could
be allocated for block only. (i.e., make them block-temporaries)
"{ Package: 'stx:goodies/petitparser/compiler' }"
"{ NameSpace: Smalltalk }"
PPCDelegateNode subclass:#PPCTokenConsumeNode
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'PetitCompiler-Nodes'
!
!PPCTokenConsumeNode methodsFor:'accessing'!
name: value
super name: value.
self child name isNil ifTrue: [
self child name: self child prefix, '_', value.
]
!
prefix
^ #consume
! !
!PPCTokenConsumeNode methodsFor:'visiting'!
accept: visitor
^ visitor visitTokenConsumeNode: self
! !