by jules · 17y ago · 0 comments
Or getting the result of an expression into another expression, like
(a+b)*c
You have to write that as x = a+b
y = x*c
In C# people regularly play the human compiler when defining getters&setters (or maybe their IDE does it, but you still have the noise code on your screen). Or when mentioning types everywhere when the compiler could infer it (although it's better now with the var keyword).$300: $(A) $(B) ADD $(C) MUL
And the result would be at the top of the stack.
Not all assembly languages are created equal. ;-)
In the end, I wrote an incomplete Forth compiler for it, but I don't know where the floppies I wrote them to ended up.