Re: Generic protocol builder/parser
- From: "kwikius" <andy@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 16:14:10 +0100
"rossum" <rossum48@xxxxxxxxxxxx> wrote in message
news:2nob145o2nupvul5kqsoe1d36s8cj1gst7@xxxxxxxxxx
On Mon, 28 Apr 2008 07:10:43 -0700 (PDT), oshaer@xxxxxxx wrote:
Hello everyone.Have a look at yacc (and similar) which seems to be a reasonable match
In my work many people (including me) need to write a parser and/or a
builder for a certain application-layer protocol.
We work with both ASCII and binary protocols. The protocols are
usually dynamic and have many variations according to certain
parameters.
Each programmer implements the needed componenet independently, in a
different style, using different concepts.
Is it reasonable to try and suggest a generic framework for parsing
and building various protocols?
Do you have any suggestions for a concept?
Do you know of any existing framework or tool that might help?
Thanks.
Oshaer.
to your requirement. BNF-style input and a parser in C as output.
Coolest parser IMO is SLK (use Flex for lexer:)
http://home.earthlink.net/~slkpg/
works intimately and scaleable with C, C++ Java and C#, ( not minging ugly
macro munging like YACC)
Uses LL(k) grammars ... the Only grammars for the true grammar aesthete.
regards
Andy Little
.
- References:
- Generic protocol builder/parser
- From: oshaer
- Re: Generic protocol builder/parser
- From: rossum
- Generic protocol builder/parser
- Prev by Date: Re: Generic protocol builder/parser
- Next by Date: A site for all your programming language needs
- Previous by thread: Re: Generic protocol builder/parser
- Next by thread: A site for all your programming language needs
- Index(es):
Relevant Pages
|