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.
19 lines (13 loc) • 412 B
text/typescript
import { Tcl } from '../../src/tcl';
async function main() {
let tcl = new Tcl();
tcl.setVariable('test', {hello: 'world', there: 'gay'});
let out = await tcl.runFile('./test/dev/test.tcl');
console.log(out);
}
main().catch(console.error);
/*tcl
//.run('puts hi\\nhi')
.run('set lst "zero one two {{three four} five} six"; puts [lindex $lst]')
.then(console.log)
.catch(console.error); /**/