UNPKG

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.

30 lines 633 B
List: - name: 'Incorrect amount of brackets' input: type: raw value: 'set lst "hello {there"; lindex $lst 1' output: type: error value: 'incorrect brackets in list' Files: - name: 'Non-existing file' input: type: file value: 'subtest/nonexisting.tcl' output: type: error Parsing: - name: 'Unclosed brace' input: type: raw value: 'puts {hello' output: type: error value: 'uneven amount of curly braces' - name: 'Unclosed quote' input: type: raw value: 'puts "hello' output: type: error value: 'missing "'