The "Unknown:"s below indicate that an entry is incomplete.
See the various entries for JavaScript
indentation | block (grouping statements, especially when statements are not expressions) |
\ | breaking lines (useful when end-of-line and/or indentation has a special meaning) |
### ... ### | commenting (non nestable) |
# | commenting (until end of line) |
< > <= >= | comparison |
== != | equality / inequality (shallow) |
( ... ) | grouping expressions |
CoffeeScript.eval(1) | runtime evaluation |
case-sensitive | tokens (case-sensitivity (keywords, variable identifiers...)) |
[$A-Za-z_\x7f-\uffff][$\w\x7f-\uffff]* | tokens (variable identifier regexp) |
camelCase | tokens (what is the standard way for scrunching together multiple words) |
= | variable assignment or declaration (both) |
Unknown:
information about the current line and file
comparison (returns 3 values (i.e. inferior, equal or superior))
comparison (min / max (binary or more))
(a, b) => ... | anonymous function |
(a, b) -> ... | anonymous function |
f(a,b,...) | function call |
f a, b, ... | function call |
f() | function call (with no parameter) |
__noSuchMethod__(2) | function called when a function is not defined (in dynamic languages) |
(args...) -> ... | function definition (variable number of arguments) |
return(3) | function return value (breaks the control flow) |
no syntax needed(4) | function return value (function body is the result) |
Unknown:
runtime inspecting the caller information
continue / break | breaking control flow (continue / break) |
return(3) | breaking control flow (returning a value) |
try a ... catch exn ... | exception (catching) |
throw | exception (throwing) |
if c then ... | if_then |
if c ... | if_then |
if c then b1 else b2 | if_then_else |
if c b1 else if c2 b2 else b3 | if_then_else |
unless | ifnot_then (unless) |
for i in [10..1] ... | loop (for each value in a numeric range, 1 decrement) |
for i in [1..10] ... | loop (for each value in a numeric range, 1 increment (see also the entries about ranges)) |
for i in [1..10] by 2 ... | loop (for each value in a numeric range, free increment) |
loop | loop (forever loop) |
while c ... | loop (while condition do something) |
end-of-line | sequence |
super | accessing parent method |
class | class declaration |
this | current instance |
typeof | get the type/class corresponding to an object/instance/value |
obj.meth? instanceof Function | has the method |
class child extends parent | inheritance |
object.method(para) | method invocation |
object.method() | method invocation (with no parameter) |
new class_name(...) | object creation |
new class_name ... | object creation |
instanceof | testing class membership |
Unknown:
object cloning
methods available
. | package scope |
charAt | accessing n-th character |
fromCharCode | ascii to character |
charCodeAt | character to ascii |
toString | convert something to a string (see also string interpolation) |
String | convert something to a string (see also string interpolation) |
"" + e | convert something to a string (see also string interpolation) |
s[n..m] | extract a substring |
slice | extract a substring |
indexOf | locate a substring |
lastIndexOf | locate a substring (starting at the end) |
""" ... """ | multi-line |
+ | string concatenation |
== !=(Vimscript: whether or not == and != are case-sensitive depends on user settings.) | string equality & inequality |
length | string size |
"\n" | strings (end-of-line (without writing the real CR or LF character)) |
"... #{v} ..." "... #$v ..." "... #@v ..." "... #@@v ..." | strings (with interpolation of variables) |
'...' | strings (with no interpolation of variables) |
String | type name |
toUpperCase / toLowerCase | upper / lower case character |
toUpperCase / toLowerCase | uppercase / lowercase / capitalized string |
Unknown:
serialize (marshalling)
unserialize (un-marshalling)
false | false value |
no | false value |
null | false value |
off | false value |
undefined | false value |
0(5) | false value |
NaN | false value |
"" | false value |
'' | false value |
! | logical not |
not(6) | logical not |
|| / && | logical or / and (short circuit) |
or / and | logical or / and (short circuit) |
true | true value |
yes | true value |
on | true value |
boolean | type name |
unshift | adding an element at the beginning (list cons) (side-effect) |
push | adding an element at the end (side-effect) |
for v in l ... | for each element do something |
shift | get the first element and remove it |
pop | get the last element and remove it |
in | is an element in the list |
for v,i in l ... | iterate with index |
l.join(s) | join a list of strings in a string using a glue string |
concat | list concatenation |
[ a, b, c ](7) | list constructor |
length | list size |
a[i] | list/array indexing |
reverse | reverse |
sort(8) | sort |
Unknown:
adding an element at index
transform a list (or bag) in another one
transform two lists in parallel
find an element
keep elements
is the predicate true for an element
is the predicate true for every element
f(... f(f(init, e1), e2) ..., en)
h[k] | dictionary (access: read/write) |
h.k | dictionary (access: read/write) |
{ a: b, c: d } | dictionary (constructor) |
k in h | dictionary (has the key ?) |
delete | dictionary (remove by key) |
null | optional value (null value) |
v | optional value (value) |
a ... b | range (inclusive .. exclusive) |
[ a .. b ] | range (inclusive .. inclusive) |
. | record (selector) |
Unknown:
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)
dictionary (list of keys)
dictionary (list of values)
dictionary (merge)
+ / - / * / / | addition / subtraction / multiplication / division |
& / | / ^ | bitwise operators (and / or / xor) |
~ | bitwise operators (bitwise inversion) |
<< / >> / >>> | bitwise operators (left shift / right shift / unsigned right shift) |
pow | exponentiation (power) |
log | logarithm (base e) |
% | modulo (modulo of -3 / 2 is -1) |
- | negation |
1000., 1E3 | numbers syntax (floating point) |
0b1, 07, 0xf(9) | numbers syntax (integers in base 2, octal and hexadecimal) |
1000 | numbers syntax (integers) |
sqrt / exp / abs | square root / e-exponential / absolute value |
sin / cos / tan | trigonometry (basic) |
asin / acos / atan(10) | trigonometry (inverse) |
int / round / floor / ceil | truncate / round / floor / ceil |
Unknown:
random (random number)
random (seed the pseudo random generator)
operator priorities and associativities
logarithm (base 10)