[Ann] Reg 0.4.5

Discussion in 'Ruby' started by Caleb Clausen, May 17, 2005.

  1. I am releasing 0.4.5 of Reg, a tool for pattern matching in arbitrary
    ruby Object graphs. Reg includes tools that search for patterns in all
    the important core data structures as well as tools for extending the
    match criteria to include just about any ruby code you could want. Reg
    provides matchers for Strings (via Regexps), Symbols, Hashes, and
    several alternatives for matching Objects, but the main feature is the
    ability to match Arrays of arbitrary ruby data using vaguely
    Regexp-like syntax.

    The interface to the above features is a mini-language that's embedded
    directly in ruby because it does all its tricks with operator
    overloading. I am not going to repost the syntax summary or examples
    of this mini-language, since it's a couple pages and hasn't changed
    from the last time. But let me say in brief that Reg attempts to
    emulate both the obscurity and compact power of regular expressions.

    (There was one error in the syntax summary in the first Reg
    announcement. The descriptions of binary + and - were inverted.
    Thanks to Pit Capitain for spotting it.)

    In this release, the backtracking engine seems to be complete. At
    least, all the test cases pass now. Documentation has been expanded,
    but nowhere near what is needed. Many things have been renamed
    internally (put in a namespace), but it shouldn't affect users (if
    there are any) very much. For the most part, aliases are provided to
    the old name. The one exception is the old Reg module, which is now
    named Reg::Reg. (Beware if you had 'include Reg' in your class.)

    Important features remain unimplemented at this point. There's still
    no substitutions, backreferences, variable binding, item_that, or
    lookahead. Users who wanted Reg for traditional lexing and parsing
    tasks still need to look elsewhere. Few optimizations are done. And
    vector Reg::And and Reg::Xor won't work.
    Caleb Clausen, May 17, 2005
    #1
    1. Advertising

  2. Caleb Clausen, May 17, 2005
    #2
    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. Jagadeesh

    Reg SESSION..

    Jagadeesh, Jan 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    421
    Gaurav Khanna [C#/.NET MVP]
    Jan 23, 2004
  2. hdjim69

    what is assemblies.reg ?

    hdjim69, Apr 27, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    416
    John Scalco
    May 5, 2004
  3. aatrid
    Replies:
    0
    Views:
    456
    aatrid
    Aug 11, 2005
  4. Caleb Clausen

    [ANN] Reg - Ruby Extended Grammar 0.4.6

    Caleb Clausen, Nov 18, 2005, in forum: Ruby
    Replies:
    0
    Views:
    89
    Caleb Clausen
    Nov 18, 2005
  5. Caleb Clausen

    [ANN] Reg 0.4.8 Released

    Caleb Clausen, Jan 4, 2010, in forum: Ruby
    Replies:
    0
    Views:
    95
    Caleb Clausen
    Jan 4, 2010
Loading...

Share This Page