Difference between revisions of "Le langage Tcl"

From Base de connaissances eggdrops & TCL
Jump to: navigation, search
(Variables)
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Catégorie:Tcl]]
+
[[Catégorie:Langage Tcl]]
 +
[[Catégorie:TCL]]
 +
[[Catégorie:TCLDEV]]
 
A lire avant tout: les [[11 règles]] du Tcl
 
A lire avant tout: les [[11 règles]] du Tcl
 
{{Translation}}
 
{{Translation}}
==Variables==
+
=Variables=
[[set|dav34_set]] [[array]] [[unset|dav34_unset]]
+
[[set]] [[array]] [[unset]]
 +
=Calculs numériques=
 +
[[expr]]
 +
=Listes=
 +
[[list]] [[llength]] [[lindex]] [[lrange]] [[linsert]] [[lreplace]] [[lappend]] [[lsearch]] [[concat]] [[split]] [[join]] [[lsort]] {{new}}[[lrepeat]] [[lset]] {{new}}[[dict]] {{new}}[[lreverse]]
  
==Calculs numériques==
+
=Chaines de caractères=
[[expr]] [[info functions]]
 
==Listes==
 
[[list]] [[llength]] [[lindex]] [[lrange]] [[linsert]] [[lreplace]] [[lappend]] [[lsearch]] [[concat]] [[split]] [[join]] [[lsort]] [[lrepeat]] [[lset]]
 
==Chaines de caractères==
 
 
[[string]] [[append]] [[encoding]]
 
[[string]] [[append]] [[encoding]]
 +
=Procédures=
 +
[[proc]] [[return]] [[global]] [[upvar]] [[uplevel]]
 +
=Gestion des erreurs=
 +
[[return]] [[error]] [[catch]]
  
==Dictionnaires==
+
=Programmation=
[[dict]]
+
[[source]] [[rename]] [[namespace]] [[variable]]
==Procédures==
 
[[proc]] [[return]] [[global]] [[upvar | 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==
+
=Contrôles=
[[if]] [[switch]] [[for]] [[Incr%C3%A9mentation_et_D%C3%A9cr%C3%A9mentation|incr]] [[while]] [[foreach|dav34_foreach]] [[break|dav34_break]] [[continue|dav34_continue]]
+
[[if]] [[switch]] [[for]] [[incr]] [[while]] [[foreach]] [[break]] [[continue]]
  
==Entrées-Sorties==
+
=Entrées-Sorties=
 
[[open]] [[exec]] [[puts]] [[flush]] [[gets]] [[read]] [[eof]] [[close]] [[socket]] [[seek]] [[tell]] [[fconfigure]] [[fblocked]] [[fcopy]]
 
[[open]] [[exec]] [[puts]] [[flush]] [[gets]] [[read]] [[eof]] [[close]] [[socket]] [[seek]] [[tell]] [[fconfigure]] [[fblocked]] [[fcopy]]
 
+
=Fichiers=
==Fichiers==
+
[[cd]] [[pwd]] [[glob]] [[file]]
[[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=
 
 
==Exécution asynchrone==
 
 
[[after]] [[update]] [[vwait]] [[fileevent]] [[bgerror]] [[trace]]
 
[[after]] [[update]] [[vwait]] [[fileevent]] [[bgerror]] [[trace]]
==Gestion du temps==
+
=Gestion du temps=
 
[[clock]] [[time]]
 
[[clock]] [[time]]
==Sous-interpréteurs==
+
=Sous-interpréteurs=
 
[[interp]] [[Safe Base]] [[eval]] [[subst]]
 
[[interp]] [[Safe Base]] [[eval]] [[subst]]
==Expressions régulières==
+
=Expressions régulières=
 
[[regexp]] [[regsub]] [[re_syntax]]
 
[[regexp]] [[regsub]] [[re_syntax]]
==Format et conversions==
+
=Format et conversions=
 
[[format]] [[scan]] [[binary]]
 
[[format]] [[scan]] [[binary]]
==Chargement de code binaire==
+
=Chargement de code binaire=
[[load]] [[unload]] [[info sharedlibextension]] [[info loaded]]
+
[[load]] [[unload]]
==Informations sur l'environnment processeur==
+
=Informations sur l'environnement système=
[[$tcl_platform(byteOrder)]] [[$tcl_platform(wordSize)]]
+
[[$env]] [[info hostname]] [[pid]] [[$tcl_rcFileName]]
==Informations sur l'environnement système==
 
[[$env]] [[info hostname]] [[pid|dav34_pid]] [[$tcl_rcFileName]]
 
 
 
==Informations sur le programme==
 
[[info nameofexecutable]] [[$argv0]] [[info script]] [[$tcl_interactive]]
 
  
==Informations sur la version de Tcl==
+
=Informations sur le programme=
[[info patchlevel]] [[info tclversion]] [[$tcl_version]] [[$tcl_patchLevel]]
+
[[info nameofexecutable]] [[$argv0]] [[$tcl_interactive]]
 +
=Informations sur la version de Tcl=
 +
[[$tcl_version]] [[$tcl_patchLevel]]
  
==Contrôle du déverminage==
+
=Contrôle du déverminage=
 
[[$tcl_traceExec]] [[$tcl_traceCompile]] [[memory]] [[trace]] [[tcltest]]
 
[[$tcl_traceExec]] [[$tcl_traceCompile]] [[memory]] [[trace]] [[tcltest]]
 
+
=Recherche de mots=
==Recherche de mots==
 
 
[[tcl_endOfWord]] [[tcl_startOfNextWord]] [[tcl_startOfPreviousWord]] [[tcl_wordBreakAfter]] [[tcl_wordBreakBefore]]
 
[[tcl_endOfWord]] [[tcl_startOfNextWord]] [[tcl_startOfPreviousWord]] [[tcl_wordBreakAfter]] [[tcl_wordBreakBefore]]
 
+
=Définition d'un mot=
==Définition d'un mot==
 
 
[[$tcl_wordchars]] [[$tcl_nonwordchars]]
 
[[$tcl_wordchars]] [[$tcl_nonwordchars]]
 
+
=Divers=
==Divers==
 
 
[[info]] [[exit]] [[http]]
 
[[info]] [[exit]] [[http]]

Latest revision as of 22:14, 25 October 2020

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

Listes

list llength lindex lrange linsert lreplace lappend lsearch concat split join lsort New.giflrepeat lset New.gifdict New.giflreverse

Chaines de caractères

string append encoding

Procédures

proc return global upvar uplevel

Gestion des erreurs

return error catch

Programmation

source rename namespace variable

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

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

Informations sur l'environnement système

$env info hostname pid $tcl_rcFileName

Informations sur le programme

info nameofexecutable $argv0 $tcl_interactive

Informations sur la version de Tcl

$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 exit http