Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
39
Task/Quine/Cowgol/quine.cowgol
Normal file
39
Task/Quine/Cowgol/quine.cowgol
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
include "cowgol.coh";
|
||||
var i: uint8 := 0;
|
||||
var c: uint8[] := {
|
||||
118,97,114,32,100,32,58,61,32,38,99,32,97,115,32,91,117,105,110,116,
|
||||
56,93,59,10,112,114,105,110,116,40,34,105,110,99,108,117,100,101,32,92,
|
||||
34,99,111,119,103,111,108,46,99,111,104,92,34,59,92,110,34,41,59,10,
|
||||
112,114,105,110,116,40,34,118,97,114,32,105,58,32,117,105,110,116,56,32,
|
||||
58,61,32,48,59,92,110,34,41,59,10,112,114,105,110,116,40,34,118,97,
|
||||
114,32,99,58,32,117,105,110,116,56,91,93,32,58,61,32,123,92,110,34,
|
||||
41,59,10,108,111,111,112,32,10,32,32,32,32,112,114,105,110,116,95,105,
|
||||
56,40,91,100,93,41,59,10,32,32,32,32,105,102,32,91,100,93,61,61,
|
||||
48,32,116,104,101,110,32,98,114,101,97,107,59,32,101,110,100,32,105,102,
|
||||
59,10,32,32,32,32,100,32,58,61,32,64,110,101,120,116,32,100,59,10,
|
||||
32,32,32,32,112,114,105,110,116,95,99,104,97,114,40,39,44,39,41,59,
|
||||
10,32,32,32,32,105,32,58,61,32,105,32,43,32,49,59,10,32,32,32,
|
||||
32,105,102,32,105,61,61,50,48,32,116,104,101,110,32,10,32,32,32,32,
|
||||
32,32,32,32,112,114,105,110,116,95,110,108,40,41,59,32,10,32,32,32,
|
||||
32,32,32,32,32,105,32,58,61,32,48,59,10,32,32,32,32,101,110,100,
|
||||
32,105,102,59,10,101,110,100,32,108,111,111,112,59,10,112,114,105,110,116,
|
||||
40,34,92,110,125,59,92,110,34,41,59,10,112,114,105,110,116,40,38,99,
|
||||
32,97,115,32,91,117,105,110,116,56,93,41,59,0
|
||||
};
|
||||
var d := &c as [uint8];
|
||||
print("include \"cowgol.coh\";\n");
|
||||
print("var i: uint8 := 0;\n");
|
||||
print("var c: uint8[] := {\n");
|
||||
loop
|
||||
print_i8([d]);
|
||||
if [d]==0 then break; end if;
|
||||
d := @next d;
|
||||
print_char(',');
|
||||
i := i + 1;
|
||||
if i==20 then
|
||||
print_nl();
|
||||
i := 0;
|
||||
end if;
|
||||
end loop;
|
||||
print("\n};\n");
|
||||
print(&c as [uint8]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue