beautypg.com

4 string literals, 2 basic concepts, 1 declarations and definitions – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 70: 1 declarations, Floating-point

background image

5.1.6.4 String Literals

A string literal consists of one or more characters from the source character set
surrounded by double quotation marks ("). A string literal represents a sequence of
characters that, taken together, form a null-terminated string.

Syntax

string-literal

:

"s-char-sequence"

s-char-sequence :

s-char

s-char-sequence s-char

s-char :

any member of the source character set except the double quotation

mark (")

5.2

Basic Concepts

5.2.1

Declarations and Definitions

Declarations tell the compiler that a program element or name exists.

Definitions

specify what code or data the name describes.

5.2.1.1

Maestro

Software Manual

MAXL Program Language

MAN-MASSW (Ver. Q)

Declarations

A declaration introduces one or more names into a program. MAXL supports
following syntactic of declarations:

• Variable declaration
• Function declaration
• Global variable declaration inside body of function

Function declarations also serve as definitions.

Global variable declaration inside function body specified by a global keyword.

Syntax

variable-declaration:

[global] type-specifier variable-name

function-declaration:

function [ argument-list ] = function-name ( argument-list )

function-body

end [function]

argument-list:

5-8