We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

P

From Esolang
Jump to navigation Jump to search

P is an esoteric programming language created by StelK around December 2005.

It has several commands for stack manipulation, conditional statements, file handling and so on...

In the site indicated below you can found some more documentation and an interpreter written in C++.

Examples

Text between "" is printed on the screen, P recognize the \n sequence. Here is a Hello World program:

"Hello World\n"

Fibonacci's numbers:

99*8+t#21"1 "<\a+$a^" "[t@]>@

99 bottles of beer:

1z99*9+9++n<1-[z"1 bottle of beer on 
the wall\n""Take one down and pass 
it around\n"@]^" bottles of beer on 
the wall\n"^ " bottles of beer.\n""
Take one down and pass it around\n"
>@"No more bottles of beer on the wa
ll\n"&

External resources