Per Bahtiar Gadimov, we may eventually need an additional Parser class, but at this point that may be overkill. https://bugs.php.net/bug.php?id=52923