Function to check which parser