Inside-out notation

From Esolang
Jump to navigation Jump to search

Inside-out notation is a bizarre version of infix notation. The idea is that an infix operator will take another operator as an argument, then grab the arguments for that operator from the inside of the expression. It was invented by Oren Watson based on infix notation.

For example:

xy+*z -> y+(x*z)
xy*+z -> y*(x+z)
x+*yz -> (x+z)*y
x*+yz -> (x*z)+y

x+y**wz -> y*((x+z)*w)