From: Simon Vandemoortele Date: 2003-04-27T19:52:39+09:00 Subject: Re: Parsing C++ with Ruby On Sat, 26 Apr 2003 at 16:48 GMT, Sam Roberts wrote: > A recent Dr. Dobbs Journal described extensions made to gcc so that it > dumps the parsed c or c++ syntax as xml. They did this because existing > non-compiler parsers were all aproximations of the c++ syntax, and > didnt' work with complex templated c++ code. They used it to build > wrappers in some other language (swig-like), but you could use this to > get an xml representation of the code, and then your dotfile generator > would only have to parse xml, for which there are many tools. I had never heard about this, very interesting. Am I to gather from your answer that you do not recommend trying to match multi-line C++ expressions with Ruby. Simon -- There are 10 types of people in the world... those who understand binary and those who don't.