Site icon i2tutorials

Compiler Design-Shift Reduce Parser

Shift Reduce Parser

 

The shift-down parser constructs a Parse tree in a similar manner as that of the bottom-up Parser. 

 

It constructs the parse tree from the bottom also called the leaves to the top also called the root.

The Shift-Down Parser needs some basic data Structures:

 

Basic Operations in Shift Reduce Parser

 

 

 

Reference Link

Shift Reduce Parser

Exit mobile version