A function for labeling parsers