Home
 

Extensions

Extensions

This version of epc2 is able to use multidimensional arrays. To do so just change this to the following in the Makefile.

#E_MULT_ARR=   -DMULT_ARR
E_MULT_ARR=
E_MULT_ARR=    -DMULT_ARR
#E_MULT_ARR=


Then you are able to write programs like this.

program marray;
  var a: array[1..2] of array[1..4] of integer;
begin
    a[2][3] := 25;
    writeln(a[2][3]);
end.


Running the program results in this.

>./epc marray.p | ./slick
slick interpreter version 1.2

25