Assignment | Variable := Expression |
Variable[Expression] := Expression |
Expression | Variable |
Variable[Expression] |
IntegerNumber |
RealNumber |
Expression ArithmeticOp Expression |
LogicOp | AND OR |
ComparisonOp | = <> > < >= <= |
Comparison | Expression ComparisonOp Expression |
Comparison LogicOp Comparison |
NOT Comparison |
Block | BEGIN ... END |
Test | IF Comparison THEN ... ELSE ... ENDIF |
IF Comparison THEN ... ENDIF |
Loop | WHILE Comparison DO ... ENDWHILE |
REPEAT ... UNTIL Comparison ENDREPEAT |
FOR Variable := Expression TO Expression DO ... ENDFOR PARFOR Variable := Expression TO Expression [Private Variable ...] [REDUCTION operator Variable] DO ... ENDPARFOR
|
Input | READ(Variable) |
Output | WRITE(Variable) |