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/islands' }"
"{ NameSpace: Smalltalk }"
PPDelegateParser subclass:#PPNonEmptyParser
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'PetitIslands-Parsers'
!
PPNonEmptyParser comment:'I return failure, if the delegate parser did not consumed any input.'
!
!PPNonEmptyParser methodsFor:'parsing'!
parseOn: aPPContext
| position result |
position := aPPContext position.
result := parser parseOn: aPPContext.
(((position == aPPContext position) and: [ aPPContext atEnd not ]) and: [ result isPetitFailure not ]) ifTrue: [
^ PPFailure message: 'Epsilon parse not allowed' context: aPPContext at: position
].
^ result
! !
!PPNonEmptyParser class methodsFor:'documentation'!
version_HG
^ '$Changeset: <not expanded> $'
! !