Added SyntaxParser tests and simplify Parse method