PPStartOfLine.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 27 Jul 2015 10:21:41 +0100
changeset 505 19d830b74322
parent 377 6112a403a52d
permissions -rw-r--r--
Post-merge fixes. PPCCodeBlock refactoring.

"{ 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
! !