[ANN] Syntax 0.7.0

ripper is part of Ruby 1.9 which you can get from the cvs HEAD branch.

Cheers,
Kent.

Jamis Buck <jamis@37signals.com> writes:

···

On Mar 24, 2005, at 1:34 PM, Florian Gross wrote:

Sam Roberts wrote:

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.

Odd, doesn't it come bundled with Ruby already?

Just doing require 'ripper' worked for me. (I'm on the win32
one-click installer.)

I'm on MacOSX and built Ruby myself, and there is no 'ripper' lib...

ruby -v --> ruby 1.8.2 (2004-12-25) [powerpc-darwin7.8.0]

- Jamis

There is also a version included in the 1-Click windows install;
however, it is hiding under the freeride install.

Patrick

···

On Fri, 25 Mar 2005 08:46:04 +0900, Kent Sibilev <ksibilev@bellsouth.net> wrote:

ripper is part of Ruby 1.9 which you can get from the cvs HEAD branch.

Cheers,
Kent.

Jamis Buck <jamis@37signals.com> writes:

> On Mar 24, 2005, at 1:34 PM, Florian Gross wrote:
>
>> Sam Roberts wrote:
>>
>>> 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.
>>
>> Odd, doesn't it come bundled with Ruby already?
>>
>> Just doing require 'ripper' worked for me. (I'm on the win32
>> one-click installer.)
>>
>>
>
> I'm on MacOSX and built Ruby myself, and there is no 'ripper' lib...
>
> ruby -v --> ruby 1.8.2 (2004-12-25) [powerpc-darwin7.8.0]
>
> - Jamis

Patrick Hurley ha scritto:

There is also a version included in the 1-Click windows install;
however, it is hiding under the freeride install.

Patrick

but the problem of that ripper is that it is based on a very old (and IIRC buggy) code, while the one in cvs head is kept in sync with current ruby.

PS
guys, please try to avoid top-posting..

Q: why?
Q: should I use top-posting when replying?

PPS
please consider this a kind suggestion, I'm always afraid to sound rude :confused:

···

A: because it messes up reading
A: no you should avoid it