Subject: Re: Practical encoding / decoding of text format
From: rpw3@rpw3.org (Rob Warnock)
Date: Sun, 10 Feb 2008 05:43:27 -0600
Newsgroups: comp.lang.lisp
Message-ID: <wKWdnfLo1bHCfjPanZ2dnUVZ_q2hnZ2d@speakeasy.net>
<tzach.livyatan@gmail.com> wrote:
+---------------
| I need to develop a prototype of an application which, among other,
| encode and decode SIP messages (RFC 3261 http://www.ietf.org/rfc/rfc3261.txt).
| 
| The definitions are given in a ABNF format, but I do not necessarily
| needs a direct translation from ABNF to classes
| Lisp have many alternatives to do that, starting from develop a parser
| from scratch or use ready made packages.
| I'm looking for the practical, quickest solution I can find.
+---------------

Since, as RFC 3261 says, SIP Request and Response messages "use the
basic format of RFC 2822", and since "Except for the above difference
in character sets, much of SIP's message and header field syntax
is identical to HTTP/1.1", I'd start with any old Lisp library you
have handy which knows how to read mail or HTTP headers -- especially
mail headers, since there are things in SIP that closely resemble
email addresses -- then tweak it for the syntactic differences of SIP.

Some possible places to start looking:

    http://www.cliki.net/rfc2822
    http://www.cliki.net/mel-base
    http://www.cliki.net/CL-MIME


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607