Yes, sure ++. And the first link I posted is the start page for the entire HOP download. But I pointed especially to chapter 8, Parsing, because of the general subject, parsing, because of the lexer examples and because of the calculator example, which goes a long way toward solving the OP problem. And also because I think this chapter can, to a large extent, be read without having read the previous chapters.
Having said that, I would really recommend reading the entire book, one of the best books about CS I've read in the last decade, it has definitely changed my way of programming, even in other languages than Perl. And BTW, I first read it on-line, but I quickly decided to buy a dead-tree version, it is really worth the money.
| [reply] |
I just wanted to let people know it wasn't the one-chapter teaser that you often get from publishers, e.g., O'Reilly.
I agree that HOP is that rarest of creatures, a CS book that's a good read. BTW, congratulations if you got through the whole thing on-line; I have the electronic version for quick reference, but I'm of the generation that needs deadwood for comfortable, concentrated study. (Update: And I've still got my slide-rule! And you kids get off my lawn!)
Give a man a fish: <%-(-(-(-<
| [reply] [d/l] |
No, I was not able to read the whole book on line, only perhaps the 5 first chapters, but then I too often had to refer back to previous passages, this was getting uncomfortable, that's why I bought the paper edition. (And I've also got my slide-rule.)
| [reply] |