English, asked by veeresh1998, 2 months ago

Which phase of compiler is responsible for validating grammar​

Answers

Answered by pakeezanoor044
4

Answer:

Known as the front-end of the compiler, the analysis phase of the compiler reads the source program, divides it into core parts and then checks for lexical, grammar and syntax errors.

Answered by brokendreams
1

The syntax analysis phase of the compiler is responsible for validating grammar.

Explanation:

  • The syntax, lexical and grammar is checked upon the syntax analysis phase of compiler. This is also known as front- end compiler.
  • This phase is also known as Parsee because a Parsee tree structure is followed for analyzing grammatical errors in compiling. There are certain rules and regulations that has to be followed by the compilers.
  • All kinds of syntax error is rectified at this stage of compiling concerning grammar and the work or literary piece is passed on to the next phase of compiling.

Similar questions