Ask a Question related to PERL Beginners, Design and Development.
-
Balaji thoguluva #1
How to Implement a BNF syntax in perl?
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.
Thanks,
Balaji
Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.
Balaji thoguluva Guest
-
Perl Syntax Highlighting
Greetings fellow members, I am in search for Perl/CGI definitions for use within CodeColoring.xml and Colors.xml. Perl syntax highlighting would... -
[ANNOUNCE] Apache::Syntax::Highlight::Perl 1.00
The uploaded file Apache-Syntax-Highlight-Perl-1.00.tar.gz has entered CPAN as file:... -
my in the perl syntax
Well I am very new to Perl. I have read Oreily's Camel book, but haven't found any thing about my that is used in any of the code. e.g my $var... -
Simple Perl code/syntax question
> Hallo everyone and thank you for your previous help Well there is the FAQ about case statements: perldoc -q 'switch or case' In your case... -
Perl Math Syntax
Hello peoples, Needs some help getting a ... well ... pretty basic math script working but the solution eludes me .... I have a text file called... -
Wolf Blaum #2
Re: How to Implement a BNF syntax in perl?
For Quality purpouses, Balaji Thoguluva 's mail on Friday 06 February 2004
18:49 may have been monitored or recorded as:
Hi> Hi,Maybe Config::Natural is good to you.> 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.
Wolf
Wolf Blaum Guest
-
Randy W. Sims #3
Re: How to Implement a BNF syntax in perl?
On 02/06/04 12:49, Balaji Thoguluva wrote:
Have you looked at Parse::RecDescent:> 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.
<http://search.cpan.org/dist/Parse-RecDescent/>
Randy.
Randy W. Sims Guest



Reply With Quote

