As part of the dive into Haskell, I've tried out Parsec, which allows a pretty intuitive construction of parsers.
The result is a parser that can consume the packet template file. It does not do anything smart with it beyond some printing.
You can take a look at the two here.
The code leaves a lot to be desired - as I've used the lowest-level character parser.
Saturday, May 3, 2008
Packet template parser in Haskell
Subscribe to:
Post Comments (Atom)
1 comment:
I use biterscripting ( I believe a free download is available at biterscripting.com .) a lot on the side for template parsing. I use the
X template name Y value X / template Y
syntax. X is the open tag, Y is the close tag.
Sen Hu
Post a Comment