Hey,
It is correct that it comes under the components of Apache pig. Parser handles all the pig scripts. Parser checks the syntax of the script, type checking and some other miscellaneous checks. Afterwards Parser's output represents the pig Latin statements as well as logical operators.