This esolang is not a push-down automata

From Esolang
Jump to navigation Jump to search

This esolang is not a push-down automata (or TEISNPDA or simple TEI) is, unlike its name, a push-down automata. It is invented by User:None1.

Memory model

It uses only a stack that can contain nonnegative numbers of any size.

Commands

Command table
Command Meaning
0~9 Push corresponding number onto the stack
+ Pop a and b, push b+a
- Pop a and b, push b-a
* Pop a and b, push b*a
, Reads an integer and push it onto stack
. Pop a and output as decimal, followed by a space
? Reads a character and push its ASCII value onto the stack
! Pop a and output as ASCII

Other characters (including whitespaces and line feeds) push their ASCII values onto the stack.

Examples

Hello World

H!e!l!l!o! !W!o!r!l!d!184*+!

Nope. interpreter

N!o!p!e!159*+!

One time cat

?!

A+B Problem

,,+.

XKCD Random Number

4.

Polyglot

4.@

Usefulness

The language is pretty useless if you ask me, but you can feed a suffix arithmetic expression with only addition, subtraction and multiplication and one-digit numbers to this language to compute it.

External Resources

  • Interpreters for This esolang is not a push-down automata in C#, Java and Python.