Terence Parr wrote:
Personally, given the subject matter, I would think that most people would actually prefer code snippets with lots of explanations and be referred to a download of all the source code. Generally I think people will want to 'steal' the code and adapt it to their own tasks and if you really want to read the code on the plane or something, then you can always transfer it to a suitable medium, including printing it out.Hi. Isn't it annoying though to get a description of something (say in a printed book) and then have to go to the machine to read along in the code? This also minimizes how much of it will go out of date and need changes as we change ANTLR. This is because it is unlikely that the techniques will change, but some things about ANTLR syntax definitely will; if the book has the code for a symbol table lookup and scope, then it will be very relevant, but the _expression_ parser might be totally different in a years time when you stop working for a living and start coding all that new stuff. I am thinking explicitly of the proposed _expression_ changes, error catching syntax we discussed, keyword as variable handling and so on. That's my personal opinion of course, but that's why you are discussing it here :-) Jim Ter On Jun 5, 2009, at 12:29 PM, Edwards, Waverly wrote:I am getting quite a bit out of the descriptions of the patterns. I think that by giving the descriptions you provide the framework so if someone were to look at code, it will make sense. If I had code but less description of the pattern then the moment of discovery may not occur. I am really liking the descriptions and the inline reference to other pages or chapters. I see how they are related and the mental connections are being made. I think if you read the book and look at the related source code outside of the book, it will make sense but the reverse would not be true. Also putting the full source puts pressure to leave something else out. I favor a robust pattern description. W. -----Original Message----- From: Terence Parr [mailto:[email protected]] Sent: Friday, June 05, 2009 1:40 PM To: Edwards, Waverly Cc: antlr ANTLR Subject: Re: [antlr-interest] "Language design patterns" book available in beta Glad to hear the book is meeting your expectations. I only have about 80 pages left and I just consumed 26 of those four the first of the interpreter chapters. doh! If I have to skimp to make it into only 350 pages, where should I be terse? should I skip patterns or should I include the full source code for the pattern and a less verbose description? Ter On Jun 5, 2009, at 7:00 AM, Edwards, Waverly wrote: --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~--- |
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
