Antgrid

From Esolang
Jump to navigation Jump to search

Antgrid is another language devised by Moon (talk) 22:07, 6 May 2016 (UTC)

Core design

Antgrid uses a two dimensional grid of data to represent the program, it also supports threading.

Programs

programs are represented by grids, like so:

++*
*$*
*+o

They use different symbols to represent each command

Commands

  • +: Increment the data under the variable
  • -: Decrement the data under the variable
  • >: change the pointer on the x axis by 1
  • <: change the pointer on the x axis by -1
  • [: if the current value under the pointer is 0, skip ahead, obeying * and $ commands until it reaches a ]
  • ]: if the current value under the pointer is 1, skip back, obeying * and $ commands until it reaches a [
  • *: changes the direction of execution clockwise or counter-clockwise depending on a special value used by $, if it is 0, clockwise, otherwise counter-clockwise
  • $: changes a special value to 1 or zero, depending on the last value
  • 1: forces the special value to 1
  • 0: forces the special value to 0
  • i: takes input and puts it in the value under the pointer
  • 0: prints out the value under the pointer
  • |: branches the program, initializing a new thread, the new thread has its own version of 'the special value', initialized as 0
  • #: kills the thread that runs it

Samples

as of now, none exist