Code:
program myst;
uses crt;
var name: string;
pref: byte;
yn1: char;
(*procedure name_prefix; forward;*)
procedure enter_name;
begin
clrscr;
TextColor(3);
writeln ('Welcome to Mystrunner. Before we get any further, ');
writeln ('please enter the name you wish to be called:');
TextColor(4);
read (name)
end;
procedure enter_name_yn;
begin
writeln ('');
writeln ('So you wish to be called (name)? Y:N ');
yn1:=readkey;
case yn1 of
#89 : writeln ('(name) it is!');
#121 : writeln ('(name) it is!');
#78 : enter_name;
#110 : enter_name;
else enter_name_yn;
end;
begin
clrscr;
[COLOR=red]end.[/color]
I'm getting an expected ";" at my "end." in my main block code. This is supposed to be my main block? Why am I getting this error at runtime?