diff -r b2f2f15cef26 -r 7e08b31e0dae PPStartOfLineParser.st --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PPStartOfLineParser.st Mon Nov 24 00:09:23 2014 +0000 @@ -0,0 +1,18 @@ +"{ Package: 'stx:goodies/petitparser' }" + +PPParser subclass:#PPStartOfLineParser + instanceVariableNames:'' + classVariableNames:'' + poolDictionaries:'' + category:'PetitParser-Parsers' +! + +!PPStartOfLineParser methodsFor:'parsing'! + +parseOn: aPPContext + (aPPContext isStartOfLine) ifTrue: [ + ^ #startOfLine + ]. + ^ PPFailure message: 'Start of line expected' context: aPPContext at: aPPContext position +! ! +