The "Unknown:"s below indicate that an entry is incomplete.
\ | breaking lines (useful when end-of-line and/or indentation has a special meaning) |
# | commenting (until end of line) |
-lt -gt -le -ge | comparison |
= != | equality / inequality (shallow) |
begin ... end | grouping expressions |
eval | runtime evaluation |
case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
[^ \t\n\r\f/]+ | tokens (function identifier regexp (if different from variable identifier regexp)) |
[a-zA-Z][a-zA-Z0-9]* | tokens (variable identifier regexp) |
[a-zA-Z0-9]+ | tokens (variable identifier regexp) |
underscores | tokens (what is the standard way for scrunching together multiple words) |
set | variable assignment or declaration (assignment) |
Unknown:
documentation comment
information about the current line and file
block (grouping statements, especially when statements are not expressions)
comparison (returns 3 values (i.e. inferior, equal or superior))
comparison (min / max (binary or more))
f a b ... | function call |
function f; ...; end | function definition |
sub f; ... $argv; end | function definition (variable number of arguments) |
return(1) | function return value (breaks the control flow) |
Unknown:
function call (with no parameter)
function called when a function is not defined (in dynamic languages)
runtime inspecting the caller information
continue / break | breaking control flow (continue / break) |
return(1) | breaking control flow (returning a value) |
if c; ...; end | if_then |
if c; b1; else b2; end | if_then_else |
for i in (seq 10 -1 1); ...; end | loop (for each value in a numeric range, 1 decrement) |
for i in (seq 10); ...; end | loop (for each value in a numeric range, 1 increment (see also the entries about ranges)) |
for i in (seq 1 2 10); ...; end | loop (for each value in a numeric range, free increment) |
while c; ...; end | loop (while condition do something) |
switch val case v1 ... case v2 v3 ... case '*' ... end | multiple selection (switch) |
; | sequence |
end-of-line | sequence |
Unknown:
loop (do something until condition)
Unknown:
package scope
declare
import
all strings allow multi-line strings | multi-line |
echo(2) | simple print (on strings) |
$a$b | string concatenation |
= != | string equality & inequality |
wc -c | string size |
"\n" | strings (end-of-line (without writing the real CR or LF character)) |
"... $v ..." | strings (with interpolation of variables) |
'...' | strings (with no interpolation of variables) |
Unknown:
character "z"
convert something to a string (see also string interpolation)
serialize (marshalling)
unserialize (un-marshalling)
sprintf-like
duplicate n times
upper / lower case character
uppercase / lowercase / capitalized string
ascii to character
character to ascii
accessing n-th character
extract a substring
locate a substring
locate a substring (starting at the end)
Unknown:
false value
true value
logical not
logical or / and
for v in l; ...; end | for each element do something |
set l a b c | list constructor |
"$l" | list flattening (one level depth) |
count | list size |
a[i] | list/array indexing |
Unknown:
list concatenation
adding an element at index
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
remove duplicates
sort
reverse
seq a b / jot - a b(3) | range (inclusive .. inclusive) |
Unknown:
reference (pointer) (creation)
reference (pointer) (dereference)
optional value (null value)
optional value (value)
optional value (null coalescing)
record (selector)
dictionary (constructor)
dictionary (access)
dictionary (has the key ?)
dictionary (remove by key)
dictionary (list of keys)
dictionary (list of values)
dictionary (merge)
Unknown:
numbers syntax (integers)
numbers syntax (integers in base 2, octal and hexadecimal)
numbers syntax (floating point)
addition / subtraction / multiplication / division
exponentiation (power)
negation
random (random number)
random (seed the pseudo random generator)
operator priorities and associativities
square root / e-exponential / absolute value
trigonometry (basic)
trigonometry (inverse)
logarithm (base e)
logarithm (base 10)
modulo
truncate / round / floor / ceil
bitwise operators