mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
72 lines
1.5 KiB
XML
72 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>() (parentheses)</name>
|
|
|
|
<category>Structure</category>
|
|
|
|
<subcategory></subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
int a;
|
|
a = (4 + 3) * 2; // Grouping expressions
|
|
if (a > 10) { // Containing expressions
|
|
line(a, 0, a, 100); // Containing a list of parameters
|
|
}
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Grouping and containing expressions and parameters. Parentheses have multiple functions relating to functions and structures. They are used to contain a list of parameters passed to functions and control structures and they are used to group expressions to control the order of execution. Some functions have no parameters and in this case, the space between parentheses is blank.
|
|
</description>
|
|
|
|
<syntax>
|
|
<c>function</c>()
|
|
<c>function</c>(<c>p1</c>, ..., <c>pN</c>)
|
|
<c>structure</c>(<c>expression</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>function</label>
|
|
<description>any function</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>p1...pN</label>
|
|
<description>list of parameters specific to the function</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>structure</label>
|
|
<description>Control structure such as if(), for(), while()</description>
|
|
</parameter>
|
|
|
|
<parameter>
|
|
<label>expressions</label>
|
|
<description>any valid expression or group of expression</description>
|
|
</parameter>
|
|
|
|
<returns></returns>
|
|
|
|
<related>
|
|
, (comma)
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Operator</type>
|
|
|
|
<partof>PDE</partof>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</root>
|