List of commands available in Pepe.
- Click the section title to view corresponding column in the project.
- Click the command name to view corresponding note in the project.
Stack <<
- Push to stackStack >>
- Pop selected item from the stack and perform action on the popped item.- Pushed items always go to the end of stack and they don't change pointer location.
-
E
- WS << push 0
e
- WS >> Do nothing (pop)
For every command in section: X is value of the selected item from WS.
Goto commands don't do anything if corresponding labels don't exist.
Commands in this section do not pop.
Flags are listed in a project column
EE
- Create label with name X- Calling again with the same name will result in replacing previous label
Ee
- Return to where a goto was called lasteE
- Goto label X if active item == active item in the other stackee
- Goto label X if active item != active item in the other stack
If input is a string, every contained byte is pushed as an integer
WARNING - Pepe has multiple inputs support. Calling an input-taking function will move the "input pointer" to the next value
-
EEE
- WS << Auto-parse inputEEe
- WS << Parse input as stringEeE
- WS << Parse input as integerEee
- WS << Parse input as float
-
Flags: r = Preserve
eEE
- WS >> Output as numbereEe
- WS >> Output as character
eeE
- Output newline (\n
)eee
- Output WS content as string without popping
1 slot left
EEEE
- Move WS pointer to first itemEEEe
- Move WS pointer to last itemEEeE
- Rewind - Move WS pointer to previous itemEEee
- Forward - Move WS pointer to next itemEeEE
- Set position to random itemEeEe
- Empty (reserved for random function)EeeE
- Push pointer position (0-indexed)Eeee
- Push pointer position in reverseeEEE
- Move input pointer to the first itemeEEe
- Move input pointer to the last itemeEeE
- Move input pointer to the previous itemeEee
- Move input pointer to the next itemeeEE
- Push input pointer positioneeEe
- Push amount of input items left- Warning: this will return a negative number if end of input was crossed.
eeeE
- Lock input pointer – prevent automatic changes to iteeee
- Unlock input pointer – allow automatic changes to it
12 slots left
-
Flags: r = PopPush, R = PreservePush
EEEEE
- Increment active itemEEEEe
- Decrement active item
EEEeE
- Deprecated Duplicate active item (duplicate to next)-
-
Flags: r = PopPush, R = PreservePush
EEeEE
- Random from 0 to active item valueEEeEe
- Random from 1 to active item valueEEeeE
- Round active itemEEeee
- Round active item to 0.5EeEEE
- Ceil active itemEeEEe
- Floor active itemEeEeE
- Absolute value of active itemEeEee
- Reverse sign of active item (times -1)EeeEE
- Square - Raise active item to second powerEeeEe
- Cube - Raise active item to third powerEeeeE
- Square root of active itemEeeee
- Cube root of active itemeEEEE
- Modulo 2 of active itemeEEEe
- Modulo 3 of active itemeEEeE
- Active item << 1eEEee
- Active item >>> 1
49 slots left
Commands operating on active items from both stacks.
A = active item from WS, B = active item from the other stack
All commands here support the flags:
r = Preserve,
R = Empty,
rr = Insert,
rR = Prepend,
Rr = Insert & Preserve,
RR = Prepend & Preserve
EEEEEE
- WS << A+BEEEEEe
- WS << A-BEEEEeE
- WS << A*BEEEEee
- WS << A/BEEEeEE
- WS << str(A)+str(B)EEEeEe
- WS << A split every B digitEEEeeE
- WS << B chunks of AEEEeee
- EmptyEEeEEE
- WS << A^BEEeEEe
- WS << B'th root of AEEeEeE
- WS << A%B (modulo)EEeEee
- EmptyEEeeEE
- Left bit shiftEEeeEe
- Logical right bit shiftEEeeeE
- WS << Character repeated B times.EEeeee
- EmptyEeEEEE
- WS << Random number A...B (inclusive)EeEEEe
- WS << Random number A..B (exclusive)EeEEeE
- WS << Greater number (max) of A and BEeEEee
- WS << Lower number (min) of A and B
121 slots left
-
EEEEEEE
- Move active item to the other stackEEEEEEe
- Copy active item to the other stackEEEEEeE
- Move WS content to the other stackEEEEEee
- Copy WS content to the other stack
EEEEeEE
- Reverse stack names (R = r; r = R)EEEEeEe
- EmptyEEEEeeE
- Diff - Remove items from WS that occur in the other stackEEEEeee
- Reverse diff - Remove items from wS that don't occur in the other stack
246 slots left
Commands operating on the whole stack
-
Flags:
r = Preserve,
R = Empty,
rr = Insert,
rR = Prepend,
Rr = Insert & Preserve,
RR = Prepend & PreserveEEEEEEEE
- Sum (+)EEEEEEEe
- EmptyEEEEEEeE
- Product (*)EEEEEEee
- EmptyEEEEEeEE
- JoinEEEEEeEe
- Empty
EEEEEeeE
- Increment allEEEEEeee
- Decrement allEEEEeEEE
- ClearEEEEeEEe
- Clear, but don't remove selected itemEEEEeEeE
- SortEEEEeEee
- Reverse orderEEEEeeEE
- Shuffle orderEEEEeeEe
- Reserved for an order-changing functionEEEEeeeE
- Greatest number in the stack (max)EEEEeeee
- Lowest number in the stack (min)
First letter:
E
- Pushe
- Print as character
Following letters are parsed as:
E
- 1e
- 0
Converted to a binary number, then to a corresponding ASCII character.
Ex: To print A
, the command would be reEeeeeeeE
.
Supported flags: