compiler/PPCTokenStarMessagePredicateNode.st
changeset 391 553a5456963b
child 392 9b297f0d949c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compiler/PPCTokenStarMessagePredicateNode.st	Sun Oct 26 01:03:31 2014 +0000
@@ -0,0 +1,29 @@
+"{ Package: 'stx:goodies/petitparser/compiler' }"
+
+PPCStarMessagePredicateNode subclass:#PPCTokenStarMessagePredicateNode
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'PetitCompiler-Nodes'
+!
+
+PPCTokenStarMessagePredicateNode comment:''
+!
+
+!PPCTokenStarMessagePredicateNode methodsFor:'as yet unclassified'!
+
+asFast
+	^ self
+!
+
+compileWith: compiler effect: effect id: id
+	compiler startMethod: id.
+	compiler add: '[ context peek ', message,' ] whileTrue: ['.
+	compiler indent.
+	compiler add: 'context next'.
+	compiler indent.
+	compiler dedent.
+	compiler add: '].'.
+ ^ compiler stopMethod.
+! !
+