Ok, I asked the lab assistant and he said he had used TinyXML before on console games and it had worked very well (it's just 4 cpps and 2 headers so fits easily) so if anyone else needs an XML parser, havea look at that. Haven't actually used it mind, but it looks promising :) Just managed to figure out my Makefile so it'll happily build it into my project and allow me to create more libs to use for it<br>
<br>Nistur<br><br><div class="gmail_quote">On Feb 12, 2008 12:58 PM, Nistur <<a href="mailto:nistur@googlemail.com">nistur@googlemail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks again for the help, I think the main thing here is that I want to<br>be able to work primarily on the PS2s, without transferring much from<br>the computer if possible as I will have to spend some of the development<br>
time on the Uni machines hooked upto the PS2s there, so I'm basically<br>stuck with what's on the PS2s as standard, so probably just using bison<br>or yacc, or making my own (more than likely inferior) parser.<br>
<br>Thanks still for the suggestions, if my current targets end up making me<br>curl up in a corner and cry then I will probably create the parser on my<br>PC and copy it over anyway<br>Anyway, off to the lab with me<br>Nistur<br>
<div><div></div><div class="Wj3C7c"><br>Rick Moynihan wrote:<br>> I've not had chance to use it yet, but have taken an interest in<br>> Ragel, which has been used successfully by several projects, including<br>> Mongrel, hpricot and many others... It's based on state machines and<br>
> will generate code for many languages including C,C++, Java, Ruby,<br>> Python etc...<br>><br>> <a href="http://www.cs.queensu.ca/%7Ethurston/ragel/" target="_blank">http://www.cs.queensu.ca/~thurston/ragel/</a><br>
><br>> More suitable might be ANTLR, which appears to have excellent<br>> documentation and even a book available. I believe this is what is<br>> used by groovy, the scripting language for the JVM, and many other<br>
> projects. It currently generates Java, C#, C++, and Python:<br>><br>> <a href="http://www.antlr.org/" target="_blank">http://www.antlr.org/</a><br>><br>> R.<br>><br>> On 11/02/2008, Nistur <<a href="mailto:nistur@googlemail.com">nistur@googlemail.com</a>> wrote:<br>
><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>>> Thanks<br>>> Nistur<br>>><br>>> ------------------------------------------<br>>> <a href="http://nistur.chaosnet.org" target="_blank">http://nistur.chaosnet.org</a><br>
>><br>><br>> _______________________________________________<br>> dundee GNU/Linux Users Group mailing list<br>> <a href="mailto:dundee@lists.lug.org.uk">dundee@lists.lug.org.uk</a> <a href="http://dundee.lug.org.uk" target="_blank">http://dundee.lug.org.uk</a><br>
> <a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>> Chat on IRC, #tlug on <a href="http://dundee.lug.org.uk" target="_blank">dundee.lug.org.uk</a><br>
><br>><br><br><br></div></div><font color="#888888">--<br>------------------------------------------<br><a href="http://nistur.chaosnet.org" target="_blank">http://nistur.chaosnet.org</a><br><br></font></blockquote>
</div><br>