Was ist los mit dieser Pascal-Syntax?

Ich kann nicht verstehen, was hier los ist. Kannst du mir helfen? Dies ist der problematische Code:

While not EOF(Archi) do begin
  index:= index + 1;
  Read(Archi, Alumno[index]);
  Promes[index] := (Alumno[index].nota1 + Alumno[index].nota2) / 2;
  if Promes[index] >= 6 then begin
     alguPromo := true;
     PromosIndex := PromosIndex + 1;
     Promos[PromosIndex]:= Alumno[index];
  end;
  else begin
       if Promes[index] > 4 then cantiRecu:= cantiRecu + 1;
       else begin
            LibresIndex += 1;
            Libres[LibresIndex] := Alumno[index];
            end;
  end;
end;

Der Compiler markiert einen Fehler in der Zeile 10 dieses Codes (sonst beginne). Der Fehler ist: Fatal: Syntaxfehler; erwartet, aber sonst gefunden.

Wenn jemand Tray kompilieren möchte ist hier der gesamte Code:http://pastebin.com/dRg1Lguu

Antworten auf die Frage(1)

Ihre Antwort auf die Frage