Category:ALGOL 68: Difference between revisions
→Coding style of samples: no need to show upper stropping twice
(→TODO: Changed heading) |
(→Coding style of samples: no need to show upper stropping twice) |
||
Line 114:
Rutgers ALGOL 68 uses quote stropping. Most of the samples
on Rosetta Code use Upper stropping.
Examples (pragmatic comments to set the stropping regime not shown):
{|border="1" style="border-collapse: collapse; border:
|| Algol68 as typically published
'''mode''' '''xint''' = '''int''';
'''xint''' sum sq:=0;
Line 125 ⟶ 124:
sum sq+:=i↑2
'''od'''
||
'mode' 'xint' = 'int';
'xint' sum sq:=0;
Line 134 ⟶ 132:
sum sq+:=i↑2
'od'
|| POINT stropping
.MODE .XINT = .INT;
.XINT SUM SQ:=0;
Line 153 ⟶ 141:
.OD
|| RES stropping
mode .xint = int;
.xint sum sq:=0;
Line 162 ⟶ 149:
od
|| Upper stropping
MODE XINT = INT;
XINT sum sq:=0;
|