##
## Compiler2 - Config - Interp
##
## (C) IPN - Ingenieurbuero fuer Praezisionsnumerik
##
## Dipl.-Ing. Andreas Otto
## Ulmenstrasse 3
## D-34289 Zierenberg
##
## Alle Rechte vorbehalten
##
namespace eval ::Config::Interp {
}
##
## -----------------------------------------------------------------
##
proc ::Config::Interp::Create {} {
variable Itp [ interp create ]
}
proc ::Config::Interp::Delete {} {
variable Itp ; ## the interp to use
catch { interp delete $Itp }
}
##
## -----------------------------------------------------------------
##
proc ::Config::Interp::UnAlias { T1 } {
variable Itp
if {![ info exists Itp ]} return
interp alias $Itp $T1 {}
}
proc ::Config::Interp::Alias {T1 args} {
variable Itp
eval interp alias $Itp $T1 \{\} $args
}
proc ::Config::Interp::Source {File} {
variable Itp
interp eval $Itp source $File
}
proc ::Config::Interp::Eval { Str } {
variable Itp
interp eval $Itp $Str
}