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

Adapter for Nom #14

Open
m4rw3r opened this Issue Nov 26, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@m4rw3r
Owner

m4rw3r commented Nov 26, 2015

Feature which enables an adapter-function to call out to a Nom parser.

impl<'a, I: 'a> Input<'a, I> {
    // ...
    fn nom_parser<T, E, F>(self, F) -> ParseResult<'a, I, T, E>
      where F: FnOnce(&'a [I]) -> nom::IResult<&'a [I], T, E>;
}

Use a closure if extra parameters need to be passed to the Nom parser.

Also needs to support an error type allowing for both Nom's Err type as well as Chomp's parsers::Error.

@m4rw3r m4rw3r referenced a pull request that will close this issue Nov 27, 2015

Open

NomAdapter #16

@m4rw3r m4rw3r added this to the 0.3 milestone Dec 13, 2015

@m4rw3r m4rw3r removed this from the 0.3 milestone Feb 28, 2016

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