Closed robrix closed 9 years ago
This would be helpful in Carthage, to build Cartfile constructs out of the OGDL nodes parsed by ogdl-swift.
Most of the parsing functions are already written to do this, so wouldn’t support just be replacing the bits that assume String
with a Generic?
@davidcairns Everything is implicitly parameterized over String
input right now, because of the definition of Parser<T>.Function
.
Yeah, it’s not precisely trivial, but it’s definitely possible.
Not just collections of characters, either; arbitrary collections. I should be able to use Madness to parse memory, files, etc.