Unary Stack

From Esolang
Jump to navigation Jump to search

Unary Stack is a attempt at creating syntax for 1-symbol Push-down automaton by User:ChuckEsoteric08

Syntax

Each state is represented like that:

s1: commands s2 (s3)

Where s1 is the current state, followed by commands, next state, and if last command was -, followed by s3. It will then execute commabds and if stack is empty current state s3, else s2

Commands

+ - push 1
- - pop
. - output length of the stack
, - input number, and set length of the stack to it