Added ternary if support to parser