Where can I find parser for config file of Apache?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
Bundy
I live to help wx-kind
I live to help wx-kind
Posts: 153
Joined: Fri Apr 29, 2005 9:46 am
Location: Poland

Where can I find parser for config file of Apache?

Post by Bundy » Mon May 09, 2005 9:53 am

I need to write a program under devcpp to configure Apache and I hear that is some library that help parsing httpd.conf file of Apache but I can't find it. I will be gratefull for any help :)

eco
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 203
Joined: Tue Aug 31, 2004 7:06 pm
Location: Behind a can of Mountain Dew
Contact:

Post by eco » Mon May 09, 2005 11:25 am

I see the perl module libapache-configfile-perl (Read only. No write). My quick google search didn't reveal any C/C++ parsers but I only looked through a couple of pages of results. The Apache config format is well defined though. It shouldn't be too hard to write your own.

Bundy
I live to help wx-kind
I live to help wx-kind
Posts: 153
Joined: Fri Apr 29, 2005 9:46 am
Location: Poland

Oki, but

Post by Bundy » Mon May 09, 2005 12:09 pm

I dont whant write new parser because it's all about time. I will need to change only some options now, but in the future maybe I will do somthing more (i the future I don't wont countinuing writing parser just call his methods :) )

Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg » Mon May 09, 2005 1:07 pm

Soon I will release wxLexer. This is a library with which you can define tokens, and easily parse config files. Alas, that is when it gets finished ;-) I am now working on wxTreeMultiCtrl and also a new front-end for CMake GUI. I promised those guys from KitWare I would take a look at it.

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Mon May 09, 2005 1:49 pm

Hi!
Jorg: Sounds great!
BTW: You should update your signature. It should point to http://www.solidsteel.nl/jorg/ I guess :D
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

Post Reply