Declar’em! – Automatic declaration of procedures.

Posted by on September 5, 2009

This is a tool that I’ve been using for quite a long while, just recently I fixed a small bug in the regexp and I thought it was time to share it.

For those of you using the official IDE, there’s no real solution to this “problem”. When you’re working on something small, it’s not a big deal to define a couple of declares here and there… However, on bigger code this becomes a real issue!. So why waste the time switching between IDEs or doing it by hand?…

Grab it and let me know how it runs! (nasty ugly source included).

The tool is very simple to install, I recommend you unzip directly into your PB directory and configure it as follows:


That’s it. You’re ready to declar’em!.


2 Comments on Declar’em! – Automatic declaration of procedures.

Log in to respond | Trackback

  1. andrew says:

    thanks that saves a lot of time, but it seems to fail on something like this:

    Procedure InputParser( Array value.s(1), Array index(1) )

    something with brackets in the parameters; so i use this regex instead

    #PATTERN_FIND = "[Pp]rocedure(\.[bcwlifqds])?\s+(\w+)\(.*\).?\r\n"

    it tries to match until the end of the line, but has a side-effect of including that into the match; probably should ‘chomp’ that out