1

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?

Rohan Pillai
  • 917
  • 3
  • 17
  • 26
Hank
  • 11
  • 2

1 Answers1

1

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

beroal
  • 369
  • 4
  • 14