Need of Operator precedence

Write down the need of Operator precedence in detail? Also describe its use.

E

Expert

Verified

The shift reduce Parsing consists of a basic limitation. A grammar which can represent a left-sentential parse tree and also right-sentential parse tree can’t be handled by shift reduce parsing. This grammar ought to encompass two non-terminals in the production rule. Therefore the Terminal sandwiched among these two non-terminals must encompass some associativity and precedence. This will aid the parser to understand which non-terminal would be expanded initially.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.