compiler/PPCUnknownNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 21 May 2015 14:12:22 +0100
changeset 464 f6d77fee9811
parent 452 9f4558b3be66
child 515 b5316ef15274
permissions -rw-r--r--
Updated to PetitCompiler-JanKurs.118, PetitCompiler-Tests-JanKurs.46, PetitCompiler-Extras-Tests-JanKurs.11, and PetitCompiler-Benchmarks-JanKurs.11 Name: PetitCompiler-JanKurs.118 Author: JanKurs Time: 13-05-2015, 03:59:01.292 PM UUID: 4a8ccd94-3131-4cc7-9098-528f8e5ea0b5 Name: PetitCompiler-Tests-JanKurs.46 Author: JanKurs Time: 04-05-2015, 04:25:06.162 PM UUID: 9f4cf8b7-876e-4a13-9579-b833f016db66 Name: PetitCompiler-Extras-Tests-JanKurs.11 Author: JanKurs Time: 13-05-2015, 04:27:27.940 PM UUID: e9f30c31-fbd0-4e96-ad2a-868f88d20ea8 Name: PetitCompiler-Benchmarks-JanKurs.11 Author: JanKurs Time: 13-05-2015, 02:21:49.932 PM UUID: 6a23fd1e-a86f-46db-8221-cc41b778d32c

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

"{ NameSpace: Smalltalk }"

PPCNode subclass:#PPCUnknownNode
	instanceVariableNames:'parser'
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!


!PPCUnknownNode class methodsFor:'as yet unclassified'!

new
    ^ self basicNew initialize
! !

!PPCUnknownNode methodsFor:'accessing'!

acceptsEpsilon
    ^ parser acceptsEpsilon
!

acceptsEpsilonOpenSet: aSet
    ^ parser acceptsEpsilonOpenSet: aSet
!

children
    ^ parser children
!

isContextFreePrim
    ^ parser isContextFreePrim
!

isNullable
    ^ parser isNullable
!

parser
    
    ^ parser
!

parser: anObject
    
    parser := anObject
!

prefix
    ^ #parser
! !

!PPCUnknownNode methodsFor:'analysis'!

firstCharSet
    ^ parser firstCharSet
! !

!PPCUnknownNode methodsFor:'comparison'!

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

hash
    ^ super hash bitXor: parser hash
! !

!PPCUnknownNode methodsFor:'copying'!

postCopy
    super postCopy.
    parser := parser copy.
! !

!PPCUnknownNode methodsFor:'transformation'!

replace: node with: anotherNode
    parser replace: node with: anotherNode
! !

!PPCUnknownNode methodsFor:'visiting'!

accept: visitor
    ^ visitor visitUnknownNode: self
! !

!PPCUnknownNode class methodsFor:'documentation'!

version_HG

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