compiler/PPCStarMessagePredicateNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 07 Sep 2015 11:53:38 +0100
changeset 538 16e8536f5cfb
parent 515 b5316ef15274
permissions -rw-r--r--
PPCConfiguration refactoring: [10/10]: Cleaned up compilation API The main compilation method is now PPParser>>compileWithOptions: Removed oither old and unused compilation methods from PPParser and other PetitCompiler classes.

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

"{ NameSpace: Smalltalk }"

PPCStarNode subclass:#PPCStarMessagePredicateNode
	instanceVariableNames:'message'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!


!PPCStarMessagePredicateNode methodsFor:'accessing'!

defaultName
    ^ #starPredicate
!

firstCharSet
    ^ PPCharSetPredicate on: [:char | char perform: message ] 	
!

message
    
    ^ message
!

message: anObject
    
    message := anObject
! !

!PPCStarMessagePredicateNode methodsFor:'comparing'!

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

hash
    ^ super hash bitXor: message hash
! !

!PPCStarMessagePredicateNode methodsFor:'visiting'!

accept: visitor
    ^ visitor visitStarMessagePredicateNode: self
! !

!PPCStarMessagePredicateNode class methodsFor:'documentation'!

version_HG

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