The "Unknown:"s below indicate that an entry is incomplete.

- either the entry exist in the language, and please tell.
- either the entry doesn't exist in the language, and please tell so. The entry will be marked as such and won't appear as missing anymore.

- Category: Dynamically typed
- Various
`nothing needed`breaking lines (useful when end-of-line and/or indentation has a special meaning) `( ... )`commenting (non nestable) `\`commenting (until end of line) `< > <= >=`comparison `u< u> u<= u>=`comparison `f< f>`comparison `min / max`comparison (min / max (binary or more)) `fmin / fmax`comparison (min / max (binary or more)) `compare`comparison (returns 3 values (i.e. inferior, equal or superior)) `= <>`equality / inequality (shallow) `f= f<>`equality / inequality (shallow) `allocate throw`manual memory allocation (allocation) `free throw`manual memory allocation (deallocation) `evaluate`runtime evaluation `case-insensitive`tokens (case-sensitivity (keywords, variable identifiers...)) `anything without a space and is not a number`tokens (variable identifier regexp) `e v !`variable assignment or declaration (assignment) `variable v(1)`variable assignment or declaration (declaration) `e value v`variable assignment or declaration (declaration) Unknown:

tokens (what is the standard way for scrunching together multiple words)

- Functions
`:noname ...`anonymous function `a b ... f`function call `f`function call (with no parameter) `: f ... ;`function definition `exit`function return value (breaks the control flow) - Control Flow
`/ leave`breaking control flow (continue / break) `exit`breaking control flow (returning a value) `catch`exception (catching) `throw`exception (throwing) `c if b1 then`if_then `c if b1 else b2 then`if_then_else `begin ... c until`loop (do something until condition) `1 10 do ... -1 +loop`loop (for each value in a numeric range, 1 decrement) `11 1 do ... loop`loop (for each value in a numeric range, 1 increment (see also the entries about ranges)) `11 1 do ... 2 +loop`loop (for each value in a numeric range, free increment) `begin ... again`loop (forever loop) `begin c while ... repeat`loop (while condition do something) val case v1 of ... endof v2 of ... endof ... endcase

multiple selection (switch) Unknown:

loop (for "a la C" (while + initialisation))

- Strings
`over n chars + c@`accessing n-th character `char z, [char] z(2)`character "z" `over n chars + len`extract a substring `type`simple print (on strings) `dup(3)`string size `s"..."`strings (with no interpolation of variables) - Booleans
`false`false value `0(4)`false value `=0`logical not `true`true value `-1`true value - Bags and Lists
`a i cells + @ (for write access: o a i cells + !`list/array indexing Unknown:

list constructor

for each element do something

list size - Various Data Types
`0(5)`optional value (null value) `!`reference (pointer) (assigning (when dereferencing doesn't give a lvalue)) `variable`reference (pointer) (creation) `@`reference (pointer) (dereference) Unknown:

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) - Mathematics
`+ / - / * / /`addition / subtraction / multiplication / division `f+ / f- / f* / f/`addition / subtraction / multiplication / division `and / or / xor`bitwise operators (and / or / xor) `invert`bitwise operators (bitwise inversion) `lshift / rshift`bitwise operators (left shift / right shift / unsigned right shift) `/mod`euclidean division (both quotient and modulo) `f**`exponentiation (power) `flog`logarithm (base 10) `fln`logarithm (base e) `mod`modulo (modulo of -3 / 2 is -1) `negate`negation `fnegate`negation `1000e, 1e3`numbers syntax (floating point) `$f`numbers syntax (integers in base 2, octal and hexadecimal) `1000`numbers syntax (integers) `fsqrt / fexp / abs,fabs`square root / e-exponential / absolute value `fsin / fcos / ftan`trigonometry (basic) `fasin / facos / fatan`trigonometry (inverse) `/ fround / /`truncate / round / floor / ceil Unknown:

random (random number)

random (seed the pseudo random generator)

- (1) the variable behaves like a pointer
- (2) inside a function
- (3) the string is represented on the stack as (addr len)
- (4) beware of 0.0 which is true in Pike!
- (5) optional value is only for pointers

Pixel

This work is licensed under a Creative Commons Attribution-ShareAlike 2.0 Generic License.

Generated from syntax-across-languages.html.pl

$Id: syntax-across-languages.html.pl 408 2008-08-29 08:32:23Z pixel $