CCL2TCL(1) General Commands Manual CCL2TCL(1)

ccl2tcl - one-way transpiler for ccl(alt_tcl/tk) to tcl

ccl2tcl [-hHVsS] [files...]
 

~$ ccl2tcl -s	#>> output sample. use -S to see full grammer
~$ ccl2tcl -s | ccl2tcl	#>> conv
~$ ccl2tcl src.ccl src.ccl		#>> cat src.ccl src.ccl|ccl2tcl
 
-- src.ccl              | -- src.tcl //cmt2                  | #cmt2 #cmt3                   | #cmt3 puts [[1 +2]]           | puts [expr 1+ 2] $b=1+2; $b(1, 2 3) = $a | set b 1+2; set b(1,23) $a if($a++)                | if {[incr a]} {..} {..};                   |  for($i=0;$i<9;$i++){..} | for {set $i 0} {$i<9} {incr i} {..}

-hHV
usage, version
-sS
output ccl sample code, ccl grammer

ccl is alt_tcl/tk with C-lang oriented syntax extension.
 
opt -s/S outputs ccl sample/full-grammer.
 
you can mix the orig-tcl and ccl code in the same srcfile. ccl2tcl ignores/pass through non-ccl strings.

suc/fail == 0/not 0, return err if src.ccl is something wrong.

There is no grammar in Tcl. The idea and simplicity are great. Topical performance such as learning cost, stability, history, portability will come next to C language and POSIX-Shell.
 
The problem is that the code is a command, so typing is difficult. CCL was created to improve this.

posix-shell

Copyright (C) 2022 Momi-g
 
License GPLv3+ <https://gnu.org/licenses/gpl.html>

2022-03-26 v1.0.0 (2022-03-26 v1.0.0)

https://www.tcl-lang.org
 
https://en.wikipedia.org/wiki/Tcl