compiler/PPCInlineTokenStarMessagePredicateNode.st
changeset 438 20598d7ce9fa
parent 437 54b3bc9e3987
child 442 d333233f7ebd
child 452 9f4558b3be66
equal deleted inserted replaced
437:54b3bc9e3987 438:20598d7ce9fa
     1 "{ Package: 'stx:goodies/petitparser/compiler' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
       
     4 
       
     5 PPCTokenStarMessagePredicateNode subclass:#PPCInlineTokenStarMessagePredicateNode
       
     6 	instanceVariableNames:''
       
     7 	classVariableNames:''
       
     8 	poolDictionaries:''
       
     9 	category:'PetitCompiler-Nodes'
       
    10 !
       
    11 
       
    12 !PPCInlineTokenStarMessagePredicateNode methodsFor:'as yet unclassified'!
       
    13 
       
    14 asInlined
       
    15 	^ self
       
    16 !
       
    17 
       
    18 compileWith: compiler effect: effect id: id
       
    19 	compiler startInline: id.
       
    20 	compiler add: '[ context peek ', message,' ] whileTrue: ['.
       
    21 	compiler indent.
       
    22 	compiler add: 'context next'.
       
    23 	compiler indent.
       
    24 	compiler dedent.
       
    25 	compiler add: '].'.
       
    26  ^ compiler stopInline.
       
    27 ! !
       
    28