Implementing an expression tree for the code generators