/    /  Compiler Design-Error Production

Error Production

 

Error production strategy helps in generating appropriate error messages that are encountered while parsing a given input string. This method helps in improving the efficiency of parsing by continuously performing parsing on a given input string. 

 

One of the main disadvantages of this method is that it faces difficulty in maintaining grammar. This is because if the grammar changes the corresponding error production needs to be changed while parsing.

 

Global Production

Global production strategy is a simple theoretical concept employed by the parsing algorithm to perform insertion, deletion processing tokens to recover from an erroneous input. 

 

The advantage of this strategy is that it helps in improving the time and space requirement of parsing.

 

Reference Link

Error Production