Add a runParser function; part of the patch from Brian Bloniarz