[dundee] Parser howto... possibly including bisons so watch out!

Nistur nistur at googlemail.com
Tue Feb 12 15:56:21 GMT 2008


http://www.grinninglizard.com/tinyxml/ incase anyone is interested

On Feb 12, 2008 3:56 PM, Nistur <nistur at googlemail.com> wrote:

> 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
>
> Nistur
>
>
> On Feb 12, 2008 12:58 PM, Nistur <nistur at googlemail.com> wrote:
>
> > Thanks again for the help, I think the main thing here is that I want to
> > be able to work primarily on the PS2s, without transferring much from
> > the computer if possible as I will have to spend some of the development
> > time on the Uni machines hooked upto the PS2s there, so I'm basically
> > stuck with what's on the PS2s as standard, so probably just using bison
> > or yacc, or making my own (more than likely inferior) parser.
> >
> > Thanks still for the suggestions, if my current targets end up making me
> > curl up in a corner and cry then I will probably create the parser on my
> > PC and copy it over anyway
> > Anyway, off to the lab with me
> > Nistur
> >
> > Rick Moynihan wrote:
> > > I've not had chance to use it yet, but have taken an interest in
> > > Ragel, which has been used successfully by several projects, including
> > > Mongrel, hpricot and many others...  It's based on  state machines and
> > > will generate code for many languages including C,C++, Java, Ruby,
> > > Python etc...
> > >
> > > http://www.cs.queensu.ca/~thurston/ragel/<http://www.cs.queensu.ca/%7Ethurston/ragel/>
> > >
> > > More suitable might be ANTLR, which appears to have excellent
> > > documentation and even a book available.  I believe this is what is
> > > used by groovy, the scripting language for the JVM, and many other
> > > projects.  It currently generates Java, C#, C++, and Python:
> > >
> > > http://www.antlr.org/
> > >
> > > R.
> > >
> > > On 11/02/2008, Nistur <nistur at googlemail.com> wrote:
> > >
> > >> Hey, I was just wandering whether anyone had any experience making
> > >> parsers. I am currently trying to make a PS2 game (using the PS2
> > Linux
> > >> Devkit) and want to start creating config files for various things
> > >> (maybe XML, maybe custom layout, yet to be decided) and have tried
> > >> looking into writing my own parser function. I can't seem to find
> > >> anything anywhere in the form of a guide or tutorial to give me
> > >> directions. Everywhere I look says Bison.
> > >> I have tried looking for Bison tutorials and come up with very little
> > too.
> > >> Does anyone have any experience with Bison or even have any knowledge
> > on
> > >> the writing of parsers?
> > >>
> > >> Thanks
> > >> Nistur
> > >>
> > >> ------------------------------------------
> > >> http://nistur.chaosnet.org
> > >>
> > >
> > > _______________________________________________
> > > dundee GNU/Linux Users Group mailing list
> > > dundee at lists.lug.org.uk  http://dundee.lug.org.uk
> > > https://mailman.lug.org.uk/mailman/listinfo/dundee
> > > Chat on IRC, #tlug on dundee.lug.org.uk
> > >
> > >
> >
> >
> > --
> > ------------------------------------------
> > http://nistur.chaosnet.org
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/dundee/attachments/20080212/08920306/attachment-0001.html


More information about the dundee mailing list