From Esolang
Jump to navigation Jump to search

DeadPig is a version of the language Pig, where the pig has obviously died.


DeadPig follows the same syntax rules as Pig, You write the title of the text file you want to make, write PIG, then write the contents of the text file. However, the pig has died, so the program will ignore your desired contents and write "Your pig has unfortunately died. Please try again."

Various Programs in DeadPig

Text File Named "Hello, World!"

The following code creates a text file named "Hello, World!".

Hello, World!PIG

Cat Program

DeadPig cannot create the Cat program because it is output only.


DeadPig cannot create a Quine either. However, if one ignores case, then DeadPig can create a Quine-by-error, or a false Quine, with the code

Your PIG has unfortunately died. Please try again.

This creates a file named "Your " with the text "Your pig has unfortunately died. Please try again.".

The Pig Series

The Pig series is a a series of programming languages that are all based on Pig.

The languages are Pig, SickPig, DeadPig, and QuinePig.