QuinePig

From Esolang
Jump to: navigation, search

QuinePig is a version of the language Pig, where every program is a quine.

Usage

QuinePig follows nearly the same syntax rules as Pig. You write the name of the text file you want to create, write PIG, then write the rest of the contents of the text file.

The difference is that QuinePig takes ALL of the code you wrote and puts it in the text file. Therefore, every QuinePig program is a Quine.

Various Programs in SickPig

Text File Named "Hello, World!"

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

Hello, World!PIG

Cat Program

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

Quine

Every QuinePig program is a Quine.

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.