--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/compiler/PPCNotMessagePredicateNode.st Sun Oct 26 01:03:31 2014 +0000
@@ -0,0 +1,46 @@
+"{ Package: 'stx:goodies/petitparser/compiler' }"
+
+PPCAbstractPredicateNode subclass:#PPCNotMessagePredicateNode
+ instanceVariableNames:'message'
+ classVariableNames:''
+ poolDictionaries:''
+ category:'PetitCompiler-Nodes'
+!
+
+PPCNotMessagePredicateNode comment:''
+!
+
+!PPCNotMessagePredicateNode methodsFor:'accessing'!
+
+asInlined
+ ^ PPCInlineNotMessagePredicateNode new
+ predicate: predicate;
+ message: message;
+ name: name;
+ yourself
+!
+
+firstCharParser
+ ^ (PPPredicateObjectParser on: predicate message: 'predicate not expected') not.
+!
+
+message
+
+ ^ message
+!
+
+message: anObject
+
+ message := anObject
+! !
+
+!PPCNotMessagePredicateNode methodsFor:'as yet unclassified'!
+
+bodyOfPredicate: compiler
+ compiler addOnLine: '(context peek ', message, ')'.
+ compiler indent.
+ compiler add: ' ifTrue: [ self error: '' predicate not expected'' ]'.
+ compiler add: ' ifFalse: [ nil ].'.
+ compiler dedent.
+! !
+