We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

MinskyX

From Esolang
Jump to navigation Jump to search

MinskyX is an esolang by User:Cordership, derived from Portable Minsky Machine Notation.

Syntax

Same as PMMN, with changes:

  • Counters are now referred to as c0, c1, ...
  • Direct assignment (A counter can be an integer only)
counter = value
  • Different increment/decrement methods
counter + amount
counter - amount
  • 2 new cmds: multiply and divide if divisible (Now it can simulate the section 14.2 minsky machine!)
counter * amount
counter / amount
  • Fixed I/O:
    • inputascii(counter) It sets a counter to the ASCII value of the user's character.
    • inputint(counter) It sets a counter to the user's integer.
    • outputascii(counter) It outputs the current counter's value as ASCII.
    • outputint(counter) It outputs the current counter's value as integer with a trailing space.
  • Conditions:
    • There are now conditions, such as:
    • counter1 ==/!=/>/</>=/<= counter2
    • counter1 ==/!=/>/</>=/<= value

Programs

Hello, World!

c0 = 72
outputascii(c0)
c0 = 101
outputascii(c0)
c0 = 108
outputascii(c0)
outputascii(c0)
c0 = 111
outputascii(c0)
c0 = 44
outputascii(c0)
c0 = 32
outputascii(c0)
c0 = 87
outputascii(c0)
c0 = 111
outputascii(c0)
c0 = 114
outputascii(c0)
c0 = 108
outputascii(c0)
c0 = 100
outputascii(c0)
c0 = 33
outputascii(c0)

Cat program

inputascii(c0)
while (c0 == 0) {
    outputascii(c0)
    inputascii(c0)
}