Execute CopyPasta Language: Difference between revisions
m
→{{header|Phix}}
Line 768:
=={{header|Phix}}==
Fakes
If run without command-line parameters it fakes
Assumes if clipboard is "hello
<lang Phix>constant prog1_cp = """
Copy
Line 794:
Goto
3
Pasta!
""",
Line 806 ⟶ 799:
I'm the pasta.txt file.
""",
fake_files = {"prog1.cp","prog2.cp","prog3
fake_texts = { prog1_cp , prog2_cp , prog3_cp
function get_file_lines(string filename)
Line 845 ⟶ 838:
sequence cl = command_line()
if length(cl)=2 then
for i=1 to
try
interpret(sprintf("prog%d.cp",i))
Line 874 ⟶ 867:
interpret(prog4.cp):
▲"crash(file not found:prog5.cp)"
</pre>
|