Specify the goals of parsing.
Goals:
a. To check the validity of source string
b. To agree on the syntactic structure of a source string.
For invalid string this reports error, for a valid string this builds a parse tree to reflect the sequences of reductions or derivations performed during parsing.