Le langage Tcl

From Base de connaissances eggdrops & TCL
Revision as of 10:54, 2 November 2007 by CrazyCat (talk | contribs) (Informations sur le programme)

Jump to: navigation, search

A lire avant tout: les 11 règles du Tcl

Eye.png Cet article est en cours de traduction, n'hésitez pas à aider

Variables

set array unset

Calculs numériques

expr info functions

Listes

list llength lindex lrange linsert lreplace lappend lsearch concat split join lsort lrepeat lset

Chaines de caractères

string append

Dictionnaires

dict

Procédures

proc return global uplevel info args info default info body info commands info procs info globals info locals info vars info level

Gestion des erreurs

return code error error catch $errorCode $errorInfo

Programmation

source rename namespace variable $argc $argv

Contrôles

if switch for incr while foreach break continue

Entrées-Sorties

open exec puts flush gets read eof close socket seek tell fconfigure fblocked fcopy

Fichiers

cd pwd glob file file atime file attributes file channels file copy file delete file dirname file executable file exists file extension file isdirectory file isfile file join file link file lstat file mkdir file mtime file nativename file normalize file owned file pathtype file readable file readlink file rename file rename file rootname name file separator file size file split file stat file system file tail file type file volumes file writable

Exécution asynchrone

after update vwait fileevent bgerror trace

Gestion du temps

clock time

Sous-interpréteurs

interp Safe Base eval subst

Expressions régulières

regexp regsub re_syntax

Format et conversions

format scan binary

Chargement de code binaire

load unload info sharedlibextension info loaded

Informations sur l'environnment processeur

$tcl_platform(byteOrder) $tcl_platform(wordSize)

Informations sur l'environnement système

$env info hostname pid $tcl_rcFileName

Informations sur le programme

info nameofexecutable $argv0 info script $tcl_interactive

Informations sur la version de Tcl

[[[info patchlevel]] info tclversion $tcl_version $tcl_patchLevel

Contrôle du déverminage

[[[$tcl_traceExec]] $tcl_traceCompile memory trace tcltest

Recherche de mots

[[[tcl_endOfWord]] tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore

Définition d'un mot

[[[$tcl_wordchars]] $tcl_nonwordchars

Divers

info info cmdcount info complete [[info library] | exit]] history library [auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset [[tcl_findLibrary] | [tm]] package msgcat pkg::create [[pkg_mkIndex] | tclvars]] $tcl_library $tcl_pkgPath $tcl_platform(debug)