Giter Site home page Giter Site logo

Comments (4)

josevalim avatar josevalim commented on July 28, 2024

@jjl the issue is that we heavily inline code nimble_parsec. So for example, the datetime parser in the readme, when given something like "2010-04-17T" will return an error while it is just incomplete, since we attempt to match everything or nothing at all. So basically, you'd need to track completion on the side, because you simply can't rely on nimble_parsec to do that.

I wouldn't oppose if the :error tuple returns a new element, which is an anonymous function representing the parsing stack. This anonymous function can be invoked again with a binary to resume parsing. This should be cheap enough so we can always do it without hiding it behind an option.

Then we need tests for each combinator. Once this is done, it should be good for merging. A PR is appreciated.

Thanks!

from nimble_parsec.

josevalim avatar josevalim commented on July 28, 2024

Ping?

from nimble_parsec.

jjl avatar jjl commented on July 28, 2024

As discussed in IRC just now, I think it's a good direction to go in, but I haven't had the time to work on it recently. Hopefully the big crunch I'm under right now will lift a bit soon.

from nimble_parsec.

josevalim avatar josevalim commented on July 28, 2024

Closing this for now.

from nimble_parsec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.