PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Befunge

Befunge

Befunge is an esolang created in 1993 by Chris Pressey.

#348on PLDB 29Years Old 620Users
0Books 0Papers 1Repos

Try now: Riju · TIO

Befunge is a stack-based, reflective, esoteric programming language. It differs from conventional languages in that programs are arranged on a two-dimensional grid. "Arrow" instructions direct the control flow to the left, right, up or down, and loops are constructed by sending the control flow in a cycle. Read more on Wikipedia...


Example from Riju:
64+"!dlrow ,olleH">:#,_@
Example from hello-world:
>"dlroW olleH",,,,,,,,,,,@
Example from the Hello World Collection:
v Hello World in Befunge >"dlroW olleH",,,,,,,,,,,@
Example from Wikipedia:
>25*"!dlrow ,olleH":v v:,_@ > ^

Language features

Feature Supported Example Token
Comments
Semantic Indentation ϴ
oxygene.html · befunge.html · jflex.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com