Many (maybe most) SIP stacks use some kind of ABNF compiler to help with
encoding and decoding of messages, and I think the suggestions for ANTLR
especially is appropriate (there are tools much older than ANTLR also).

Please understand, however, that the ABNF is not a COMPLETE description of
the message encoding and decoding.  The text explains that there are many
cases where the ABNF as written will permit things that are not legal SIP,
and there are cases where the ABNF is not quite consistent or complete.

We made a major effort in 3261 to get as complete and consistent ABNF as we
could, but sometimes clarity is more important that completeness and
consistency.  I also call your attention to the bugzilla list:
http://bugs.sipit.net/reports.cgi

where you can find several reported errors in the ABNF.

Brian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Didier
CHEVALIER
Sent: Wednesday, May 31, 2006 4:04 AM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Re: [Sip-implementors] ABNF to c conversion

Have look to

   - ANTLR: http://www.antlr.org/


   - APG (ABNF Parser Generator): http://www.coasttocoastresearch.com/

Regards

Didier

2006/5/31, Shyamsundar, Purkayastha (Purkayastha)** CTR ** <
[EMAIL PROTECTED]>:
>
>
> Hi All
>
> I have a query regarding ABNFs
>
> Actually I am looking out for a tool which can convert a ABNF into c
> source
> code
> So then I can just write one ABNF file for all the SIP messages and
> headers
> and the tool can generate the entire source code whcih will contain the
> data
> structures and the encoding & decoding routines of SIP peer messages.
>
> This is similar to what we do with the MIBs in SNMP
>
> Does anyone have any idea
>
> thanks in advance
> Shyam
>
>
>
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to