Parent class for parsers