codegen for TrenaryExpression