CCL2TCL(1)                  General Commands Manual                 CCL2TCL(1)



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

SYNOPSIS
       ccl2tcl [-hHVsS] [files...]

TL_DR
       ~$ 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
       ~$ ccl2tcl src.ccl | tee src.tcl   #>> general use

       -- 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 [expr 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} {..}


OPTIONS
       -hHV   usage, version

       -sS    output ccl sample code, ccl grammer

DESCRIPTION
       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 ig‐
       nores/pass through non-ccl strings.

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

NOTES
       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
       improves it.

CONFORMING_TO
       posix-shell

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

VERSION
       2022-03-28 v1.1.0 (2022-03-26 v1.0.0)

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



                                                                    CCL2TCL(1)
