Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Show-ASCII-table/CLU/show-ascii-table.clu
Normal file
18
Task/Show-ASCII-table/CLU/show-ascii-table.clu
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
ascii = proc (n: int) returns (string)
|
||||
if n=32 then return("Spc")
|
||||
elseif n=127 then return("Del")
|
||||
else return(string$c2s(char$i2c(n)))
|
||||
end
|
||||
end ascii
|
||||
|
||||
start_up = proc ()
|
||||
po: stream := stream$primary_output()
|
||||
for i: int in int$from_to(32, 47) do
|
||||
for j: int in int$from_to_by(i, 127, 16) do
|
||||
stream$putright(po, int$unparse(j), 3)
|
||||
stream$puts(po, ": ")
|
||||
stream$putleft(po, ascii(j), 5)
|
||||
end
|
||||
stream$putl(po, "")
|
||||
end
|
||||
end start_up
|
||||
Loading…
Add table
Add a link
Reference in a new issue