E♯

From Esolang
Jump to navigation Jump to search

E♯ is a esoteric based off of E. But you can #s to change from Main use to secondary use. However since there are two per command, E## acts the same as E. However, even without the #, E♯ still has more commands than E.

Commands

Normal commands

The main commands of E♯. To change the usage of just one command. Add ONE # to the end of it. You can have multiple commands on one line by separating them with #E# .

EEEEEEEE EEEE EEE EEEE EEE EEEE
# of E's Main function Secondary function
2 Add a number denoted by the length of the next set of E's to the back of queue Remove front value of queue and print as an ascii character
3 Gets input and places at the back of queue as a list of their ASCII values Reverse Queue
4 Remove front value of queue and print as just a number. Add bottom two values of queue
5 Subtract bottom two values of queue Multiply bottom two values of queue
6 Divide bottom two values of queue Modulo bottom two values of queue
7 Add either -1 or 1 to the front value of queue. Do a random command
8 Skips next instruction if the value in front of the queue is a zero Skips next instruction if the value in front of the queue is not zero
9 Add a number denoted by the length of the next set of E's to the back of queue and multiply that value by negative one Skip next instruction if the value on the stack is a negative number
10 Skips next instruction if the value in front of the queue is a positive number Print the code of the program (Quine)
11 Makes the next instruction run only 50% of the time Repeat the next command twice. Stacking this command also stacks the amount of times the next non EEEEEEEEEEE# command.
12 Do next command forever, if this is skipped. All do forever commands are also skipped Skip the next line entirely. Allowing comments to be made.
13 Add a negative one to the top of queue Converts all ascii values to strings. But removes the ability to do math with them
14 Converts all ascii characters to ascii values Sort the queue (lowest value bottom, highest value top)
15 Does the next command until the queue is empty Does the next command until bottom value is a zero
16 Get input as a number Makes next skip/do forever commands skip next two commands instead.
17 Duplicate bottom value Wait one second. Really.

Special commands

There are also special which do not have a secondary function.

EEEEEEE EEEEE EEE EEEEEE EEEE
Command Function
### Adds a zero
## Swaps the main and secondary functions
E Return an error
E### End program
E## Clear the console by printing 16777216 newlines.

E♯ Arithmetic

E♯ Arithmetic takes the bottom two values. Does the operation, and puts the result on the top. The bottom value is on the right side and the value above the bottom value goes to the left side of the operation.

Examples

Cat

EEE
EEEEEEEEEEEEEEE
EE#

Truth machine

EE E
EEEEEEEEEEEEEEEE
EEEEEEEEEEEEEEEE#
EEEEEEEE#
EEEEEEEEEEEEEEEE#
EEEEEEEEEEEE
EEEEEEEEEEEEEEEEE
EEEE
###
EEE#
EEEE

E

Print a single E. (yea, an E.)

EE EEEEEEEEEEEEEEEEEEEEEEE
EE EEE
EEEEE#
EE#

. . .