diff -r 17ba167b8ee1 -r 553a5456963b compiler/PPCAndNode.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compiler/PPCAndNode.st Sun Oct 26 01:03:31 2014 +0000 @@ -0,0 +1,33 @@ +"{ Package: 'stx:goodies/petitparser/compiler' }" + +PPCDelegateNode subclass:#PPCAndNode + instanceVariableNames:'' + classVariableNames:'' + poolDictionaries:'' + category:'PetitCompiler-Nodes' +! + +PPCAndNode comment:'' +! + +!PPCAndNode methodsFor:'as yet unclassified'! + +compileWith: compiler effect: effect id: id + + compiler startMethod: id. + compiler addVariable: 'memento'. + compiler addVariable: 'retval'. + compiler add: (compiler smartRemember: child). + + compiler add: 'retval :='. + compiler callOnLine: (child compileWith: compiler). + compiler add: (compiler smartRestore: child). + + compiler add: '^ retval'. + ^ compiler stopMethod. +! + +prefix + ^ #and +! ! +