The Role Advisor - Syntax Considerations

The Role Advisor - Restrictions

The Role Advisor currently analyzes only Pascal programs that

In addition RA is quite picky about Pascal syntax, it does not process programs with a semicolon before the reserved word "end". For example

(* 1 *)  while count > 0 do begin
(* 2 *)      write('Enter value: '); readln(value);
(* 3 *)      writeln('Two times ', value, ' is ', 2*value);
(* 4 *)      count := count - 1
(* 5 *)  end;

is ok as the line 4 does not end in a semicolon, but

(* 1 *)  while count > 0 do begin
(* 2 *)      write('Enter value: '); readln(value);
(* 3 *)      writeln('Two times ', value, ' is ', 2*value);
(* 4 *)      count := count - 1;
(* 5 *)  end;

is not as the line 4 ends in a semicolon.

Click here to get back to the Role Advisor main page!



Copyright © 2006 by Jorma Sajaniemi and Petri Gerdt.
Last updated: January 24, 2006