Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Assembler Tools

    Cloak 1.0

    Download button

    No screenshots available
    Downloads: 482  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rob Hoelz | More programs
    GPL / FREE
    October 4th, 2006, 17:50 GMT
    ROOT / Programming / Assembler Tools

     Read user reviews (0)  Refer to a friend  Subscribe

    Cloak description

    Cloak is a programming tool written in Ruby that I started as a project to familiarize myself with the Ruby programming language

    Cloak (Kind of short for comment locator) is a programming tool written in Ruby that I started as a project to familiarize myself with the Ruby programming language. Now it's grown into a full-blown tool that I think many programmers can benefit from. Cloak reads in your source code and extracts the comments. It then stores them in a SQLite database so you can list all the comments for a particular file, or search all the comments in the database. If you happen to update a file and then want to list its comments, Cloak will automatically synchronize it for you and then perform the desired operation.

    You might be thinking, "Why would I want to keep track of all my comments, of all things?" Well, I don't know about you, but I love to leave notes to myself in source code comments. And if you were thinking that Cloak would still make you wade through your comments after it spits them out, think again; Cloak allows you to provide a Ruby method to filter what comments are and are not included in the database, as well as a method to modify the comments before they are put in the database. So if you're a C programmer and you write notes to yourself in the form of all upper case comments, but you want to prefix all such comments with an exclamation point before they go in the database, you'd put something like this in your .cloak_conf.rb:

    def keep_comment?(comment)
    return comment !~ /[a-z];
    end

    def modify_comment(comment)
    return "!" + comment
    end

    That way the comment
    /* URGENT MESSAGE */
    becomes
    !/* URGENT MESSAGE */

    and all comments not matching your criteria are not included in the database.

    Although only a few languages are supported right now (see the list below), Cloak is easily extensible: just write a Ruby script to extract the comments from a source file, and drop it into the extractors/ subdirectory; Cloak will take care of the rest.

    Currently supported languages:

    C
    C++
    Java
    C#

    Product's homepage

      


    TAGS:

    comment locator | programming tool | source code comment | Cloak | comment | locator

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM