add and test parser implementation from jsx v2.4.0