simple lexing/parsing task

Discussion in 'Ruby' started by Martin DeMello, Feb 9, 2004.

  1. Any nice way to parse a block of ruby code, and return a list of all the
    variable names?

    martin
    Martin DeMello, Feb 9, 2004
    #1
    1. Advertising

  2. il Mon, 09 Feb 2004 21:15:37 GMT, Martin DeMello
    <> ha scritto::

    >Any nice way to parse a block of ruby code, and return a list of all the
    >variable names?


    did you looked at ripper? it's on rubyforge
    gabriele renzi, Feb 9, 2004
    #2
    1. Advertising

  3. gabriele renzi wrote:

    > il Mon, 09 Feb 2004 21:15:37 GMT, Martin DeMello
    > <> ha scritto::
    >
    >
    >>Any nice way to parse a block of ruby code, and return a list of all the
    >>variable names?

    >
    >
    > did you looked at ripper? it's on rubyforge


    Umm the project hasn't released any files and doesn't have a web page...

    Charles Comstock
    Charles Comstock, Feb 10, 2004
    #3
  4. il Tue, 10 Feb 2004 01:31:07 -0600, Charles Comstock
    <> ha scritto::

    >gabriele renzi wrote:
    >
    >> il Mon, 09 Feb 2004 21:15:37 GMT, Martin DeMello
    >> <> ha scritto::
    >>
    >>
    >>>Any nice way to parse a block of ruby code, and return a list of all the
    >>>variable names?

    >>
    >>
    >> did you looked at ripper? it's on rubyforge

    >
    >Umm the project hasn't released any files and doesn't have a web page...


    well, ripper.rb has been out for a while, but moved to rubyforge
    recently, I suppose.
    You can still download it via cvsweb:
    http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/?cvsroot=ripper

    v 0.1.0, yes, but possibly it c an help you
    gabriele renzi, Feb 10, 2004
    #4
  5. Martin DeMello, Feb 10, 2004
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Victor
    Replies:
    0
    Views:
    8,828
    Victor
    Sep 1, 2004
  2. krabhi
    Replies:
    1
    Views:
    9,272
    Marco Meschieri
    Aug 9, 2006
  3. Ole Nielsby

    Lexing the ' char

    Ole Nielsby, Nov 2, 2007, in forum: VHDL
    Replies:
    3
    Views:
    386
    diogratia
    Nov 4, 2007
  4. John Carter

    Lexing and Parsing in Ruby.

    John Carter, Nov 19, 2003, in forum: Ruby
    Replies:
    2
    Views:
    159
    Robert Klemme
    Nov 19, 2003
  5. Aryeh M. Friedman
    Replies:
    34
    Views:
    552
    Aryeh M. Friedman
    Jan 7, 2013
Loading...

Share This Page