Category:PL/0: Difference between revisions
no edit summary
mNo edit summary |
No edit summary |
||
Line 6:
One must explicitly declare all used constants and variables.
The only data type is integer. The only operators are arithmetical and comparisons. There is a function <code>odd</code>
In the original implementation presented by Wirth, there are no input and output routines. The interpreter prints the new value of each variable when it changes. So, the program:
Line 37:
However, most implementations have single input and single output routines.
The flow control structures are ''if-then'' and ''while-do'' constructs, and procedures are defined by the user. Procedures cannot accept any parameters.
== Syntax ==
|