parsing braces question
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

parsing braces question

From: Charles Heizer <heizer1@llnl.gov>
Date: Mon Mar 06 2006 - 01:47:24 CET

Hello,
I'm trying to write a tcl script to parse a BIND DNS config file and
I'm haing some trouble trying to parse the braces.

example --

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

I would like to parse this so I can read the configuation and write it
back out to make changes. Any suggestions are welcome.

Thanks,
- Charles
Received on Sun Apr 30 02:24:02 2006