Arguments
About
The arguments section is used to generate a list of expressions for use
by function calls
and Call Statements.
| Java Example |
|
[Argument] |
|
Separator |
= ,{space} |
|
Text |
= {expression} |
Separator Key
The Separator defines the text that will be inserted between the list of
arguments names.
| Flags |
When True |
| first |
The expression is the first item in the
list. |
| last |
The expression is the last item in the
list. |
Text Key
The text key is used to generate the syntax of the argument list.
| Fields |
Contents |
| {Expression} |
The expression for
the argument |
| {Parameter Name} |
The name of the
function's parameter that matches the argument. This is necessary for
"named arguments" used in language such as Swift and Smalltalk. |
The first and last flags can be used if the syntax differs for the first
or last item in the list.
| Flags |
When True |
| integer |
The expression is an Integer. |
| real |
The expression is a Real. |
| boolean |
The expression is an Boolean. |
| string |
The expression is an String. |
| none |
The expression doesn't have a
known type - i.e. not declared. This is good for a "default"
syntax. |
| integer-parameter |
The matching parameter is an Integer. |
| real-parameter |
The matching parameter is a Real. |
| boolean-parameter |
The matching parameter is an Boolean. |
| string-parameter |
The matching parameter is an String. |
| first |
The expression is the first item in the
list. |
| last |
The expression is the last item in the
list. |
|