Q47

From Esolang
Jump to navigation Jump to search

Q47 is a speedlang made by Europe2048. Unlike the others, it isn't a statue - I can update this language, so stay tuned for them!

Commands

v1.0

Command Description
0-9 Pushes the corresponding value to the stack
+ Adds the top two values
* Multiplies
` Negates
/ Reciprocal
p Print as number
@ Print as character
i Take user input, and push result
{condition|action} Conditional statements. Operators can be =, <, or >, all applied to the top 2 values of the stack.

v1.1

Command Description
{times~action} Repeats a statement a given number of times
; Jump back to the beginning of this statement
() Grouping, creates a new statement (when running, is ignored)
. Duplicates the top value of the stack
, Duplicates the second-to-top value
? Pops the top value from the stack
: Swaps the top two values
^ Exponent

Examples

Hello, World!

89*@48*1++@7+@@3+@49*1+3*`+56+4*@34*`+@56+5*+@64*+@3+@6`+@8`+@45*5*`+56+3*@

Truth Machine

i{=0|0p}{=1|1(p;)}

Time

Version Commands Examples Total time so far
1.0 2:06.36 2:25.60 4:31.96
1.1 2:58.24 0:32.18 8:02.38