islands/PPInputEnds.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 21 May 2015 17:19:17 +0100
changeset 469 8dc4eb06316e
parent 454 a9cd5ea7cc36
permissions -rw-r--r--
Oops. re-added classes lost during merge...

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

"{ NameSpace: Smalltalk }"

PPParser subclass:#PPInputEnds
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'PetitIslands-Parsers'
!

!PPInputEnds methodsFor:'as yet unclassified'!

acceptsEpsilon
	^ true
!

exampleOn: aStream 
	aStream nextPutAll: '#End Of Input#'
!

isNullable 
	^ true
!

parseOn: aPPContext
	(aPPContext atEnd) ifFalse:
	[
		^ PPFailure message: 'end of input expected' context: aPPContext.
	].
	^ #inputEnds
! !