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

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

"{ NameSpace: Smalltalk }"

Object subclass:#PPCMethodStrategy
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!

PPCMethodStrategy class instanceVariableNames:'Instance'

"
 No other class instance variables are inherited by this class.
"
!

!PPCMethodStrategy class methodsFor:'as yet unclassified'!

instance
	^ Instance ifNil: [ 
		Instance := self basicNew initialize.
	]
!

new
	^ self instance
! !

!PPCMethodStrategy methodsFor:'as yet unclassified'!

return: compiler
	compiler add: '^'.
!

start: compiler id: id
	self halt: 'deprecated?'.
	^ compiler startMethod: id
!

stop: compiler
 ^ compiler stopMethod
! !