compiler/PPCTokenizingParserNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 07 Sep 2015 08:03:02 +0100
changeset 536 548996aca274
parent 524 f6f68d32de73
permissions -rw-r--r--
PPCConfiguration refactoring: [8/10]: Cleaned up compilation API. Methods in PPCConfiguration not meant for public use have been moved to private protocol to make it clear.

"{ 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
! !