
5.1.4 Punctuators............................................................................................... 5-3
5.1.5 Operators................................................................................................... 5-3
5.1.6 Literals....................................................................................................... 5-5
5.1.6.1 Integer Constant................................................................................... 5-5
5.1.6.2 Named Constant - #define and const. ............................................... 5-6
5.1.6.3 Floating-Point Constant ...................................................................... 5-7
5.1.6.4 String Literals ....................................................................................... 5-8
5.2 Basic Concepts ..................................................................................................... 5-8
5.2.1 Declarations and Definitions................................................................... 5-8
5.2.1.1 Declarations.......................................................................................... 5-8
5.2.1.2 Array Declarations............................................................................... 5-9
5.2.1.3 Definitions ...........................................................................................5-10
5.2.2 Program...................................................................................................5-10
5.2.3 Startup and Termination ....................................................................... 5-10
5.2.3.1 Program Startup – the run Function .................................................5-10
5.2.3.2 Program Termination .........................................................................5-10
5.2.4 Types........................................................................................................5-11
5.2.4.1 Fundamental Types ............................................................................5-11
5.2.4.2 Object Types........................................................................................5-11
5.2.4.3 Debug string........................................................................................5-12
5.3 Standard Conversions....................................................................................... 5-12
5.4 Expressions......................................................................................................... 5-13
5.4.1 Types of Expressions..............................................................................5-13
5.4.1.1 MAXL Primary Expressions ..............................................................5-13
5.4.1.2 Postfix Expressions .............................................................................5-14
5.4.1.3 Expressions with Unary Operators...................................................5-15
5.4.1.4 Expressions with Binary Operators ..................................................5-16
5.4.1.5 MAXL Logical Operators...................................................................5-21
5.4.1.6 Simple Assignment.............................................................................5-22
5.4.1.7 Size of Array........................................................................................5-22
5.4.2 Semantics of Expressions....................................................................... 5-23
5.4.2.1 Order of Evaluation............................................................................5-23
5.5 Statements .......................................................................................................... 5-24
5.5.1 Labeled Statements ................................................................................5-24
5.5.1.1 Using Labels with the goto Statement ..............................................5-24
5.5.1.2 Using Labels in the case Statement ...................................................5-25
5.5.2 Selection Statements............................................................................... 5-25
5.5.2.1 The MAXL if Statement......................................................................5-25
5.5.2.2 The MAXL switch Statement.............................................................5-26
5.5.3 Iteration Statements ...............................................................................5-27
5.5.3.1 The MAXL while Statement...............................................................5-27
5.5.3.2 The MAXL for Statement ...................................................................5-28
5.5.4 Jump Statements..................................................................................... 5-28
5.5.4.1 The MAXL break Statement...............................................................5-29
5.5.4.2 The MAXL continue Statement .........................................................5-29
5.5.4.3 The MAXL return Statement..............................................................5-29
5.5.4.4 The goto Statement .............................................................................5-29
5.5.4.5 Declaration Statements.......................................................................5-30
Maestro Software Manual Contents
MAN-MAMSW (Ver. Q)
ii
Komentarze do niniejszej Instrukcji