fix(parser): Add ternary support to the static parser