Category:PL/0: Difference between revisions

m
no edit summary
(Added features.)
mNo edit summary
Line 8:
The only data type are integer numbers. The only operators are arithmetical and comparison ones. There is a function <code>odd</code> which examines if the integer argument is odd.
 
In the original implementation presented by Wirth, there are no input and output routines. The compilerinterpreter prints the new value of each variable when it becomes changed. So, the program:
<syntaxhighlight lang="pascal">
var a, b;
Line 35:
5
</pre>
MostHowever, most implementations have single input and single output routines.
 
The flow control structures are ''if-then'' and ''while-do'' constructs, and procedures defined by the user. Procedures cannot accept any parameters.
512

edits