Skip to main content
The FlexiLayout language follows these lexical conventions for identifiers, punctuation, operators, assignment, constants, and comments.

Identifiers

An identifier is a sequence of characters used to denote one of the following:
  • Block name
  • Element name
  • Constant name
  • Variable name
  • Keyword
Identifiers are case-insensitive. Identifier syntax:

Punctuation characters

The following punctuation characters can be used: . , ( ) * / + - = < > { } : ; ! & | The punctuation characters ( ) and { } must appear in pairs.

Operator precedence and associativity

The highest precedence level is at the top of the table.
The comparison operations (<, >, <=, >=, ==, !=) have equal priority.

Assignment operator

The = operator assigns a value to a variable. For example:
The data type of the expression must be compatible with the data type of the variable.

Constants

The FlexiLayout language uses only global constants. Global constants are set in the FlexiLayout Properties dialog box and can be accessed from any section of any block or element description. For more information, see Global constants.

Comments

You can add comments to the code. Comments have the same format as in the C language and can be written in one of the following ways:
  • The /* (slash, asterisk) characters, followed by any sequence of characters (including new lines), followed by the */ characters.
  • The // (two slashes) characters, followed by any sequence of characters. A new line not immediately preceded by a backslash terminates this form of comment.