There was a game like this for mac I used to play back in the 90s. It used its own scripting language, with operations in reverse polish notation (!). Super fun. Need to spend a bit more time with this one as my geometric functions are a little rusty. But cool concept!