Shared functionality among parsers