Get a parser by name from an instance
string $name Name of the parser to retrieve:
mixed|null
public function getParser($name) {
if (!isset($this->instances[$name])) {
if (!isset($this->mapping[$name])) {
return null;
}
$class = $this->mapping[$name];
$this->instances[$name] = new $class();
}
return $this->instances[$name];
}