Discussion:
console application skeleton syntax
(too old to reply)
Dariush
2009-07-24 19:07:02 UTC
Permalink
Hi there;
can we have such skeleton syntax for a console application:

uses

type

Const


Function

Var

Begin

end

begin

end
BRoberts
2009-07-24 22:15:49 UTC
Permalink
Post by Dariush
Hi there;
You could have consulted the Object Pascal / Delphi Reference formal grammar
section for an answer. You could have simply tried to compile or syntax
check the desired skeleton for an answer.

According to the language grammar empty Type and Const clauses are not
allowed. Function does not describe a section and has a required declaration
which includes more than the reserved word Function.

Finally, a console application has the general syntax

Program <identification section> <declaration section> <compound
statement> .

Loading...