compiler/PPCAbstractActionNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 18 Jun 2015 06:07:40 +0100
changeset 494 5cdfa83d6027
parent 452 9f4558b3be66
child 515 b5316ef15274
permissions -rw-r--r--
Oops, removed EOL comments as they;re not supported in Squeak / Pharo

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

"{ NameSpace: Smalltalk }"

PPCDelegateNode subclass:#PPCAbstractActionNode
	instanceVariableNames:'block'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!


!PPCAbstractActionNode methodsFor:'accessing'!

block
    
    ^ block
!

block: anObject
    
    block := anObject
!

prefix
    ^ #action
! !

!PPCAbstractActionNode methodsFor:'comparing'!

= anotherNode
    super = anotherNode ifFalse: [ ^ false ].
    ^ block = anotherNode block.
!

hash
    ^ super hash bitXor: block hash
! !

!PPCAbstractActionNode class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !