N--

From Esolang
Jump to navigation Jump to search

N-- is a 5 instruction minimalistic variable based language, it has three commands.

  • N: Nands the first bit of its first two inputs, format: Ninvar1invar2outputvar
  • L: Left shift, shifts the bits of the select variable, format: Lvariable
  • R: Right shift, shifts the bits of the select variable, format: Rvariable
  • ^: Remove the first bit of a variable, format: ^variable;
  • v: Add a 0 bit to the end of a variable, format: vvariable
  • !: Nullifies a variable, having it contain a single 0 once done

Variables are handled as two letter sequences in lowercase, ie na, pc, or aa. N-- accepts both input and output, input and output are mapped to a special case variables named $i and $o respectively. All output is made in the format of ansii based on bin to dec. Variables are able to store unlimited lengths of bits (1s and 0s). $p is the program counter and can be modified to move the pointer to a diffrent character in the data. a variable starts with 0 bits, and must be initialized. $s contains the length of the program in characters.

Samples:

None not by me, make some and put them here and i will be grateful Initalizing a 0 and 1 variable: vaavabNaaaaab

Infinite loop: !$p

evergoing binary appender: ^aaNaaaaaaLaa!$p