Parsing is also known as?
a. Lexical analysis
b. Syntax analysis
c. Semantic analysis
d. Code generation
Solution:
Parsing is also called syntax analysis. A parser is a compiler or interpreter component that breaks data into smaller elements for easy translation into another language. A parser takes input in the form of a sequence of tokens or program instructions and usually builds a data structure in the form of a parse tree or an abstract syntax tree. A parser takes the input from a lexical analyzer in the form of token streams.
Hence option b is the answer.