Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
- All source *.st files are now Unicode UTF8 without BOM
Files are in two groups (fileOut works this way in Smalltalk/X):
- containing a unicode character have "{ Encoding: utf8 }" at the header
- ASCII only are without the header
"{ Package: 'stx:goodies/petitparser' }"
PPParser subclass:#PPPluggableParser
instanceVariableNames:'block'
classVariableNames:''
poolDictionaries:''
category:'PetitParser-Parsers'
!
!PPPluggableParser class methodsFor:'instance creation'!
on: aBlock
^ self new initializeOn: aBlock
! !
!PPPluggableParser methodsFor:'accessing'!
block
"Answer the pluggable block."
^ block
! !
!PPPluggableParser methodsFor:'initialization'!
initializeOn: aBlock
block := aBlock
! !
!PPPluggableParser methodsFor:'parsing'!
acceptsEpsilon
^ false
!
parseOn: aPPContext
| memento result |
memento := aPPContext remember.
result := block value: aPPContext.
result isPetitFailure
ifTrue: [ aPPContext restore: memento ].
^ result
! !
!PPPluggableParser class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPPluggableParser.st,v 1.4 2014-03-04 14:33:12 cg Exp $'
!
version_CVS
^ '$Header: /cvs/stx/stx/goodies/petitparser/PPPluggableParser.st,v 1.4 2014-03-04 14:33:12 cg Exp $'
!
version_HG
^ '$Changeset: <not expanded> $'
!
version_SVN
^ '$Id: PPPluggableParser.st,v 1.4 2014-03-04 14:33:12 cg Exp $'
! !