Menu

[r3]: / cmp / Config / Interp.tcl  Maximize  Restore  History

Download this file

55 lines (43 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
##
## 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
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.