|
Re: Befunge-93 interpreter
[Re: txesmi]
#472598
05/07/18 15:13
05/07/18 15:13
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
I have no idea what's going on but it looks cool. Probably took a good amount of effort, so good job
POTATO-MAN saves the day! - Random
|
|
|
Re: Befunge-93 interpreter
[Re: Kartoffel]
#472610
05/08/18 08:30
05/08/18 08:30
|
Joined: Jun 2007
Posts: 1,337 Hiporope and its pain
txesmi
OP
Serious User
|
OP
Serious User
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
|
Thank you! It tooks me most of my spare time of the last weeks, true.
As background, Funge family of programming languages was born to be more complex than necessary. In other words: functional but impractical, like Brainkfuck or Whitespace.
Befunge states a toroid shaped execution space where the instruction pointer can only be moved to one of its neighbors in a direction defined on the run. So it can not jump to an arbitrary position on the program as most of programming laguages do, f.e, when calling a function. It has some special instructions to modify the program's execution direction, so the same instruction may be executed in any of the four available directions. Each cell into the execution space is a signed integer and can only be initially filled with ascii characters (from 32 to 126 inclusive), some of them been the actual instruction set.
As the second complexity layer, the memory is available in two forms only: a FILO type stack memory and the execution space itself. Instructions only work with the stack but the two instructions that serve as intercharger between both memory types.
The I/O interface is a console and manages integers and single characters only.
That's briefly all. Just a toy for masochists. I thought it has a certain parallelism with a behavior of a strategy game, but it gets too complex for people not initiated into programming. I have some ideas around anyway.
Salud!
|
|
|
Re: Befunge-93 interpreter
[Re: txesmi]
#472617
05/08/18 12:57
05/08/18 12:57
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Interesting, tanks for the explanation.
I know Brainfuck but I had never heard of Befunge/Funge before.
POTATO-MAN saves the day! - Random
|
|
|
|