Parsing Techniques and Conflict in LR parsers

Main Article Content

Anjali Kedawat

Abstract

Basically there are two types of parsers exists:Top down and Bottom Up parsers .Both have their advantages and disadvantages.LR bottom up parser have two type of conflicts :shift/reduce and reduce/reduce.Shift/reduce conflict was removed manually in LALR parser but reduce/reduce conflict still not be solved completely. Automatic generator providing the approach of using first production rule among those which causes reduce/reduce conflict but this approach is not efficient for all grammars.The basic idea to remove this conflict for all types of grammar is to see the last terminal symbol and first terminal symbol of string and according to it use production.


Keywords: conflict, lookahead, parsing, techniques

Downloads

Download data is not yet available.

Article Details

Section
Articles