PPEndOfLineParser.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 18 Aug 2015 13:09:42 +0100
changeset 519 1563dce3c5b4
parent 421 7e08b31e0dae
permissions -rw-r--r--
Portability: fixed RBLiteralValueNode>>isLiteralNumber to work under both - Pharo and Smalltalk/X

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