TCL, yes sure. The exe file is a saved SBCL (Lisp) image holding a port of the Shen language.
# TCL event loop
set in {C:/Users/shend/OneDrive/Desktop/Shen/S38/shen-to-tcl.txt}
set out {C:/Users/shend/OneDrive/Desktop/Shen/S38/tcl-to-shen.txt}
proc eventloop {File} {
while { 1 } {
after 10
if { [newcommand? $File] } {
enact $File }
update }}
proc newcommand? {File} {
set Source [open $File r]
set Data [read $Source]
set Verdict [eot? $Data]
close $Source
return $Verdict}
proc eot? {S} {
return [ string match *eot $S ]
}
proc enact {File} {
set Source [open $File r]
set Data [read $Source]
set Command [trim $Data]
overwrite $File
if { [catch $Command result] != 0 } then {
err $result}
close $Source}
proc overwrite {File} {
set Sink [open $File w]
puts -nonewline $Sink ""
flush $Sink
close $Sink}
proc trim {S} {
return [string map {"eot" ""} $S]
}
proc mysend {String} {
global out
set Sink [open $out w]
puts $Sink [concat $String "eot"]
close $Sink}
proc err {String} {
set Format [myformat $String]
mysend [concat "(error \"" $Format "\")"]}
proc myformat {String} {
return [string map {\" ""} $String]}
eventloop $in