Mozart IDE (emacs) parse error

217 Views Asked by At

Wrote this code using the mozart emacs system I downloaded from here:

This is my code:

declare fun {Mult X Y}
      X*Y end
end
{Browse {Mult 1 1}}

When I run it it says:

parse error in file Oz, line 6, column 1.

What does this mean? How do I fix it?

1

There are 1 best solutions below

0
beroal On

My Mozart Emacs gives a much better error message.

%*************************** parse error ************************

%**

%** syntax error, unexpected T_end, expecting T_ENDOFFILE

%**

%** in file "Oz", line 3, column 0

%** ------------------ rejected (1 error)

I says that you have a superfluous "end". "declare" does not need "end".