beautypg.com

ElmoMC SimplIQ Software Manual User Manual

Page 70

background image

SimplIQ

Software Manual

Program Development and Execution

MAN-SIMSW (Ver. 1.4)

6-8

Error
Code


Error String


Meaning


Example

41

Case must

follow switch

After a switch statement, the
only legal statement is case;
otherwise, this error occurs.

switch a

b = 0;

case 1,

b = 1;

end
The expression b=0 is illegal
because switch must be followed
by case.

42

Illegal case

after

otherwise

The otherwise statement must
be the last statement of a
switch block. Any case after
otherwise is illegal.

switch a

case 1,

b = 1;

otherwise

b = 0;

case 2,

b = 1;

end
The statement case 2 is illegal
because otherwise must be the
last statement of switch.

43

Bad nesting

Flow control block
contradiction: else without if,
mismatched end, flow control
without end, etc.

44

Code is not

expected.

There is some unexpected
code for evaluation after
otherwise, end, else, etc.

45

Bad flow

control

expression

No “=” sign after the iteration
variable name in a for
statement.

for k

a = 0;

end

A = is missing after the k.

46

Too many

errors

The compilation error buffer
is full.

47

Expression is

out of

function

A function or label must
contain executable code;
otherwise this error occurs.

int a1;

a1 = 0;

function func (int a)

Executable code is illegal
because it is out of the function.

48

Otherwise

without any

case

An otherwise appears
immediately after a switch
statement.

switch a

otherwise

b = 0 ;

end
After a switch statement, case is
expected, not otherwise.