does this help<br><br>http://xmlsoft.org/examples/index.html#parse1.c<br><br><br>storing configration data as xml files seems to be popular these days..<br><br>http://dinosaur.compilertools.net/yacc/index.html<br><br>yacc may help you?<br><br>I'd go with xml<br><br>http://expat.sourceforge.net/<br><br><br>may be interesting..<br><br>what exactly are you trying to do? and what tools do you have aviable on<br>the ps2. if you just doing rough development, and depending on<br>the size of the config, you could just pass stuff at the cmd line.<br><br>have a look at the icecast2 source code, that parses and xml file<br>and create a configuration, using that code you can probably have something<br>running quite quickly.<br><br><br><b><i>Barry Carr <barry@benericht.co.uk></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <br>Nistur wrote:<br>> Hey, I was just wandering whether anyone
had any experience making <br>> parsers. I am currently trying to make a PS2 game (using the PS2 Linux <br>> Devkit) and want to start creating config files for various things <br>> (maybe XML, maybe custom layout, yet to be decided) and have tried <br>> looking into writing my own parser function. I can't seem to find <br>> anything anywhere in the form of a guide or tutorial to give me <br>> directions. Everywhere I look says Bison.<br>> I have tried looking for Bison tutorials and come up with very little too.<br>> Does anyone have any experience with Bison or even have any knowledge on <br>> the writing of parsers?<br><br>Hi Nistur,<br><br>I'll admit I know absolutely nothing about Bison but it sounds a bit heavy-weight just to parse some <br>config files. If you want to save config data as XML then get an XML lib do the work for you. Other <br>than that, you can do a great deal by just reading the file and parsing the contents with regular
<br>expressions.<br><br>Another config format you might want to consider is JSON (JavaScript Object Notation). IMHO, is much <br>easier to deal with than XML and directly executable by JavaScript (not that you'll want that, I <br>suppose). You can get open-source JSON parsers for C++ (I'm assuming you're working with C++).<br><br>HTH<br><br>Cheers<br>Barry<br><br>> <br>> Thanks<br>> Nistur<br>> <br>> ------------------------------------------<br>> http://nistur.chaosnet.org<br>> <br>> <br>> _______________________________________________<br>> dundee GNU/Linux Users Group mailing list<br>> dundee@lists.lug.org.uk http://dundee.lug.org.uk<br>> https://mailman.lug.org.uk/mailman/listinfo/dundee<br>> Chat on IRC, #tlug on dundee.lug.org.uk<br>> <br><br>_______________________________________________<br>dundee GNU/Linux Users Group mailing list<br>dundee@lists.lug.org.uk
http://dundee.lug.org.uk<br>https://mailman.lug.org.uk/mailman/listinfo/dundee<br>Chat on IRC, #tlug on dundee.lug.org.uk<br></blockquote><br><p> 
<hr size=1> Support the World Aids Awareness campaign this month with <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=51947/*http://uk.promotions.yahoo.com/forgood/">Yahoo! for Good</a>