On 02/06/04 12:49, Balaji Thoguluva wrote:
Hi,
I have a long BNF (Backus-naur form) for parsing a protocol message. Suppose I want to implement a BNF like this
Response = Status-line
*(message-header)
CRLF
[Message-body]
status-Line = SIP-Version SP Status-Code SP Reason-Phrase CRLF
SP = space character
..................
.................
Like this I have a very long BNF. How can I implement this BNF and parse a message that satisfies this BNF in perl ?
Any suggestions would be of great help to me.

Have you looked at Parse::RecDescent: <http://search.cpan.org/dist/Parse-RecDescent/>

Randy.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to