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 (nestable) |
# | commenting (until end of line) |
// | commenting (until end of line) |
< > <= >= | comparison |
min / max | comparison (min / max (binary or more)) |
== != | equality / inequality (shallow) |
Collector collect | force garbage collection |
( ... ) | grouping expressions |
doString | runtime evaluation |
case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
CamelCase or camelCase | tokens (what is the standard way for scrunching together multiple words) |
= | variable assignment or declaration (assignment) |
:= | variable assignment or declaration (declaration) |
Unknown:
documentation comment
tokens (variable identifier regexp)
block (grouping statements, especially when statements are not expressions)
method(a, b, ...) | anonymous function |
f(a,b,...) | function call |
f | function call (with no parameter) |
forward | function called when a function is not defined (in dynamic languages) |
f := method(para1, para2, ..., code) | function definition |
return(1) | function return value (breaks the control flow) |
no syntax needed(2) | function return value (function body is the result) |
call | runtime inspecting the caller information |
continue / break | breaking control flow (continue / break) |
redo / retry | breaking control flow (redo / retry) |
return(1) | breaking control flow (returning a value) |
try(a) ; catch(...) | exception (catching) |
Exception raise | exception (throwing) |
if(c, ...) | if_then |
if(c) then(...) | if_then |
c ifTrue(...) | if_then |
if(c, b1, b2) | if_then_else |
if(c) then(b1) else(b2) | if_then_else |
if(c) not then(...) | ifnot_then (unless) |
10 to(1) foreach(...) | loop (for each value in a numeric range, 1 decrement) |
1 to(10) foreach(...) | loop (for each value in a numeric range, 1 increment (see also the entries about ranges)) |
1 to (9,2) foreach(...) | loop (for each value in a numeric range, free increment) |
loop(...) | loop (forever loop) |
while(c, ...) | loop (while condition do something) |
; | sequence |
end-of-line | sequence |
Unknown:
multiple selection (switch)
loop (for "a la C" (while + initialisation))
breaking control flow (goto (unconditional jump))
resend | accessing parent method |
self | current instance |
type | get the type/class corresponding to an object/instance/value |
hasSlot | has the method |
clone , setProtos, setProto, prependProto, appendProto | inheritance |
object method(para) | method invocation |
object method | method invocation (with no parameter) |
slotNames | methods available |
o clone | object cloning |
Unknown:
package scope
declare
import
s at(n) | accessing n-th character |
asCharacter | ascii to character |
s at(0) | character to ascii |
asString | convert something to a string (see also string interpolation) |
repeated | duplicate n times |
slice | extract a substring |
findSeq | locate a substring |
all strings allow multi-line strings | multi-line |
serialize | serialize (marshalling) |
simple print (on any objects) | |
println(3) | simple print (on any objects) |
write | simple print (on any objects) |
writeln(3) | simple print (on any objects) |
.. | string concatenation |
== != | string equality & inequality |
size | string size |
"\n" | strings (end-of-line (without writing the real CR or LF character)) |
"... #{v} ..." interpolate | strings (with interpolation of variables) |
"..." | strings (with no interpolation of variables) |
"""...""" | strings (with no interpolation of variables) |
Sequence | type name |
doString | unserialize (un-marshalling) |
asLowercase / asUppercase | upper / lower case character |
asLowercase / asUppercase / makeFirstCharacterUppercase | uppercase / lowercase / capitalized string |
false | false value |
nil | false value |
not(4) | logical not |
or / and | logical or / and (short circuit) |
true | true value |
a insertAt(e, i) | adding an element at index (side-effect) |
push | adding an element at the beginning (list cons) (side-effect) |
append | adding an element at the end (side-effect) |
reduce(5) | f(... f(f(init, e1), e2) ..., en) |
reverseReduce | f(e1, f(e2, ... f(en, init) ...)) |
indexOf | find an element |
first | first element |
l foreach(v, ...) | for each element do something |
removeFirst | get the first element and remove it |
pop | get the last element and remove it |
removeLast | get the last element and remove it |
contains | is an element in the list |
detect | is the predicate true for an element |
a foreach(i, e, ...) | iterate with index |
join | join a list of strings in a string using a glue string |
select | keep elements (matching) |
selectInPlace | keep elements (matching) |
last | last element |
appendSeq | list concatenation |
list(a, b, c) | list constructor |
flatten | list flattening (one level depth) |
size | list size |
a at(i) | list/array indexing |
unique(6) | remove duplicates |
reverse | reverse |
min / max | smallest / biggest element |
sort(7) | sort |
sortBy | sort |
map | transform a list (or bag) in another one |
List | type name |
at | dictionary (access: read) |
atPut | dictionary (access: write) |
hasKey | dictionary (has the key ?) |
keys | dictionary (list of keys) |
values | dictionary (list of values) |
removeAt | dictionary (remove by key) |
Map | dictionary (type name) |
nil | optional value (null value) |
to | range (inclusive .. inclusive) |
Range with | range (inclusive .. inclusive) |
normal function call | record (selector) |
Unknown:
tuple constructor
optional value (value)
optional value (null coalescing)
dictionary (merge)
+ / - / * / / | addition / subtraction / multiplication / division |
bitwiseAnd / bitwiseOr / bitwiseXor | bitwise operators (and / or / xor) |
bitwiseComplement | bitwise operators (bitwise inversion) |
shiftLeft / shiftRight | bitwise operators (left shift / right shift / unsigned right shift) |
** | exponentiation (power) |
log10 | logarithm (base 10) |
log | logarithm (base e) |
% | modulo (modulo of -3 / 2 is -1) |
- | negation |
0xf | numbers syntax (integers in base 2, octal and hexadecimal) |
1000 | numbers syntax (integers) |
mathematical | operator priorities and associativities (addition vs multiplication) |
mathematical | operator priorities and associativities (exponentiation vs negation (is -3^2 equal to 9 or -9)) |
Random value | random (random number) |
Random setSeed | random (seed the pseudo random generator) |
sqrt / exp / abs | square root / e-exponential / absolute value |
sin / cos / tan | trigonometry (basic) |
asin / acos / atan(8) | trigonometry (inverse) |
/ round / floor / ceil | truncate / round / floor / ceil |
Number | type name (floating point) |
Unknown:
numbers syntax (floating point)
Thread createThread(...) | thread creation |