PetitCommonMark/software/PetitParser/String.extension.st

9 lines
193 B
Smalltalk
Raw Permalink Normal View History

Extension { #name : 'String' }
{ #category : '*petitparser-core-converting' }
String >> asParser [
"Answer a parser that accepts the receiving string."
^ PPLiteralSequenceParser on: self
]