Program structure
The program structure can generally be described as follows:
program programName;
constant declarations;
type declarations;
variable declarations;
function and procedure declarations;
begin
statements
end.
MIDletPascal is case-insensitive. So it doesn't matter if you write begin, BEGIN or BeGiN. Comments can be written between '{' and '}', for example:
{ this is a comment }
or between (* and *):
(* this is also a comment *)
Additionally, MIDletPascal supports singe-line comments:
// this is a comment