PPStartOfLine.st
changeset 377 6112a403a52d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PPStartOfLine.st	Fri Oct 03 02:33:08 2014 +0100
@@ -0,0 +1,18 @@
+"{ Package: 'stx:goodies/petitparser' }"
+
+PPParser subclass:#PPStartOfLine
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'PetitParser-Parsers'
+!
+
+!PPStartOfLine methodsFor:'parsing'!
+
+parseOn: aPPContext
+	(aPPContext isStartOfLine) ifTrue: [ 
+		^ #startOfLine
+	].
+	^ PPFailure message: 'Start of line expected' context: aPPContext at: aPPContext position
+! !
+