feat(parser): add support for ternary operator