compiler/PPCCharacterNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 15 Apr 2015 11:28:09 +0100
changeset 422 116d2b2af905
parent 392 9b297f0d949c
child 438 20598d7ce9fa
permissions -rw-r--r--
To fold

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

"{ NameSpace: Smalltalk }"

PPCAbstractCharacterNode subclass:#PPCCharacterNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!

!PPCCharacterNode methodsFor:'as yet unclassified'!

start: compiler id: id
	compiler startMethod: id.
	compiler add: '^ '.
!

stop: compiler
	^ compiler stopMethod
! !

!PPCCharacterNode methodsFor:'optimizing'!

asInlined
	^ PPCInlineCharacterNode new
		character: character;
		name: name;
		yourself
! !