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

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

"{ NameSpace: Smalltalk }"

PPCTokenStarMessagePredicateNode subclass:#PPCInlineTokenStarMessagePredicateNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitCompiler-Nodes'
!

!PPCInlineTokenStarMessagePredicateNode methodsFor:'as yet unclassified'!

asInlined
	^ self
!

compileWith: compiler effect: effect id: id
	compiler startInline: id.
	compiler add: '[ context peek ', message,' ] whileTrue: ['.
	compiler indent.
	compiler add: 'context next'.
	compiler indent.
	compiler dedent.
	compiler add: '].'.
 ^ compiler stopInline.
! !