Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse collections other than strings #43

Closed
robrix opened this issue Dec 16, 2014 · 4 comments · Fixed by #67
Closed

Parse collections other than strings #43

robrix opened this issue Dec 16, 2014 · 4 comments · Fixed by #67
Assignees
Milestone

Comments

@robrix
Copy link
Owner

robrix commented Dec 16, 2014

Not just collections of characters, either; arbitrary collections. I should be able to use Madness to parse memory, files, etc.

@robrix robrix added this to the 1.0 milestone Dec 16, 2014
@jspahrsummers
Copy link
Collaborator

This would be helpful in Carthage, to build Cartfile constructs out of the OGDL nodes parsed by ogdl-swift.

@davidcairns
Copy link
Contributor

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?

@jspahrsummers
Copy link
Collaborator

@davidcairns Everything is implicitly parameterized over String input right now, because of the definition of Parser<T>.Function.

@robrix
Copy link
Owner Author

robrix commented Feb 16, 2015

Yeah, it’s not precisely trivial, but it’s definitely possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants