-
Notifications
You must be signed in to change notification settings - Fork 1
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 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 |
MIT License
Copyright (c) 2023 Rujul Nayak
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.