Mercury Autocode Calculator

This page allows you to compile and execute Mercury Autocode assignment instructions one at a time. Type each instruction in the top box and click the Go button.
Working Area Programme Notes
Mercury
Instruction:

Translation:

RHS`value: :
There are some initial instructions already executed.
Instructions cannot be undone after Go has been pressed.

Only a single array a() is available. This cannot be changed.
Functions φ and the special variable π are not currently available.

Diagnostics are rudimentary and some syntax errors may fail inside JavaScript.
To clear memory and start again click Shift+Reload or Cntl+Shift+R.