#! shibboleth 3 seed=befunge syllables= plain=off reader=2d size=80x25 Befunge-93 as a front end: the program text is the page, the grid cursor walks it; FACE turns, STEP bridges, STRING pushes cells up to the next quote, PEEK and POKE read and write the program itself "0" => 0 "1" => 1 "2" => 2 "3" => 3 "4" => 4 "5" => 5 "6" => 6 "7" => 7 "8" => 8 "9" => 9 "+" => ADD "-" => SUB "*" => MUL "/" => DIV "%" => MOD "!" => NOT "`" => SWAP LT ">" => 0 FACE "v" => 1 FACE "<" => 2 FACE "^" => 3 FACE "?" => 4 ROLL FACE "_" => IF 2 ELSE 0 THEN FACE "|" => IF 3 ELSE 1 THEN FACE "\"" => 34 STRING ":" => DUP "\\" => SWAP "$" => DROP "." => number "," => 0 ADD EMIT "#" => STEP "g" => PEEK "p" => POKE "&" => readnum "~" => READ "@" => HALT rot => [ SWAP ] DIP SWAP abs => DUP 0 LT IF 0 SWAP SUB THEN digits => [ ] SWAP BEGIN DUP 10 MOD abs 48 ADD rot CAT SWAP 10 DIV DUP NOT UNTIL DROP number => DUP 0 LT IF 45 EMIT THEN digits EMIT 32 EMIT digit => DUP 48 LT NOT SWAP 58 LT MUL skip => BEGIN READ DUP DUP digit SWAP -1 EQ ADD IF 1 ELSE 1020 STORE 0 THEN UNTIL more => BEGIN READ DUP digit IF 48 SUB SWAP 10 MUL ADD 0 ELSE DROP 1 THEN UNTIL readnum => 0 1020 STORE skip DUP -1 EQ NOT IF 48 SUB more 1020 LOAD 45 EQ IF 0 SWAP SUB THEN THEN