Wireshark-dev: Re: [Wireshark-dev] NPL to Wireshark compiler/converter
From: Tyson Key <[email protected]>
Date: Sat, 21 Jul 2012 19:14:22 +0100
Hi Richard,

That sounds fairly impressive - even if it doesn't do much, right now. 

I don't know if you've already seen them; or even if they're helpful, but have you had a look at http://nmparsers.codeplex.com/SourceControl/list/changesets for examples of parser code? (I believe that most files are covered under the BSD Licence, if the tab on that project microsite is to be believed - so it should be safe to use them for what you're trying to do (but don't quote me on that)).

I look forward to seeing more, soon...

Tyson.

2012/7/21 Richard Sharpe <[email protected]>
I have started working on an NPL to Wireshark compiler/converter ...

At this stage all I have is an initial Flex scanner file and a simple
Lemon grammar and some test files. The grammar is conflict free, but
not necessarily complete (lacking in examples and there does not seem
to be a spec from Microsoft :-(). I have been working from the
example/s in the Microsoft document I posted a link to a few days ago
called "Writing a Parser from Wire to Window."

The next steps are to:

1. Get the grammar working more, and in particular, generate an AST,
2. Add more to the grammar
3. Generate dissectors in C.

What I have is attached for those who are curious and for feedback.

--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe



--
                                          Fight Internet Censorship! http://www.eff.org
http://vmlemon.wordpress.com | Twitter/FriendFeed/Skype: vmlemon | 00447934365844