Pietfood

From Esolang
Jump to navigation Jump to search

Pietfood is a programming language inspired by 🅿🅸🅴🆃. It is a text-based equivalent of Piet.

Execution

The colors in are shown below:

White: Tofu
Light red: Rose Light yellow: Egg Light green: Lime Light cyan: Lime Gummy Light blue: Gummy Light magenta: Grape Ice Cream
Red: Spicy Yellow: Carrot Green: Olive Cyan: Sugarcane Blue: Blueberry Magenta: Grape
Dark red: Tomato Dark yellow: Cheese Dark green: Broccoli Dark cyan: Apple Gummy Dark blue: Raw Lobster Dark magenta: Wine
Black: Dry Olive

Dry Olive and Yofu do not fall into either cycle.

Chocolate is considered undefined behavior.

Some compilers may feature an additional symbol, the "Cooked Pork". Every time the pointer encounters this Cooked Pork, it randomly decides whether it is treated as Tofu; or Dry olive; allowing a "random number generator" to be created.

Some compilers treat Strawberry the same as Spicy, though this is not recommended.

Newline characters are used to separate lines. It is recommended that all lines in the program be of the same length. If not all lines are of the same length, it is considered undefined behavior, though simply appending Tofu or Dry Olive to the end of the shorter lines may help. Characters not mentioned above at the end of each line are ignored. If such "undefined characters" appears in the middle of a line (or at the beginning), they are either ignored or treated as Tofu or Dry Olive depending on the implementation.

Commands are the same as commands in Piet.

See also