Propósito: Colecção de referências pa uma lista de comandos TCL (nem sempre a mais completa ou oficial página de ajuda, mas sempre com notas adicionais e links para artigos relacionados). E também vê [Tk syntax help (Portuguese-PT)]. Eu espero que gente vá adicionar codigo a estas páginas mostrando Boas Práticas com regardo ao uso destes comandos TCL e TK. Além destes, vê também Official library of extensions para a sintaxe das extensões pacotadas juntamente com a fonte, e BNF for Tcl para contexto abstracto. Vê também Common Tcl Error Messages and Possible Explanations.
O seguinte é um indíce alfabético dos comandos a nivel scriptíco em Tcl.
- Para as 11 regras de sintaxe de Tcl, vê a página Wiki Onze regras.
- after PT
- append PT
- [array PT]
- [auto_execok PT]
- [auto_import PT]
- [auto_load PT]
- [auto_mkindex PT]
- [auto_qualify PT]
- [auto_reset PT]
- [bgerror PT]
- [binary PT]
- [break PT]
- [case PT]
- [catch PT]
- [cd PT]
- [clock PT]
- [close PT]
- comment PT - não é um comando, mas sim informação sobre comentários Tcl
- [concat PT]
- [continue PT]
- [dde PT] - Um pacote especifico para Windows
- [encoding PT]
- [eof PT]
- [error PT]
- [eval PT]
- [exec PT]
- [exit PT]
- [expr PT]
- [fblocked PT]
- [fconfigure PT]
- [fcopy PT]
- [file PT]
- [fileevent PT]
- [filename PT] - nao é um comando, mas sim informação sobre ficheiros
- [flush PT]
- [for PT]
- [foreach PT]
- [format PT]
- [gets PT]
- [glob PT]
- [global PT]
- [history PT]
- [http PT] - não é um comando, mas sim um pacote Tcl para o protocoloHTTP
- [if PT]
- [incr PT]
- [info PT]
- [interp PT]
- [join PT]
- [lappend PT]
- [library PT] - não é um comando, mas sim informação sobre um grupo de comandos
- [lindex PT]
- [linsert PT]
- [list PT]
- [llength PT]
- [load PT]
- [lrange PT]
- [lreplace PT]
- [lsearch PT]
- [lset PT]
- [lsort PT]
- [memory PT] - comando especial indisponivel por padrão
- [msgcat PT]
- [namespace PT]
- [open PT]
- [package PT]
- [packagens PT] - página de ajuda para o comando pkg::create
- [parray PT]
- [pid PT]
- [pkg::create PT]
- [pkgMkIndex PT]
- [proc PT]
- [puts PT]
- [pwd PT]
- [re_syntax PT] - não um comando, mas sim informação sobre a sintaxe de expressões regulares
- [read PT]
- [regexp PT]
- [registry PT] - not a command, but a Windows specific package
- [regsub PT]
- rename PT
- [resource PT] - Macintosh specific command
- [return PT]
- [safe PT]
- [scan PT]
- [seek PT]
- [set PT]
- [socket PT]
- [source PT]
- [split PT]
- string PT
- [subst PT]
- [switch PT]
- [tcl_endOfWord PT]
- [tcl_findLibrary PT]
- [tcl_startOfNextWord PT]
- [tcl_startOfPreviousWord PT]
- [tcl_wordBreakAfter PT]
- [tcl_wordBreakBefore PT]
- [tclLog PT]
- [tcltest PT] - not a command, but a library
- [tclvars PT] - not a command, but information about variables created by Tcl
- [tell PT]
- [time PT]
- [trace PT]
- [unknown PT]
- [unset PT]
- [update PT]
- [uplevel PT]
- [upvar PT]
- [variable PT]
- [vwait PT]
- [while PT]
There are also a number of special Magic names variables in the core Tcl interpreter. Here is an index to these:
- argc
- argv
- argv0
- auto_index
- auto_oldpath
- auto_path
- env
- errorCode
- errorInfo
- tclDefaultLibrary on unix
- tcl_interactive
- tcl_libpath
- tcl_library
- tcl_patchLevel
- tcl_pkgPath
- tcl_platform
- tcl_precision
- tcl_rcFileName
- tcl_rcRsrcName
- tcl_traceCompile
- tcl_traceExec
- tcl_version
There are also a number of special shell environment variables which can influence Tcl behavior. These include:
- CC
- COMSPEC on Windows
- HOME
- HOMEDRIVE on Windows, see HOMEPATH
- HOMEPATH on Windows
- LANG
- LC_ALL
- LC_CTYPE
- PATH
- PATHEXT on Windows
- SHLIB_CFLAGS
- TCL_LIBRARY
- TCLLIBPATH
- TCLTEST_OPTIONS
- TZ on Windows
- windir on Windows
For a nice printed quick reference guide to Tcl and Tk, see [1] for the original and see [2] for a community member's update. "Static syntax analysis" is a related topic.