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

Nistur nistur at googlemail.com
Tue Feb 12 12:58:20 GMT 2008


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/
>
> 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




More information about the dundee mailing list