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:
“The mere existence of an additional child or children in the family could signify Less. Less time alone with parents. Less attention for hurts and disappointments. Less approval for accomplishments. . . . No wonder children struggle so fiercely to be first or best. No wonder they mobilize all their energy to have more or most. Or better still, all.”
—Adele Faber (20th century)