So for the few days this week that I was home sick, I looked into Befunge; an esoteric, stack language. Why? Because I could ;)
Easily the most interesting part of the language, for me at least, is the four operations that change the direction of the program counter, allowing programs to read in all different directions. For example, conventional programming languages start from the top and read left-to-right. In a Befunge program you can change the direction to read operations in the left, right, upward or downward directions. This can be used to create some very interesting programs.
Anyway, here's my first, and, so far, only, Befunge program:
v v ,<
>:"z"`|
>"!raB ooF">:#@!_:"a"1-`| >84*-v
^ ,< <
It simply capitalises some text. Nothing special.
The things you do when you're sick at home...
0 comments:
Post a Comment