The "Missing:"s below indicate that an entry is incomplete.
do ... end (9) | block (grouping statements, especially when statements are not expressions) |
--[[ ... ]] | commenting (nestable) |
-- | commenting (until end of line) |
< > <= >= | comparison |
min / max | comparison (min / max (binary or more)) |
== ~= | equality / inequality (shallow) |
collectgarbage | force garbage collection |
( ... ) | grouping expressions |
dostring | runtime evaluation |
case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
= | variable assignment or declaration (assignment) |
Missing:
documentation comment
information about the current line and file
tokens (if case sensitive, what is the standard way for scrunching together multiple words)
tokens (variable identifier regexp)
breaking lines (useful when end-of-line and/or indentation has a special meaning)
function(a, b) ... end | anonymous function |
f(a,b,...) | function call |
f() | function call (with no parameter) |
function f(para1, para2) ... code ... end | function definition |
return (28) | function return value (breaks the control flow) |
Missing:
function called when a function is not defined (in dynamic languages)
runtime inspecting the caller information
/ break | breaking control flow (continue / break) |
return (28) | breaking control flow (returning a value) |
pcall | exception (catching) |
error | exception (throwing) |
error | exception (throwing) |
if c then b end | if_then |
if c then b1 else b2 end | if_then_else |
repeat expr until cond | loop (do something until condition) |
WHILE cond DO expr end | loop (while condition do something) |
nothing, optionally ; | sequence |
end-of-line | sequence |
Missing:
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)
loop (for "a la C" (while + initialisation))
object:method(para) | method invocation |
Missing:
package scope
declare
import
strchar | ascii to character |
strbyte | character to ascii |
tostring | convert something to a string (see also string interpolation) |
strrep | duplicate n times |
[[ ... ]] | multi-line |
.. | string concatenation |
"\n" | strings (end-of-line (without writing the real CR or LF character)) |
'...' | strings (verbatim) |
"..." | strings (verbatim) |
[[ ... ]] | strings (verbatim) |
strupper / strlower | upper / lower case character |
upper / lower (60) | upper / lower case character |
strupper / strlower | uppercase / lowercase / capitalized string |
Missing:
character "z"
strings (with interpolation)
serialize (marshaling)
unserialize (un-marshaling)
sprintf-like
simple print
string equality & inequality
string size
accessing n-th character
extract a substring
locate a substring
locate a substring (starting at the end)
nil | false value |
false / nil | false value |
not | logical not |
or / and | logical or / and (short circuit) |
true / anything not false | true value |
Boolean | type name |
foreach | for each element do something |
foreachi | iterate with index |
{ a, b, c } (67) | list constructor |
getn | list size |
a[i] | list/array indexing |
sort | sort |
Missing:
list concatenation
list flattening
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
remove duplicates
reverse
h[k] | dictionary (access: read/write) |
h.k | dictionary (access: read/write) |
{ a = b, c = d } | dictionary (constructor) |
nil | optional value (null value) |
v | optional value (value) |
. | record selector |
a, b, c | tuple constructor |
Missing:
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)
dictionary (has the key ?)
dictionary (remove by key)
dictionary (list of keys)
dictionary (list of values)
range
^ | exponentiation (power) |
log / log10 | logarithm |
mod | modulo (modulo of -3 / 2 is -1) |
sqrt / exp / abs | square root / e-exponential / absolute value |
sin / cos / tan | trigonometry (basic) |
/ round / floor / ceil | truncate / round / floor / ceil |
/ / floor / ceil | truncate / round / floor / ceil |
Missing:
numbers syntax (integers)
numbers syntax (integers in base 2, octal and hexadecimal)
numbers syntax (integer thousand-seperator)
numbers syntax (decimals)
addition / subtraction / multiplication / division
negation
random (random number)
random (seed the pseudo random generator)
operator priorities and associativities
trigonometry (inverse)
bitwise operators