Skip to content
Rujul Nayak edited this page Dec 31, 2022 · 1 revision

List of flags in Thunno

Input flags

Input flags are applied before execution.

Flag Name Can be used multiple times? Explanation
W Whole Input No The whole input is taken as a multi-line string
E Don't Evaluate No The inputs are not evaluated; instead, they are kept as strings
D Duplicate Input Yes The input list is appended to the stack
Z Push Zero Yes 0 is prepended to the stack
O Push One Yes 1 is prepended to the stack
T Push Ten Yes 10 is prepended to the stack
H Push One Hundred Yes 100 is prepended to the stack
t Push One Thousand Yes 1000 is prepended to the stack
L Length of Input Yes The length of the input is prepended to the stack
B Convert to Byte Array No Any strings are converted to Byte Arrays
+ Add One Yes All numbers are incremented by one
- Subtract One Yes All numbers are decremented by one
* Multiply Yes All numbers are multiplied
/ Divide Yes All numbers are divided

Output flags

Output flags are applied after execution

Flag Name Can be used multiple times? Explanation
R Remove the Top Item Yes The top item on the stack is popped
X Push X Yes The variable x is pushed
Y Push Y Yes The variable y is pushed
K Push the Stack No A copy of the stack is prepended to the stack
J Join By Empty Strings No The top of the stack is joined by ""
j Join By Spaces No The top of the stack is joined by " "
N Join By Newlines No The top of the stack is joined by "\n"
S Sum the Stack No Push the sum of the numbers on the stack
P Product of the Stack No Push the product of the numbers on the stack
d Don't Print No The top of the stack is not implicitly printed
Clone this wiki locally