PDA

View Full Version : Parser for file with dhcpd.conf like syntax



louis_nichols
July 22nd, 2007, 11:18 AM
Hi!

I have this project at work where I have to parse a file with syntax just like dhcpd.conf.

Can someone suggest a place where I can find a parser for such a file, that will return the info?

My project is in python, but the algorithm would be enough, and I can translate it.

Thanks

Stephen Howard
July 22nd, 2007, 02:00 PM
There's a script on this posting (http://www.redhat.com/archives/fedora-devel-list/2003-November/msg00127.html). Alternatively, just look at the dhcp source.