summaryrefslogtreecommitdiff
path: root/web/spiderweb/src/kelem/test.web
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/spiderweb/src/kelem/test.web
Initial commit
Diffstat (limited to 'web/spiderweb/src/kelem/test.web')
-rw-r--r--web/spiderweb/src/kelem/test.web19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/spiderweb/src/kelem/test.web b/web/spiderweb/src/kelem/test.web
new file mode 100644
index 0000000000..c5cd109cd1
--- /dev/null
+++ b/web/spiderweb/src/kelem/test.web
@@ -0,0 +1,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|.