Stueued

From Esolang
Jump to navigation Jump to search

Stueued is a 2D stack/queue-based esolang created by Notxnorand on 3/28/2026

Commands

Stueued has 18 commands:

  • Arrows.
There are 4 arrows, > < ^ v.
They each move in one of the cardinal directions respectively.
  • Stack.
# Pushes 0 to the stack.
Digit: Multiplies the top value on the stack by 10 and adds itself.
~ Pops the top value off the stack.
: Duplicates the top value of the stack.
  • Queue.
. Enqueues.
, Dequeues
  • IO.
@ Takes in input as an integer.
$ Takes an input as an ASCII code.
! Pop the top value off the stack and prints it as an ASCII value.
? Pop the top value off the stack and prints it as an integer.
  • Math.
+ Pops the top 2 values off the stack, adds them, and pushes the result.
- Pops the top 2 values off the stack, subtracts the top value from the second, and pushes the result.
* Pops the top 2 values off the stack, multiplies them, and pushes the result.
/ Pops the top 2 values off the stack, divides the second value by the top, and pushes the integer result.
% Pops the top 2 values off the stack, divides them with the second value divided by the top, and pushes the remainder.
  • Conditional
X Pops the top value off the stack and jumps over the next command (based on the direction of the pointer) if it is 0.


Any undefined characters are NOP.

Examples

Fibonacci sequence.

#0#1 ..,,:?#32!..,,:?v
v                    <
>:...,,,+v
^?:  !23#<

Truth machine.

v              < v:<
>$:#48-Xv>#?><   >?^
        >#49- X^>#1^

99 Bottles of beer.

#99v                                                                                                                                                 <
   >:?#32!#98!#111!#116!#116!#108!#101!#115!#32!#111!#102!#32!#98!#101!#101!#114!#32!#111!#110!#32!#116!#104!#101!#32!#119!#97!#108!#108!#33!#10!v
v-1#                                                        !01#!33#!411#!101#!101#!89#!23#!201#!111#!23#!511#!101#!801#!611#!611#!111#!89#!23#?:<
>#84!#97!#107!#101!#32!#111!#110!#101!#32!#100!#111!#119!#110!#44!#32!#112!#97!#115!#115!#32!#105!#116!#32!#97!#114!#111!#117!#110!#100!#33!#10!v
v                                                                                                                                               <
>:?#32!#98!#111!#116!#116!#108!#101!#115!#32!#111!#102!#32!#98!#101!#101!#114!#32!#111!#110!#32!#116!#104!#101!#32!#119!#97!#108!#108!#33!#10:!!:#2-X^v
v                                                                                                                                                     <
>   :?#32!#98!#111!#116!#116!#108!#101!#115!#32!#111!#102!#32!#98!#101!#101!#114!#32!#111!#110!#32!#116!#104!#101!#32!#119!#97!#108!#108!#33!#10!v
v-1#                                                        !01#!33#!411#!101#!101#!89#!23#!201#!111#!23#!511#!101#!801#!611#!611#!111#!89#!23#?:<
>#84!#97!#107!#101!#32!#111!#110!#101!#32!#100!#111!#119!#110!#44!#32!#112!#97!#115!#115!#32!#105!#116!#32!#97!#114!#111!#117!#110!#100!#33!#10!v
v                                                                                                                                               <
>:?#32!#98!#111!#116!#116!#108!#101!#32!#111!#102!#32!#98!#101!#101!#114!#32!#111!#110!#32!#116!#104!#101!#32!#119!#97!#108!#108!#33!#10:!!v
v                                                                                                                                          <
>   :?#32!#98!#111!#116!#116!#108!#101!#32!#111!#102!#32!#98!#101!#101!#114!#32!#111!#110!#32!#116!#104!#101!#32!#119!#97!#108!#108!#33!#10!v
v-1#                                                        !01#!33#!411#!101#!101#!89#!23#!201#!111#!23#!101#!801#!611#!611#!111#!89#!23#?:<
>#84!#97!#107!#101!#32!#111!#110!#101!#32!#100!#111!#119!#110!#44!#32!#112!#97!#115!#115!#32!#105!#116!#32!#97!#114!#111!#117!#110!#100!#33!#10!v
v                                                                                                                                               <
>:?#32!#98!#111!#116!#116!#108!#101!#115!#32!#111!#102!#32!#98!#101!#101!#114!#32!#111!#110!#32!#116!#104!#101!#32!#119!#97!#108!#108!#33!#10!# Adios!

Links

Interpreter: https://github.com/Notxnorand73/Stueued