1 names, 2 postfix expressions, Primary expressions – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 76

Advertising
background image

An expression enclosed in parentheses is a primary expression whose type and value
are identical to those of the unparenthesized expression.

5.4.1.1.1 Names

In the MAXL syntax for primary-expression, a name is a primary expression that can
appear only after the member-selection operators and names the attribute of an object.

Syntax

name :

identifier
object . attribute

5.4.1.2 Postfix Expressions

Postfix expressions consist of primary expressions or expressions in which postfix
operators follow a primary expression.

The postfix operators are listed in the table below:

Table 5-3

Postfix Operators

Operator Name

Operator Notation

Get array element

[ ]

Function call operator

( )

Method selection
operator

.

Postfix increment
operator

++

Postfix decrement
operator

Syntax

postfix-expression :

array-name [expression]
function-name (<expression-list>)
object . method (<expression-list>)
name ++
name - -

expression-list :

expression
expression-list , expression

Maestro

Software Manual

MAXL Program Language

MAN-MASSW (Ver. Q)

5-14

Advertising