Update Parser.php

removed parseStrongTypedValue and parseWeakTypedValue and changed to a single method called parseValue.