Hank
Hank

Reputation: 11

Mozart IDE (emacs) parse error

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?

Upvotes: 1

Views: 220

Answers (1)

beroal
beroal

Reputation: 397

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".

Upvotes: 1

Related Questions