Skip to content

A toy Befunge interpreter initial aiming to handl Befunge-93 specification

Notifications You must be signed in to change notification settings

Astr-o/pbefunge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spec

COMMAND INITIAL STACK (bot->top)RESULT (STACK)


  • (add) <value1 + value2>
  • (subtract) <value1 - value2>
  • (multiply) <value1 * value2> / (divide) <value1 / value2> (nb. integer) % (modulo) ! (not) <0 if value non-zero, 1 otherwise> ` (greater) <1 if value1 > value2, 0 otherwise>

    (right) PC -> right < (left) PC -> left ^ (up) PC -> up v (down) PC -> down ? (random) PC -> right? left? up? down? ??? _ (horizontal if) PC->left if , else PC->right | (vertical if) PC->up if , else PC->down " (stringmode) Toggles 'stringmode' : (dup) \ (swap) > $ (pop) pops but does nothing . (output int) outputs as integer , (output char) outputs as ASCII /# (bridge) 'jumps' PC one farther; skips over next command g (get) <value at (x,y)> p (put) puts at (x,y) & (input int) ~ (input character) @ (end) ends program

About

A toy Befunge interpreter initial aiming to handl Befunge-93 specification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages