A program is either an executable program, that is, the complete and runnable application, or it is that portion of a Pascal Source code file or files that can be compiled and is not declared to be a unit. This is sometimes referred to as the main program.
Example
</syntaxhighlight lang="Pascal"> program project1; {$R *.res} begin
writeLn('demo of program');
end. </syntaxhighlight>