blob: c5cd109cd159a78590e311fa9396f36bfea5eb47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
%\font\em=cmmi9
%\font\bf=cmbx9
\def\LEQU{=\kern-2pt=}
@* Guide to Algol-like C.
This is a style guide for writing programs in Algol-like C.
Algol-like C (hereafter referred to as AC) is based on the syntax of the Algol
languages (Algol~60 and Algol~68).
AC is translated into C.
@<Data types@>=
@2
BEGIN
INT i; /* integer */
enum hue {red, green, blue }; /* an enumerated type */
END
@ There are a few commonly used data values that have names.
|TRUE|, |FALSE|, |NORMAL|, |ERROR|, |UNDEFINED|, and |NULL|.
|