compiler/PPCPlusNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 10 May 2015 14:20:24 +0100
changeset 454 a9cd5ea7cc36
parent 452 9f4558b3be66
child 515 b5316ef15274
permissions -rw-r--r--
Portability: fixes for Smalltalk/X * Do not use detect:ifFound: - not present in Smalltalk/X * Removed leftover debugging code (Halt if:, ...) * Do not use `aClass methods`, use `aClass methodDictionary values` * Do not use #allPairsDo; - not present in Smalltalk/X * Do not use #crShow: - not present in Smalltalk/X * On Smalltalk?X use Filename - there's no FileReference in Smalltalk/X * Do not use CharacterSet, use String

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

"{ NameSpace: Smalltalk }"

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


!PPCPlusNode methodsFor:'analysis'!

recognizedSentencesPrim
    ^ 	#()
! !

!PPCPlusNode methodsFor:'as yet unclassified'!

followSets: aFollowDictionary firstSets: aFirstDictionary into: aSet suchThat: aBlock
    | first |
    super followSets: aFollowDictionary firstSets:  aFirstDictionary into: aSet suchThat: aBlock.
    
    first := aFirstDictionary at: self.
    (aFollowDictionary at: child) addAll: (first reject: [:each | each isNullable])
!

prefix
    ^ #plus
! !

!PPCPlusNode methodsFor:'visiting'!

accept: visitor
    ^ visitor visitPlusNode: self
! !

!PPCPlusNode class methodsFor:'documentation'!

version_HG

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