compiler/PPCCheckingVisitor.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 07 Sep 2015 08:03:02 +0100
changeset 536 548996aca274
parent 534 a949c4fe44df
child 538 16e8536f5cfb
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 }"

PPCPassVisitor subclass:#PPCCheckingVisitor
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Visitors'
!

!PPCCheckingVisitor methodsFor:'visiting'!

visitNode: node
    | message |

    super visitNode: node.
    message := node check.
    message notNil ifTrue:[ self error: message ].
    ^node

    "Created: / 04-09-2015 / 10:23:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !