Axo

From Esolang

Jump to: navigation, search

axo is a language inspired by Befunge, invented by Jannis Harder in 2004. "axo" is pronounced like the german words "ach so".


Here is the short spec from the axo2i.c header (axo 1 was an alpha version. axo 2 is the final version):

/********************************* AXO 2 *********************************\
|*  "" string mode (s) '' raw mode (r)  command mode (c)                 *|
|*  ^ < > %             move up/left/right/down (s/c)                    *|
|*  + - *               push pop2 <operator> pop1 (s/c)                  *|
|*  /                   push pop2 / pop1 ; push pop2 % pop1 (s/c)        *|
|*  \                   exit program (s/c)                               *|
|*  &                   push dequeue (c)                                 *|
|*  |                   enqueue pop (c)                                  *|
|*  $                   move {up/left/right/down}[pop%4] (c)             *|
|*                      || push 10 (s)                                   *|
|*  #                   skip if pop == 0 (c)                             *|
|*  [ ]                 dup # pop (c)                                    *|
|*  ( )                 putc # getc (-1 on eof) (c)                      *|
|*  { }                 putint # getint (line input) (c)                 *|
|*  : .                 store in register a # b (c)                      *|
|*  ; ,                 load from register a # b (c)                     *|
|*  ?                   random move (c)                                  *|
|*  _                   home (goto 0,0 heading right) (c)                *|
|*  @                   clear stack (c)                                  *|
|*  !                   rotate 90^ cw (c)                                *|
|*  =                   push mem[pop1%2048] ; mem[pop1%2048] = pop2 (c)  *|
|*  ~                   debug                                            *|
|*        stack: 32bit-signed | empty = 0 | mem: 2048*32bit-signed       *|
\********************************** jix **********************************/

[edit] External resources

This article is a stub, which means that it is not detailed enough and needs to be expanded. Please help us by adding some more information.
Personal tools