PPEndOfLineParser.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 Nov 2015 19:24:45 +0000
changeset 554 9d8a84bb2ed2
parent 421 7e08b31e0dae
permissions -rw-r--r--
Oops, another type (`url`, should be `curl`) Sigh.

"{ Package: 'stx:goodies/petitparser' }"

PPParser subclass:#PPEndOfLineParser
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitParser-Parsers'
!

!PPEndOfLineParser methodsFor:'parsing'!

parseOn: aPPContext
	(aPPContext isEndOfLine) ifTrue: [ 
		^ #endOfLine
	].
	^ PPFailure message: 'End of line expected' context: aPPContext at: aPPContext position
! !