parser: use array literal to simplify an expression