Input a logical expression and the program will output its value. You can use the AND, OR, XOR, NOR, XNOR, NAND, NOT, and BUF operators. Expressions should be formatted as an operator, followed by an open parenthesis, followed by the first output, followed by a comma*, followed by the second output*, followed by a close parenthesis. For example, "0 and 1" would be formatted as "AND(0,1)", "1 or 1" would be formatted as "OR(1,1)", etc. Note that operators can be nested, such as in the expressions "AND(XOR(1,0),1)", "NOT(NAND(XNOR(1,1),1))", etc. Expressions must be formatted correctly, or the program will not work. Press space to input another expression. *This only applies to operators that accept two inputs; the NOT and BUF operators only accept one input.
It's not a very difficult task to code something like this, but it \textit{is} (I don't know what else to do) difficult to code it in sub-100 blocks (I think). Although I might've cheated a bit by storing information in a list. I plan to make an interactive logic gate builder with this. Inspired by @Destructor_chess 's project "logic gates circuit simulator v1" ( https://scratch.mit.edu/projects/1317572112 ).