The "Missing:"s below indicate that an entry is incomplete.
{ ... } | block (grouping statements, especially when statements are not expressions) |
\ | breaking lines (useful when end-of-line and/or indentation has a special meaning) |
# | commenting (until end of line) |
< > <= >= | comparison |
string compare | comparison (returns 3 values (i.e. inferior, equal or superior)) |
== != | equality / inequality (shallow) |
( ... ) | grouping expressions |
eval | runtime evaluation |
[...] | runtime evaluation |
case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
[^ \t\n\r\f]+ | tokens (function identifier regexp (if different from variable identifier regexp)) |
CamelCase | tokens (if case sensitive, what is the standard way for scrunching together multiple words) |
[_a-zA-Z][_a-zA-Z0-9]* | tokens (variable identifier regexp) |
set, variable | variable assignment or declaration (both) |
Missing:
documentation comment
information about the current line and file
comparison (min / max (binary or more))
force garbage collection
f a b ... | function call |
f | function call (with no parameter) |
unknown | function called when a function is not defined (in dynamic languages) |
proc f {para1 para2} { ... } | function definition |
return | function return value (breaks the control flow) |
Missing:
runtime inspecting the caller information
return | breaking control flow (returning a value) |
catch | exception (catching) |
return -code | exception (throwing) |
if c b | if_then |
if c ?then? b1 elsif c2 ?then? b2 ?else? b3 | if_then_else |
for | loop (for "a la C" (while + initialisation)) |
while cond expr | loop (while condition do something) |
; | sequence |
end-of-line | sequence |
Missing:
multiple selection (switch)
loop (for each value in a numeric range, 1 increment (see also the entries about ranges))
loop (for each value in a numeric range, 1 decrement)
loop (for each value in a numeric range, free increment)
breaking control flow (goto (unconditional jump))
breaking control flow (continue / break)
object method para | method invocation |
Missing:
method invocation (with no parameter)
object creation
object cloning
manually call an object's destructor
class declaration
testing class membership
get the type/class corresponding to an object/instance/value
methods available
inheritance
has the method
current instance
accessing parent method
:: | package scope |
Missing:
declare
import
string index s n | accessing n-th character |
format %c $c | ascii to character |
scan $s %c | character to ascii |
string repeat | duplicate n times |
range | extract a substring |
puts (57) | simple print (on simple objects) |
$a$b | string concatenation |
eq ne | string equality & inequality |
{...{...}...} | strings (verbatim) |
"... $v ..." | strings (with interpolation) |
[ subst {...{... $v ...}...} ] | strings (with interpolation) |
string toupper / string tolower | upper / lower case character |
string toupper / string tolower | uppercase / lowercase / capitalized string |
Missing:
character "z"
strings (end-of-line (without writing the real CR or LF character))
multi-line
convert something to a string (see also string interpolation)
serialize (marshaling)
unserialize (un-marshaling)
sprintf-like
string size
locate a substring
locate a substring (starting at the end)
false / no / off / 0 | false value |
! | logical not |
|| / && | logical or / and (short circuit) |
yes / on / true / non zero number | true value |
lsearch | find an element |
foreach | for each element do something |
concat | list concatenation |
list | list constructor |
eval concat | list flattening (one level depth) |
llength | list size |
lindex | list/array indexing |
lsort -unique | remove duplicates |
lsort | sort |
Missing:
adding an element at the beginning (list cons)
adding an element at index
adding an element at the end
first element
all but the first element
last element
get the first element and remove it
get the last element and remove it
is an element in the list
smallest / biggest element
join a list of strings in a string using a glue string
iterate with index
reverse
$h(k) | dictionary (access: read/write) |
Missing:
tuple constructor
computable tuple (these are a kind of immutable lists playing a special role in parameter passing) (empty tuple)
computable tuple (these are a kind of immutable lists playing a special role in parameter passing) (1-uple)
computable tuple (these are a kind of immutable lists playing a special role in parameter passing) (using a tuple for a function call)
reference (pointer) (creation)
reference (pointer) (dereference)
optional value (null value)
optional value (value)
record selector
dictionary (constructor)
dictionary (has the key ?)
dictionary (remove by key)
dictionary (list of keys)
dictionary (list of values)
range
+ / - / * / / | addition / subtraction / multiplication / division |
pow | exponentiation (power) |
log / log10 | logarithm |
% | modulo (modulo of -3 / 2 is 1) |
- | negation |
1000., 1E3 | numbers syntax (decimals) |
07, 0xf | numbers syntax (integers in base 2, octal and hexadecimal) |
1000 | numbers syntax (integers) |
mathematical | operator priorities and associativities (addition vs multiplication) |
sqrt / exp / abs | square root / e-exponential / absolute value |
sin / cos / tan | trigonometry (basic) |
/ round / floor / ceil | truncate / round / floor / ceil |
Missing:
numbers syntax (integer thousand-seperator)
random (random number)
random (seed the pseudo random generator)
trigonometry (inverse)
bitwise operators