MinusOrPlus

From Esolang
(Redirected from MinusIntPlus)
Jump to navigation Jump to search

MinusOrPlus is an esolang invented by User:None1, it is opposite of PlusOrMinus.

Memory

MinusOrPlus uses a wrapping unsigned 8-bit accumulator (0 to 255) which starts at 0.


Commands

Commands Meaning
- Decrement the accumulator
+ Output the Unicode character whose code point is the value of the accumulator, then increment the accumulator

All other characters are treated as comments.

MinusIntPlus

MinusIntPlus is an extension of MinusOrPlus which extends the functionality of the + command.

Hello, World!

In MinusOrPlus

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------+---------+--------------------------------------------------------------------+

In MinusIntPlus

-184+-228+-250+-+-254+-68+-13+-202+-233+-254+-7+-9+-68+

Nope. interpreter

In MinusOrPlus

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------++------------+--------------------------------------------------------+

In MinusIntPlus

-178+-224++-12+-56+

Commands

Commands Meaning
- If followed by a positive integer (regex: [0-9]+), subtract that integer to the accumulator; otherwise, subtract 1 to the accumulator
+ Output the Unicode character whose code point is the value of the accumulator, then increment the accumulator

All other characters are still treated as comments.