GithubHelp home page GithubHelp logo

Comments (5)

isaacvando avatar isaacvando commented on July 28, 2024 1

Agus and I talked about how we should approach parsing yesterday, and with the idea we have in mind at the moment, I don't think it makes sense to have a separate parser combinators chapter. Agus is going to write his HTML parser using a direct approach to passing state and with good error messages. Then in the template engine chapter, I can build on the approach Agus took earlier to introduce parser combinators. The template chapter should work well as a motivating example because it will show how the other approach would get unwieldy, and how combinators make the code easier to read and write.

from book-of-examples.

monmcguigan avatar monmcguigan commented on July 28, 2024 1

Just read through the zulip thread, that all makes sense to me. What I had in mind for this proposal was based on an implementation for a simple parser combinator library I worked on in Scala, here. I like your plan for showing the problem you're trying to solve first, then abstracting over it in the later chapter, so having a whole other chapter decided to parsers is probably a little overkill.

from book-of-examples.

rtfeldman avatar rtfeldman commented on July 28, 2024 1

I don't know if it's the right fit for this book, but I think there's an opportunity to talk about more than just the API design of parser combinators. If each chapter is supposed to be about an hour, I definitely think an "advanced parsing" or "advanced parser combinators" chapter could fill up an hour easily!

For example, the "Backtracking" and "Tracking Context" (and error messages considerations) mentioned in elm/parser can take awhile to explain, but are very useful things to know about when working with parsers!

from book-of-examples.

isaacvando avatar isaacvando commented on July 28, 2024

Agus and myself are both doing some parsing for our chapters (the html parser and html template). I opened a topic on Zulip to discuss how we should introduce parsing in the book. I think having a chapter for parser combinators could definitely fit in!

from book-of-examples.

gvwilson avatar gvwilson commented on July 28, 2024

👍 from me - @monmcguigan will this be in addition to the JSON codec?

from book-of-examples.

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.