islands/PPInputEnds.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 26 May 2015 07:27:15 +0100
changeset 473 90eb2d1f7bed
parent 454 a9cd5ea7cc36
permissions -rw-r--r--
Oops, merged code which contained Pharoism's

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