Richard,

 If I remember correctly there is an Orielly book on java parsers. However, for most 
of your parsing needs you would probably do better to go with one of the parser 
generators. In the long run they are much more maintainable and easy to understand, 
even if they can be a bit hard to get your mind around if you have never used them 
before.

 I personally tend towards jflex and cup becuase they match the mainstream generators 
for C better and hence (for the most part) that documentation tends to cross over. 
There are quite a few others as well. Someone already mentioned JavaCC and Metamata 
Parse, if parse speed is not an issue Sable is worth looking into as well. 

Thanks,
Eric

-----Original Message-----
From: Richard O. Hammer [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 8:42 PM
To: Java Users Group
Subject: [Juglist] book wanted on parsing of protocols


I have been writing Java code to parse SMTP, making up code to solve 
each new problem I face, but I suspect there may be some theory about 
parsing languages (and protocols?) which it would do me well to know 
and employ.  So I am hoping that somebody on this list might recommend 
a book.

 From a course in translators (COMP 240, UNC-CH, 19 years ago) I 
remember learning a systematic way that a grammar could be turned into 
code.  That seemed so intellectually satisfying that I keep hoping 
that a refresher course (or a good book) will render me able to 
systematically produce code to parse protocols.

I am looking at _The Theory of Parsing, Translation, and Compiling_, 
Volume 1: Parsing, by Aho and Ullman, 1972.  It is in the general 
ballpark.  But I'd prefer something more applied (to Internet 
protocols if possible) and more up to date.

Any suggestions?

Thank you,
Rich Hammer


_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

** CONFIDENTIALITY NOTICE:  This e-mail and its attachments may contain confidential, 
proprietary, and/or privileged information which is legally protected from disclosure. 
Any review, retransmission, dissemination, or other use of this information by persons 
or entities other than the intended recipient is strictly prohibited. If you received 
this e-mail in error, please notify the sender immediately and appropriately delete 
the material from your computer. Thank you.




_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to