SickPig

From Esolang
Jump to: navigation, search

SickPig is a version of the language Pig, that simulates a pig that is sick.

Usage

SickPig follows the same syntax rules as Pig. You write the name of the text file you want to create, write PIG, then write the contents of the text file. However, because the pig is sick, it will ignore your desired contents and write one of these words instead:

GRUNT

MOAN

OINK

BURP

GROAN

WHINE

Therefore, a complete SickPig program will be a text file which contents are one of these words.

Various Programs in SickPig

Text File Named "Hello, World!"

The following code creates a text file named "Hello, World!" that has random contents.

Hello, World!PIG

Cat Program

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

Quine

SickPig cannot create a Quine either.

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.