tcl-js
Version:
tcl-js is a tcl intepreter written completely in Typescript. It is meant to replicate the tcl-sh interpreter as closely as possible.
14 lines (9 loc) • 382 B
Plain Text
A simple substitution: abc
Remember that set returns the new value of the variable:
X: def Y: def
Note curly braces: [set x "String within quotes within braces"]
See how the set is executed: String within braces within quotes
$x is: String within braces within quotes
Note the \ escapes the bracket:
$b is: [set y {This is a string within braces within quotes}]
$y is: def