Execute CopyPasta Language

From Rosetta Code
Revision as of 02:43, 25 September 2019 by Childishbeat (talk | contribs) (The Execute CopyPasta page has been created.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Execute CopyPasta Language
You are encouraged to solve this task according to the task description, using any language you may know.
Task

Implement a CopyPasta Language interpreter or compiler. These are the commands used by CopyPasta Language:

Command Description
Copy Copy the text of the following line to the clipboard
CopyFile Copy the text of the file cited in the following line to the clipboard or in the case where the next line is TheFuckingCode copies the code to the clipboard
Duplicate Duplicate the text in the clipboard as many times as the following line specifies
Pasta! Display the clipboard and stop the program