Subj : Re: Parser generators for a simple language form. How? To : comp.programming From : ed_davis2 Date : Tue Aug 02 2005 04:10 pm Jon Ripley wrote: > > Any suggestions for tools that I can use which would be appropriate for > generating parsers for languages of this type? They should not be too > difficult to learn as I want to spend the time porting the code rather > than spending months working out how to use the parser generator. I have > looked into yacc and bison but these don't seem to be appropriate and > appear to have a huge learning curve. Try Coco/R, a very easy to use parser generator, that generates recursive descent parsers. It is available in several different languages (C, C++, Java, C#, Pascal, Oberon). There is a book about it based on the C and C++ versions at: http://www.scifac.ru.ac.za/compilers/ I personally think it is much easier to use than YACC and Bison. The book gives numerous examples, and the Taste example that comes with the source code of Coco/R should get you up and running fairly quickly. .