I often use parser combinator libraries, but I've never written one. What are good resources for getting started? In case it matters, I'm using Julia, a functional (but not lazy) language.
Tell me more
×
Programmers Stack Exchange is a question and answer site for
professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.
|
This one is in Haskell (which is Lazy), but has some nice ideas: http://eprints.nottingham.ac.uk/237/1/monparsing.pdf The Boost.Spirit website has very nice ideas about implementing parser combinators too. Boost.Spirit uses Boost.Phoenix extensively, which is a library of lazy containers (so it's effectively lazy code too): |
|||
|
I was working on a simple parser combinator library in C++. I think the following functions are all you really need as a foundation for a library. I couldn't quickly tell if Julia has anything like generics but it will be very helpful if it does.
|
|||
|