HARSFEN0602ElmoHARmonicaSoftwareManual

PRELIMINARYDRAFT

 

 

 

 

 

 

 

 

 

 

53

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

Name is too long

 

Variable or function name exceeds 12 characters.

 

 

 

 

 

 

For example,

 

 

 

 

 

 

int iuyuafdsf_876234 ;

 

 

12

No such variable

 

Left hand side error: left value is recognized neither as variable nor as system

 

 

 

 

 

 

command.

 

 

 

 

 

 

For example,

 

 

 

 

 

 

de = sin(0.5)

 

 

 

 

 

 

de is neither variable nor function.

 

 

13

Too many dimensions

 

Dimension of array exceeds maximal admissible number of dimensions

 

 

 

 

 

 

(syntax allows only one dimensional arrays).

 

 

 

 

 

 

For example,

 

 

 

 

 

 

int arr[12][2];

 

 

 

 

 

 

It is attempt to define two dimensional array

 

 

14

Bad number of input

 

The number of input arguments during function call does not match to the

 

 

 

 

arguments

 

number of input arguments at the function definition.

 

 

 

 

 

 

For example,

 

 

 

 

 

 

function foo(float a); ** Function prototype

 

 

 

 

 

 

… ** Some code

 

 

 

 

 

 

foo(a,2); ** Function call

 

 

 

 

 

 

The number of input argument during function call is two, while the function

 

 

 

 

 

 

‘foo’ is defined with the only input argument.

 

 

15

Bad number of output

 

Bad syntax of left hand expression: multiple output without square brackets,

 

 

 

 

arguments

 

or multiple output exceeds maximal admissible number of outputs (it is

 

 

 

 

 

 

allowed maximal 16 outputs).

 

 

 

 

 

 

For example,

 

 

 

 

 

 

a, b = foo(1,2) ;

 

 

 

 

 

 

Multiple output must be within square brackets.

 

 

16

Out of memory

 

Out of memory during compilation. This error may occur if user program is

 

 

 

 

 

 

too large or too complex and there is no enough space in the Code Segment

 

 

 

 

 

 

or Symbol Table.

 

 

17

Too many arguments

 

The number of input or output arguments exceeds maximal admissible

 

 

 

 

 

 

number of input or output arguments (16).

 

 

 

 

 

 

For example,

 

 

 

 

 

 

function foo (int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9,

 

 

 

 

 

 

int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int

 

 

 

 

 

 

a19, int a20)

 

 

 

 

 

 

The number of input arguments exceeds 16.

 

 

18

Bad context

 

It appears if the compiler finds any error that disorders a context of program.

 

 

 

 

 

 

For example, it may be mismatched parenthesis or improperly closed flow

 

 

 

 

 

 

control statement

 

 

19

Write file error

 

Some error occurred during writing to a file.

 

 

20

Read file error

 

Some error occurred during reading from a file

 

 

21

Internal compiler error:

 

It is internal compiler error because of corrupted database.

 

 

 

 

bad database

 

In a case of internal compiler error, please e-mail for technical support,

 

 

 

 

 

 

asusid@elmo.co.il.

 

 

 

 

 

 

Please attach the Composer date and version (In the help menu in the toolbar)

 

 

 

 

 

 

and the program you tried to compile.

 

 

22

Function definition is

 

Illegal function definition: inside another function or inside flow control

 

 

 

 

inside another function

 

block.

 

 

 

 

or flow control block

 

For example,

 

 

 

 

 

 

if a < 0

 

 

 

 

 

 

a = 0 ;

 

 

 

 

 

 

function foo (int a);

 

 

 

 

 

 

end

 

 

 

 

 

 

Attempt to define function inside ‘if’ block.

 

 

23

Too many functions

 

User program contains too many functions and there no enough space for

 

 

Page 55
Image 55
Elmo HARSFEN0602, HARmonica software manual Asusid@elmo.co.il