From: Sam Roberts Date: 2005-03-25T04:09:15+09:00 Subject: Re: [ANN] Syntax 0.7.0 Quoting flgr@ccan.de, on Fri, Mar 25, 2005 at 02:34:48AM +0900: > Florian Gross wrote: > > >Ripper basically is Ruby's integrated Ruby parser. It will invoke > >callbacks for every kind of construct it encounters. > > > >This code snippet ought to get you started with it: > > Oh, and you need to do require 'ripper' before you can use it, of course. There is no files released, and the cvs is not building for me, I'll have to try later. [ensemble] ~/p/ruby/rtags/other/ripper/ripper $ make make: Entering directory `/Users/sam/p/ruby/rtags/other/ripper/ripper' touch parse.y /opt/local/bin/ruby tools/preproc.rb parse.y > ripper.y bison -t -v -oripper.c ripper.y gperf -p -j1 -i 1 -g -o -t -N rb_reserved_word -k'1,3,$' keywords > lex.c /opt/local/bin/ruby tools/list-parse-event-ids.rb parse.y | /opt/local/bin/ruby tools/generate-eventids1.rb > eventids1.c gcc -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common -I. -I/opt/local/lib/ruby/1.8/powerpc-darwin6.8 -I/opt/local/lib/ruby/1.8/powerpc-darwin6.8 -I. -O -pipe -I/opt/local/include -DRIPPER -c ripper.c -o ripper.o cc -dynamic -bundle -undefined suppress -flat_namespace -L"/opt/local/lib" -o ripper.bundle ripper.o -lruby -ldl -lobjc ld: multiple definitions of symbol _rb_reserved_word ripper.o definition of _rb_reserved_word in section (__TEXT,__text) /opt/local/lib/libruby.dylib(parse.o) definition of _rb_reserved_word make: *** [ripper.bundle] Error 1 Sam