ANNOUNCE: Tmac 0.1 - a macro preprocessor in Tcl for Tcl (1 May 2003)

I've created this Tcl package to give Tcl programmers
another set of options in building applications. You
might call it Tmac "Super Glue for Tcl".

Tmac provides flexible ways to modtify the Tcl source
before it is seen by Tcl. Macros are defined by
name and come in 2 basic types:

   - Block macros: insert a block of text with parameter
     substitutions
       and
   - Filter macros: pass unlimited parameters to user-provided
     code and put the computed string back into the source stream.

Additional Features

   - Macro calls may nest
   - Macro delimiter strings are configurable
   - Macro definitions may invoke other macros
   - A scope feature is available to prevent macro
     name collisions
   - Special options are available for preprocessing
     complex parameters before passing to expr
   - "big gulp" macro based comments are indifferent
     to mismatched braces.
   - macro substitution may be invoked in separate phases
     and on various units such as strings, procs, and files.


The goal for the macro package is to let programmers
create coding conveniences in order to reduce effort
and increase overall quality. Macros, of course, ought
to be used with caution.

Tmac is licensed for free personal or commercial use.

Package Homepage
http://www.tclbuzz.com/v0/tmac

Comments and suggestions requested.

Regards,
Roy Terry
royterry at earthlink DOT net

 

 

Tmac - copyright Roy E. Terry, 2003  royterry@earthlink.net

TMac Home Introduction Usage Download Q&A + Examples