Tcl in C has syntax for grouping, which allows multiple words in one argument, and substitution, which is used with programming variables and nested command calls. The Tcl interpreter does grouping first, then substitutions, and finally it calls the command. It is up to the command to interpret its arguments
Ex Tcl in C:
Write command procedure in C:
int EqCmd(ClientData clientData, Tcl_Interp
*interp, int argc, char **argv) {
if (argc != 3) {
interp->result = "wrong # args";
return TCL_ERROR;
}
if (strcmp(argv[1], argv[2]) == 0) {
interp->result = "1";
} else {
interp->result = "0";
}
return TCL_OK;
}
Interfaces to C are simple, Tcl was designed to make this true &
the focus on primitives, which use Tcl scripts to compose fancy features. All the need is in between how you catchup with it.