From: ptkwt@... (Phil Tomson) Date: 2005-02-15T18:39:58+09:00 Subject: Re: [ANN] ruby-ast-c++ 0.0.1 In article <87ekfjj6ws.fsf@optushome.com.au>, George Ogata wrote: >ptkwt@aracnet.com (Phil Tomson) writes: > >> In article , >> Alexander Kellett wrote: >>>over the last few hours i finally got around to writing >>>an elsa based c++ "parsetree" style library for ruby. >>> >>>an example usage is parsing of the Qt header qstring.h, and >>>listing of all the method names defined in QString. >>> >>>anyone with interest please contact me for sources, >>>Alex >>> >> >> >> Definately interested. > >I've got a C99 (not C++) AST-constructor if you're interested too. >Pure ruby (right down to the lexer) though, so pretty slow at the >moment. The AST nodes are of different Node classes rather than just >being nested arrays. You can also use it to parse snippets (e.g., >just a statement or a type name or something). > >If you're interested. Yes, please share. These sorts of things could really help us to translate the Ruby C libs into pure Ruby. Phil