compiler/PPCChoiceNode.st
changeset 422 116d2b2af905
parent 421 7e08b31e0dae
child 438 20598d7ce9fa
equal deleted inserted replaced
421:7e08b31e0dae 422:116d2b2af905
     1 "{ Package: 'stx:goodies/petitparser/compiler' }"
     1 "{ Package: 'stx:goodies/petitparser/compiler' }"
       
     2 
       
     3 "{ NameSpace: Smalltalk }"
     2 
     4 
     3 PPCListNode subclass:#PPCChoiceNode
     5 PPCListNode subclass:#PPCChoiceNode
     4 	instanceVariableNames:''
     6 	instanceVariableNames:''
     5 	classVariableNames:''
     7 	classVariableNames:''
     6 	poolDictionaries:''
     8 	poolDictionaries:''
    63 
    65 
    64 prefix
    66 prefix
    65 	^ #ch
    67 	^ #ch
    66 ! !
    68 ! !
    67 
    69 
    68 !PPCChoiceNode methodsFor:'optimizing'!
       
    69 
       
    70 optimize: params status: changeStatus
       
    71 	| retval |
       
    72 	retval := self.
       
    73 	retval := retval rewrite: params status: changeStatus.
       
    74 	retval := retval inline: params status: changeStatus.
       
    75 	
       
    76 	^ retval
       
    77 ! !
       
    78