Just wondering when the chapter on parsers will be ready?
It’s proving to be the trickiest of all the chapters, perhaps unsurprisingly — it’s difficult to distill such a broad subject down to a single chapter and be left with something useful.
For that reason it will likely be the last chapter released to beta, which glancing at the schedule should mean that it’s released in 3–4 weeks’ time from now.
If anyone has any suggestions for this chapter, I’d particularly welcome them!
re: parser suggestions - use Parslet !!
Absolutely — I’m a huge fan of Parslet and it’s basically the only way (in my view) to create a practical guide to writing parsers that fits in a chapter and isn’t overwhelmingly theoretical.
Will you be touching on Racc and StringScanner too?
StringScanner is what I’m using as an introduction, since it introduces the idea of moving through a string and consuming text as you go; then I’m going onto to Parslet. I didn’t think Racc was sufficiently different from Parslet to warrant inclusion, but I’m happy to be persuaded otherwise!
I had try to use Parslet. It’s useful tool to parse the lines of file or stream … but probably for a silly reason, I’m completely lost when I must work with a repetition of a multi-line structured block. My problem is ‘where to put the ‘newline’ rule ?’. I think to give up with Parslet because of this.
I’ve described my problem here : http://stackoverflow.com/questions/43295971/ruby-parslet-and-structured-multi-line-block-where-to-put-the-newline-statement
As your are ‘a huge fan’ of Parslet, could you give me an advice ?
I don’t forget to say ‘Thank you’ for your book, even the beta versions where very useful for me.