Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: N--, the Universal logic based intepreted language  (Read 454 times)

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
N--, the Universal logic based intepreted language
« on: May 10, 2016, 07:49:02 pm »

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

* N: Nand, format: Ninput1:input2:outputvar;
* =: Set variable, format: var=varnumorchar;
* J: Jump if value is one or more, format: Jjumpto:valtocmp;

Variables are handled as two letter sequences in lowercase, ie na, pc, or aa. All instructions end with a semicolon, and N-- accepts both input and output, input and output are mapped to a special case variables named $i and $o respectively.

Samples:

Hello, World!:

 $o='H';$o='e';$o='l';$o='l';$o='o';$o=' ';$o='w';$o='o';$o='r';$o='l';$o='d';$o='!';'


If you wish to submit samples, add them here: http://esolangs.org/wiki/N--

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: N--, the Universal logic based intepreted language
« Reply #1 on: May 11, 2016, 06:11:03 am »

Oh, no. Not another Moony programming thread.
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?