Elmo HARmonica Network Hardware User Manual


 
HARSFEN0602
There is empty expression inside round brackets
k = 1:2:20
Colon expression is used out of ‘for’ statement
2 Empty expression Expected right hand expression is absent
For example,
a = ;
After assignment symbol the right hand expression is absent
3 Stack is full Stack overflows its depth
4 Bad index expression This error appears if an index expression of a variable is not evaluated in a
single value.
For example,
a(2,3)
The result of evaluation of the expression in round brackets is two values, not
a single value.
One more example,
a()
The index expression is empty
5 Bad variable type The expected variable type is neither ‘float’ nor ‘int’. This error may appear
either after the keyword ‘global’ or input/output arguments at the function
definition.
For example,
global floa a;
After the keyword ‘global’ the variable type is expected. The type ‘floa’ is
unknown.
function foo (long a)
In round parentheses the type of the input argument is expected. The type
‘long’ is unknown.
6 Parentheses mismatch The number of opening parentheses does not match to the number of closing
parentheses. It regards to as round as square parentheses.
For example,
b = a(1))
There is unnecessary closing parenthesis.
7 Value is expected This error appears if right or left hand expression is not evaluated in a single
value or it failed during evaluation of a bad syntax expression For example,
b = ^ a ;
Before operator ‘^’ a value is expected.
8 Operator is expected This error appears during right hand expression evaluation, if after successful
value evaluation there is neither operator nor terminator of a simple
expression.
For example,
b = a c ;
After successful evaluation of ‘a’ an operator or expression terminator is
expected, but ‘c’ is not recognized neither as an operator nor as a terminator.
9 Out of memory in the
data segment
This error appears during memory allocation for global variable: there is no
enough place at the data segment.
10 Bad colon expression Error during evaluation of colon expression. The colon expression may
appear only in ‘for’ statement.
Bad syntax of colon expression may cause to this error: more than three
values or less than two values in the colon expression.
For example,
for k = 10:-1:5:9
The colon expression contains more than tree values.
This error also appears if expected colon expression is absent at the ‘for’
statement.
for k = a
After the symbol ‘=’ colon expression is expected