Question: "Unable to match delimiters" with code provided by Professor

I am supposed to implement the following code in Maple (I am using Maple 16 for Mac):



 euclid:= proc(m,n) local q,r1,r2,r3;

r1:=m; r2:=n;

while r2 <> 0 do;

q:=iquo(r1,r2); r3:=irem(r1,r2);

lprint(r1, '=', q, '*', r2, '+', r3);

r1:=r2; r2:=r3; od;

RETURN(r1); end;

 

It just returns: "Error, unable to match delimiters". I copied (typed) the code from this PDF: 

http://www.mast.queensu.ca/~math211/m211pr/m211pr02.pdf

which is an assignment.

 

What am I doing wrong? Any help would be appreciated. Here is a screenshot of the error:

The Error 

Please Wait...