Added support for ternary expression generation. TODO: boolean operation support.