Friday, June 15, 2012

Error Dectection Reporting



            Each phase can encounter errors. However after detecting an error, a phase must
somehow deal with the error so that compilation can process, allowing further error in the
source program to be detected.
            The syntax and semantic analysis phase usually handle a large function of the error
 detection by the compiler. The lexical phase can detect error when the character remaining
 in the input do not form any tokens of the language.
  
 ( Eg:-if we try to add two identifiers one of which is the name of an array,
                          and the other the name of a procedure)

0 comments:

Post a Comment