Add ternary expression parsing