Xponent

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Xponent is a esoteric programming language where instead of writing individual parts in your code to symbolize different instructions, you have to instead represent the program and its instructions

unlike my other esoteric programming language, ooh, Xponent has only 1 instruction. whirl might be impressive for having only 2 instructions, but Xponent has one. such an absurd amount of commands to work with wouldn't make any sense. because what instruction can make up one whole language?? well I found a work-around for this language:

Instructions (or instruction)
Character Description
x add one to the program identifier and execute the program when every x has been compiled

allow me to explain.

the "program identifier" is the number which represents the program and its instructions. in other words, the program identifier is basically the combination number of the sequence of instructions. these "sub-instructions" work as normal. and have basic uses:

Sub-instructions
Number Description
0 do absolutely nothing
1 increase value
2 decrease value
3 print value
4 print value as ascii character
5 store value for future use
6 get previously stored value. does not remove or unset stored value (stored value defaults to 0)
7 get input and set value to its ascii number (only takes the last character)
8 store value and set value to stored (flip value and stored value)
9 print source code (I didn't really know what to put here tbh)

it's hard to explain exactly how the program combination is calculated. but don't worry. its deterministic. its also not intended to be hard t figure out.

Hello world program

hell no

Quine

its actually not that hard

xxxxxxxxx

Additional details

there's probably a lot of things I left out :/

Implementations

I'm working on it