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 over sliceables #67

Merged
merged 19 commits into from
Feb 21, 2015
Merged

Parse over sliceables #67

merged 19 commits into from
Feb 21, 2015

Conversation

robrix
Copy link
Owner

@robrix robrix commented Feb 21, 2015

Madness’ combinators can parse over recursive sliceables (i.e. S: Sliceable where S.SubSlice == S).

  • %x should work for x: S where S: Sliceable, S.SubSlice == S.
  • %x should work for x: S.Generator.Element where S: Sliceable, S.SubSlice == S, S.Generator.Element: Equatable.
  • Tests.

Note that Sliceable requires CollectionType. I’ve opened an issue about relaxing the constraint to CollectionType.

Fixes #43.

/cc @jspahrsummers

@robrix robrix changed the title Parse over sliceables [WIP] Parse over sliceables Feb 21, 2015
@robrix robrix changed the title [WIP] Parse over sliceables Parse over sliceables Feb 21, 2015
robrix added a commit that referenced this pull request Feb 21, 2015
@robrix robrix merged commit 3cbcc35 into master Feb 21, 2015
@robrix robrix deleted the parse-over-sliceables branch February 21, 2015 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse collections other than strings
1 participant