Cú pháp của PL/0 mở rộng
Program
PROGRAM Ident ; Block
Block
CONST Ident = Number
,
;
VAR Ident [ Number ]
,
;
; Block ;
PROCEDURE Ident ( VAR Ident )
;
BEGIN Statement END
;
Statement
Ident := Expression
[ Expression ]
CALL Ident ( Expression )
,
BEGIN Statement END
Statement ;
ELSE Statement
IF Condition THEN Statement
WHILE Condition DO Statement
FOR Ident :=
Expression TO
Expression DO Statement
Expression
+
Term
-
+
Term
-
Term
Factor
*
Factor
/
Expression
+
Term
-
+
Term
-
Condition
ODD Expression
=
>
>=
Expression Expression
<