LR Parser - Additional Example 1+1

Additional Example 1+1

This example of LR parsing uses the following small grammar with goal symbol E:

(1) E → E * B
(2) E → E + B
(3) E → B
(4) B → 0
(5) B → 1

to parse the following input:

1 + 1

Read more about this topic:  LR Parser

Famous quotes containing the word additional:

    When I turned into a parent, I experienced a real and total personality change that slowly shifted back to the “normal” me, yet has not completely vanished. I believe the two levels are now superimposed, with an additional sprinkling of mortality intimations.
    Sonia Taitz (20th century)