regular comment |
|
EOL-Comment |
|
Token-Comment |
|
integers |
|
large integers |
(arbitrary size) |
integers with radix |
|
floats (IEEE double; roughly 17 decimals) |
|
short floats (IEEE single; roughly 8 decimals) |
|
long floats (IEEE quad; roughly 20 decimals) |
|
high prec. floats; roughly 60 decimals |
|
fractions |
|
characters |
|
strings |
|
arrays |
(each element a literal constant) |
byte arrays |
(each byte-element an integer constant in 0..255) |
special number arrays |
(XX: one of
|
without argument |
when evaluated, the value is the value
|
one argument |
|
multiple arguments |
|
unary expression (without argument) |
receiver is itself either a constant, a lambda-block, a unary expression or a parenthesized expression |
keyword expression: (1 arg) |
|
keyword expression: (any number of args) |
|
binary expression |
|
parentheses for grouping |
|
assignment |
|
local variables (in block or method) |
variable declarations must be at the beginning (before any expression). |
separating multiple expressions (sequence) |
expressions (statements) are separated by fullstop (period) characters.
|
return from method |
returns from the enclosing method (also if inside a block-closure) |
conditional execution |
variations without true-part, without false part and with the order reversed are available. |
while loop |
notice the receiver being a block. |
for loop |
evaluates the lambda for each value in start..stop. |
enumerating collections |
evaluates the lambda for each element in the collection. |
evaluating a lambda block without arguments: with arguments: |
the number of arguments must match the number expected by the lambda (although varArg lambdas are also available) |
return from method |
returns from the enclosing method (also if inside a block-closure) |
Logging and Messaging |
|
Collections |
|
Process Handling |
|
Files & Streams |
|
Low Level Access |
|
-I | ignore snapshot image |
--repl | start an interactive read-eval-print-loop |
--print expr | eval expr, print its value then exit |
--eval expr | eval expr (without printing) then exit |
--execute filename | execute the script in fileName then exit |
--loadPackage package-ID | preload a compiled smalltalk class library (package) |
--help | show all other command line options |
Copyright © 2017 Claus Gittinger Development & Consulting
<cg@exept.de>