source run.tcl(see run for the compute proc, mentioned next)."compute" is a macro that handles the translation of "expr", and "xlate" is a simple textual substitution table. Now we can take the file "foo.tcl":
# basic tcl syntax is still there: set x 1 # So is new modula-style IF x <> 1 THEN puts "x is NOT 1" ELSE puts "x IS 1" ENDand run it from a tcl script:
run foo.tcl xlateand what is actually sourced is:
set x 1 if { $x != 1 } { puts "x is NOT 1" } else { puts "x IS 1" }
sdw - Another take on this concept is TAO, essentially implementing OOP techniques using a pre-processor fed by an sql database.
Sarnold - See also xsource for source preprocessing ideas.
Larry Smith: Why is this page duplicating run and doing so without crediting me?CMcC it appears, by comparing history of modification, that the person creating run also created this page, and that this page was created first. Both were created nearly 5 years ago.