compiler/PPCTokenizingParserNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 24 Aug 2015 17:38:44 +0100
changeset 527 9b50ec9a6918
parent 524 f6f68d32de73
permissions -rw-r--r--
Added missing #new methods

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

"{ NameSpace: Smalltalk }"

PPCListNode subclass:#PPCTokenizingParserNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!

!PPCTokenizingParserNode methodsFor:'accessing'!

defaultName
    ^ #tokenizingParser
!

initialize
    super initialize.
    children := Array new: 3
!

parser
    ^ children at: 1
!

parser: node
    children at: 1 put: node
!

tokens
    ^ children at: 3
!

tokens: anObject
    children at: 3 put: anObject
!

whitespace
    ^ children at: 2
!

whitespace: node
    children at: 2 put: node
! !

!PPCTokenizingParserNode methodsFor:'visiting'!

accept: visitor
    ^ visitor visitTokenizingParserNode: self
! !