CSV to HTML translation: Difference between revisions
Content deleted Content added
m →[[CSV to HTML translation#ALGOL 68]]: define extra variable: nf. |
→[[CSV to HTML translation#ALGOL 68]]: rename varibles. |
||
Line 107:
<lang algol68>#!/usr/local/bin/a68g --script #
[6]STRING
"Character,Speech ",
"The multitude,The messiah! Show us the messiah! ",
Line 151:
lmth = VOID: print(("</HTML>", new line));
FILE row input; STRING
associate(row input, row); make term(row input,
html;
Line 159 ⟶ 158:
body;
table;
FOR nr TO UPB
table row;
on logical file end(row input, (REF FILE row input)BOOL:
FOR nf DO
STRING
(nr=1|th|td)(ENCODE
get(row input, space)
OD;
elbat row
OD;
|